@stella-ds/theme
v0.2.1
Published
Stella UI design tokens – framework-agnostic CSS variables and JSON
Readme
@stella-ds/theme
Design tokens for the Stella Design System.
Framework-agnostic — distributed as CSS custom properties (--stella-*) and a JSON token object.
Installation
npm install @stella-ds/theme
# or
pnpm add @stella-ds/themeUsage
CSS (recommended)
import '@stella-ds/theme/css'Injects all --stella-* CSS custom properties into :root.
JavaScript / TypeScript
import { tokens } from '@stella-ds/theme'
// → raw token object
import { cssVariables, injectCSSVars } from '@stella-ds/theme'
// cssVariables: flat { '--stella-color-cosmos-500': '#6366f1', ... }
// injectCSSVars(): programmatically injects into document.documentElementToken Categories
| Category | Description |
|---|---|
| color | Celestial color palettes (cosmos, nebula, aurora, nova, void, starlight) |
| typography | Font families, sizes, weights, line heights |
| spacing | Spacing scale |
| borderRadius | Border radius presets |
| shadow | Box shadow levels |
| transition | Duration and easing |
Color Palettes
cosmos— primary / interactive (indigo)nebula— accent (purple)aurora— accent (cyan)nova— success / positive (emerald)void— backgrounds (base/surface/overlay/muted)starlight— text (primary/secondary/disabled)
Links
License
MIT
