Detalhes do pacote

kouto-swiss

leny3.9k1.1.0

A complete CSS framework for Stylus

Stylus, CSS, framework, polyfill

readme (leia-me)

kouto swiss

NPM version Build Status Dependency Status Downloads counter

A complete CSS framework for Stylus


kouto swiss is a complete CSS framework for Stylus, inspired by great tools like nib, compass, bourbon…

Installation

$ npm install --save-dev kouto-swiss

Usage

Included in compilation, with grunt or gulp.

Grunt

For grunt, you can use grunt-contrib-stylus, and include kouto swiss in your use option for the task.

You can also use grunt-ks-stylus, which is a fork of grunt-contrib-stylus, with kouto swiss included.

Gulp

For gulp, use gulp-stylus and include kouto swiss in your use option for the task.

PHPStorm/WebStorm File Watchers

On some IDEs like PHPStorm and Webstorm, you can automatically compile your styles as they change, without relying on a third-party tool. In PHPStorm and Webstorm, this functionality is known as file watchers. To use with PHPStorm or WebStorm, as a file watcher, simply:

  • Ensure you have added kouto-swiss as a dependency:
$ npm install --save-dev kouto-swiss
  • Do an npm install
  • Create a new file watcher with settings like these: image
  • Create an @import in one of you .styl files:
    @import "../../../node_modules/kouto-swiss" // import kuoto-swiss for auto-prefixing (or whatever relative path where node-modules lives

Included in compilation with third-party tools.

To use kouto swiss with third-party tools like Codekit or Prepros, you should include kouto swiss on your project by yourself. You can download it on github.

More information coming soon.

As middleware, for on the fly compilation.

There's an example of how to use stylus with kouto-swiss within Connect or Express.

var connect = require( "connect" ),
    stylus = require( "stylus" ),
    koutoSwiss = require( "kouto-swiss" ),
    server = connect();

function compile( str, path ) {
    return stylus( str )
        .set( "filename", path )
        .set( "compress", true )
        .use( koutoSwiss() );
}

server.use( stylus.middleware( {
    src: __dirname,
    compile: compile
} ) );

Stylus API

To gain access to the kouto swiss tools from your Stylus files, simply add:

@import "kouto-swiss"

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and update the docs for any new or changed functionality. More informations in the CONTRIBUTING.md file.

Special call for contribution : someone who's English is better than I am !

I am committed to improving the readability of documents with heart and soul. As you can see, I'm not a native English speaker. I need your help.

If you want to help the kouto swiss project, but don't want to write code, please consider reviewing the docs, correcting my very bad English. Many thanks!

Release History

For more details, look at the changelog.

  • 2017-02-26: version 1.1.0
  • 2016-12-26: version 1.0.0
  • 2016-12-06: version 0.14.0
  • 2016-11-12: version 0.13.0
  • 2016-03-25: version 0.12.0
  • 2014-11-08: version 0.11.0
  • 2014-08-18: version 0.10.0
  • 2014-07-19: version 0.9.0
  • 2014-06-30: version 0.8.0
  • 2014-05-20: version 0.1.0
  • 2014-05-05: version 0.0.1
  • 2014-05-03: starting project

License

Copyright (c) 2014 leny Licensed under the MIT license.

Licenses for ressources used in docs

Fonts

changelog (log de mudanças)

kouto swiss: changelog

1.1.0 / 2017-02-26

  • Add flex-axis mixin

1.0.0 / 2016-12-26

  • Breaking change: remove grid system
  • New design & build system for documentation
  • Update dev dependencies

0.14.0 / 2016-12-06

  • Add min-size & max-size mixins
  • Add relative keywords support in position mixin
  • Refactor calc mixin

0.13.1 / 2016-11-12

  • Fix ks-vendors-prefixes collision bug

0.13.0 / 2016-11-12

  • Update normalize to 5.0.0
  • Update default minimal browsers version for vendors
  • Mark grid system as deprecated
  • Add System font stack
  • Add yarn lock file
  • Update node targets in travis
  • Update Stylus to 0.54.5, update dev dependencies.

0.12.0 / 2016-03-25

  • Update node targets in travis
  • Adding 'local' parameter to ks-font-face
  • Update Stylus to 0.54.2, update dev dependencies.

