Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

csskit

2.0.0 • Public • Published

csskit

Styles and command-line tool for modular, functional css.

npm travis standard conduct

Styles

This package is a bundle of smaller modules:

Instead of using this bundle, you could just use each of the modules you need.

Install

npm i --save csskit

Or just grab the style.css file.

Usage

If you installed with npm:

  • In your main css file: @import "csskit";
  • Example using the csskit command-line tool: csskit main.css -o bundle.css
  • Alternately you can use a tool like sheetify or rework-npm-cli to bundle the css.

See the above list of modules for documentation on usage of each module

Command-line tool

About

The csskit command-line tool is used for bundling css modules based on postcss and cssnano.

Install

npm install --save-dev csskit

Usage

USAGE:
  csskit {command} [options]

COMMANDS:
  bundle     bundle up some css and its dependencies
  watch      same as bundle, watches css files for changes and rebundles
  help       show this help message

BUNDLE
  csskit bundle input.css > bundle.css

  Options:
    --minify, -m      minify using npmjs.com/cssnano
    --output, -o      specify an output file for the bundled css

WATCH
  csskit watch input.css > bundle.css

  Options:
    --minify, -m      minify using npmjs.com/cssnano
    --output, -o      specify an output file for the bundled css

HELP
  csskit help

Contributing

Contributions are welcome! Please read the contributing guidelines first.

Conduct

It is important that this project contributes to a friendly, safe, and welcoming environment for all. Read this project's code of conduct

Changelog

Read about the changes to this project in CHANGELOG.md. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Contact

License

ISC

install

npm i csskit

Downloadsweekly downloads

5

version

2.0.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability