Getting started
Start with the package that matches your stack. All six packages use the same four flavors.
| If you need… | Install | Then |
|---|---|---|
| Colors in JavaScript, JSON, or CSS | pnpm add @nightwire/palette |
Import palette, @nightwire/palette/palette.json, or @nightwire/palette/css. |
| Styled native HTML | pnpm add @nightwire/css |
Import @nightwire/css and add nw-* classes. |
| Tailwind utilities | pnpm add tailwindcss @nightwire/css @nightwire/tailwind |
Follow the Tailwind setup. |
| Vue components | pnpm add vue tailwindcss @nightwire/vue @nightwire/tailwind |
Import the Vue stylesheet and components. |
| An Astro page shell and flavor switcher | pnpm add @nightwire/astro |
Register the Astro integration in astro.config.mjs. |
| A themed Starlight site | pnpm add @nightwire/starlight |
Add the Starlight plugin to your existing Starlight integration. |
With the CSS package, add the import to your bundled stylesheet:
@import '@nightwire/css';Set the flavor on the document and use the component classes on native elements:
<html lang="en" data-flavor="nocturne"> <body> <button class="nw-btn nw-btn-primary nw-btn-cut" type="button">Connect</button> </body></html>Use the semantic roles in custom components so their colors follow the same flavor and accent scopes.