0.11.14 / 2015-12-26

  • Update dev dependencies.
  • Move repo from krkn to leny/kouto-swiss

0.11.13 / 2015-07-04

  • Update dev dependencies.
  • Fix issue in flex-flow vendors mixin.

0.11.12 / 2015-05-31

  • Update Stylus to 0.51.1, update dev dependencies.
  • Fix tests due to Stylus' new Math strictness.
  • Colons. Colons everywhere.

0.11.11 / 2015-04-03

  • Support multiple values in rem() function

0.11.10 / 2015-03-25

  • Update documentation for position sticky
  • Implement box-shadow vendors mixin

0.11.9 / 2015-03-16

  • Remove grunt as peerDependency

0.11.8 / 2015-02-24

  • Update dev dependencies
  • Fix position mixins when using !important keyword

0.11.7 / 2015-02-05

  • Update Stylus to 0.50.0, update dev dependencies.
  • Fix some grammatical/spelling errors
  • Add user-select vendor prefixing
  • Add position: sticky vendor prefixing

0.11.6 / 2014-11-27

  • Implementing no-conflict mode
  • Add ratio-box mixin

0.11.5 / 2014-11-21

  • Implement & support WOFF2 by default for font-face mixin

0.11.4 / 2014-11-20

  • Fix additional parameters support in clear & overflow utilities
  • Fix support for additional parameters support in flex mixins

0.11.3 / 2014-11-19

  • Fix index glob collision in importing

0.11.2 / 2014-11-08

  • Add js-compiled Gruntfile

0.11.1 / 2014-11-08

  • List contributors in package.json
  • Fix possible collision for row and column values in flex-flow and flex-direction mixin
  • Fix some grammatical/spelling errors
  • Add docs section for webstorm IDEs
  • Add editorconfig file

0.11.0 / 2014-11-08

  • Refactor flex mixins
  • Aliasing color-fallback mecanism, changing global support variable name
  • Aliasing all the functions & mixins
  • Fix typos and grammers in README
  • Update Stylus to 0.49.3, update dev dependencies.

0.10.3 / 2014-10-07

  • Update Stylus to 0.49.1, update dev dependencies.

0.10.2 / 2014-09-29

  • Fix perspective vendor prefixing when using in a transform property context.

0.10.1 / 2014-09-29

  • Fix variables in media query mixin bug.

0.10 / 2014-08-18

0.9.9 / 2014-08-09

  • Update documentation.

0.9.8 / 2014-08-05

  • Fixing bug with 0 value in size & position mixin.

0.9.7 / 2014-08-03

  • Add global importation state variable (useful for third-party plugins).

0.9.6 / 2014-08-02

  • Update documentation.

0.9.5 / 2014-08-02

0.9.4 / 2014-07-30

  • Add conditions in size mixin.

0.9.3 / 2014-07-29

  • Add documentation for ellipsis mixin.
  • Add conditions in position mixin.

0.9.2 / 2014-07-25

  • Update Stylus to 0.47.3.

0.9.1 / 2014-07-19

0.9.0 / 2014-07-19

  • Change calling format of media queries, allows to skip it for legacy browsers.

0.8.8 / 2014-07-15

  • Implement more vendors features, allows to disable the caniuse data's usage.

0.8.7 / 2014-07-14

0.8.6 / 2014-07-11

  • Fix hsl support in luminosity() function.

0.8.5 / 2014-07-08

  • Allow users to disable autoprefixing (as suggered in issue #5).

0.8.4 / 2014-07-08

  • Add custom vendors prefixes support (as asked in issue #5).

0.8.3 / 2014-07-05

  • Update Stylus to 0.47.1. Fix an issue caused by a bug introduced in Stylus 0.47.

0.8.2 / 2014-07-04

  • Small fix in docs & tests for calc(), according to specs (issue #4). Thanks to PunKeel.

0.8.1 / 2014-06-30

  • Add changelog
  • Add contributing document
  • Add some grunt tasks to help contributing
  • Fix typo in docs page
  • Add ios-type scroll in docs page for navigation column

0.8.0 / 2014-06-30

First stable version of the lib, ready for production, with website and documentation.


The versions before 0.8.0 were strict development version and don't really need to appears here.