Programmatic Usage
Installation
-
Install and
@stilvoll/coreTerminal window npm install -D @stilvoll/core -
Import and use
generateUtilitiesandgenerateCSSimport { generateUtilities, generateCSS } from "@stilvoll/core";/*** Generate a set of utilities from rules*/const utilities = generateUtilities({rules: [["hidden", { display: "none" }]],breakpoints: [{name: "md",media: "@media screen and (min-width: 768px)",},],});/*** Turn the utilities into a string of CSS.*/const css = generateCSS(utilities);