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, andkeyframesaddonsvdom— similar tosheetpreset, but also installsjsx()addon, you need to providehfunction in configurationreact— similar tovdompreset, but specifies hyperscript functionhautomatically and also installssnake,style,styled, anddecoratoraddons