@utilitycss/utility
v1.2.11
Published
Generator for Utility CSS frameworks
Downloads
1,882
Readme
UtilityCSS
Installation
$ yarn install @utilitycss/utility
Usage
Simple Default setting
This will use the default options for the plugins which is configured here.
In main.css
@utility;
In postcss.config.js
const utility = require("@utilitycss/utility");
module.exports = {
plugins: [utility()]
};
Simple Default setting
In main.css
@utility;
In postcss.config.js
const utility = require("@utilitycss/utility");
module.exports = {
plugins: [utility()]
};
PostCSS Options
| option | description |
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| config | <Object>
with the follow [key]:<value>
breakPointSeparator: "", seriesSeparator: "", pseudoClassesSeparator: "", breakPoints: undefined |
| modules | List of modules in here. |
| plugins | List of modules in here. |
Supported Modules
- single
- series
- backgroundImage
- border
- spacing
- position
- zIndex
- float
- clear
- colors
- display
- visibility
- opacity
- outline
- overflow
- resize
- cursor
- boxSizing
- width
- height
- flexbox
- font
- verticalAlign
- textAlign
- textDecoration
- textTransform
- transform
- transition