nano-css
comes with a range of addons that sometimes may be overwhelming to pick through and
cumbersome to install. To ease this we have created Presets — presets are simply functions
that create a nano-css
instance and install addons automatically for you.
import {preset} from 'nano-css/preset/sheet';
const {rule, sheet} = preset();
export {
rule,
sheet
};
Below is a list of available presets.
sheet
— installssheet()
addon, as well asstable
,nesting
,atoms
, andkeyframes
addonsvdom
— similar tosheet
preset, but also installsjsx()
addon, you need to provideh
function in configurationreact
— similar tovdom
preset, but specifies hyperscript functionh
automatically and also installssnake
,style
,styled
, anddecorator
addons