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 @nyxwire/css
  2. Import the full bundle: tokens, fonts, base styles, components and utilities.

    @import '@nyxwire/css';

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

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

    <html data-flavor="nocturne" data-theme="dark">
    <body>
    <button class="nw-btn nw-btn-primary">Connect</button>
    </body>
    </html>

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