Skip to content

Installation

Pick the tab that matches your stack. Every setup bundles its fonts locally and reads the same flavor attributes. Commands use pnpm; npm, Yarn and Bun work the same way.

  1. Install the CSS package.

    Terminal window
    pnpm add @static-bloom/css
  2. Import the full bundle: tokens, fonts, base styles, components and utilities.

    @import '@static-bloom/css';

    To take only some layers, declare the layer order first, then import the entry points you need:

    @layer theme, base, components, utilities;
    @import '@static-bloom/css/tokens.css';
    @import '@static-bloom/css/fonts.css';
    @import '@static-bloom/css/components.css';
  3. Set a flavor on the document and use the sb-* classes.

    <html data-flavor="midnight" data-theme="dark">
    <body>
    <button class="sb-btn">Connect</button>
    </body>
    </html>

Without data-flavor, Midnight applies, and a system that prefers light gets Daybreak. To persist a visitor’s choice, use the Astro FlavorScript or Vue’s useFlavor.