Skip to content

Installation

For best results install via yarn or npm:

yarn add cwf-lite --dev
npm install cwf-lite -D

Once installed, import the source css file from node_modules/cwf-lite/dist/index.css into your projects css file:

@import "cwf-lite/dist/index.css";

If you would rather pick and choose which css files you want to import then you can. Bear in mind that cwf-lite uses postcss meaning that you will need to include this in your build process.

@import "cwf-lite/style/module/alert.css";
@import "cwf-lite/style/module/input.css";
@import "cwf-lite/style/utilities/margin.css";

If you really wanted you could import the uncompiled css into your JavaScript. You would still need to include postcss in your package.

import "cwf-lite/style.css";