New

Uniform CSS has now been officially released!
Read more


Build Scripts

Generating your stylesheet using build scripts.


Build Scripts

Sass preprocessor is the only thing you need to get up and running. Uniform CSS comes with a predefined build commands in the package.json. The following npm build commands are available.

By default, the following build scripts will automatically input styles.scss and output files into the root directory. You can modify package.json to change the output location.


uniform

The following command will compile your Sass with --style compressed enabled. This is the command you should run when outputting for production.

npm run uniform

uniform:compile

The following command will compile styles.scss and output styles.css.

npm run uniform:compile

uniform:watch

The following command will compile styles.scss file and watch for changes.

npm run uniform:watch

uniform:watch-compressed

The following command will compile styles.scss file and watch for changes with --style compressed enabled.

npm run uniform:watch

Build Performance

Uniform CSS requires dart-sass version 1.33.0 and up. Using the Javascript version of Sass is slower than the stand-alone dart executable, therefore using the native dart version is recommended for fastest build time.