$ yarn install @utilitycss/utility
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()]
};
In main.css
@utility;
In postcss.config.js
const utility = require("@utilitycss/utility");
module.exports = {
plugins: [utility()]
};
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. |
- 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