@spatika/tokens
v2.3.0
Published
Spatika design tokens — semantic themes, density, motion, and component recipes (framework-agnostic)
Maintainers
Readme
@spatika/tokens
Design tokens for Spatika UI — semantic colour, type, spacing, radius, elevation, density and motion tokens, four themes, and the component recipes used by the React package.
Docs: spatika.sweyam.com
Install
npm install @spatika/tokensQuick start
Import the prebuilt bundle (recommended — includes utilities used by kit components):
import "@spatika/tokens/styles.css";Apply a theme on <html>:
| Class | Theme | Meaning |
|---|---|---|
| (none / default) | Mukta | Pearl — frosted white, blue |
| neelam | Neelam | Sapphire — layered dark, blue |
| usha | Usha | Dawn — warm neutrals, orange |
| sandhya | Sandhya | Dusk — flat dark, orange |
<html class="neelam">Brand palettes overlay these variables (--primary, --background, …) via createTheme in @spatika/react, or by setting the same CSS variables after this import. Customize guide: spatika.sweyam.com/customize
Other entry points
| Import | Use when |
|---|---|
| @spatika/tokens/styles.css | Full prebuilt bundle (default) |
| @spatika/tokens/tokens.css | CSS variables and Spatika utility aliases only |
| @spatika/tokens/utilities.css | Spatika-owned utility classes used by React components |
| @spatika/tokens/components.css | Component recipes (.spk-btn, .spk-field, .spk-item, .spk-table …) |
| @spatika/tokens/glass.css | Materials: calm surfaces plus the opt-in .spk-glass treatment |
| @spatika/tokens/surfaces.css | App surface helpers |
| @spatika/tokens/fonts.css | Font faces |
| @spatika/tokens/chrome.css | App chrome helpers |
| @spatika/tokens/marketing.css | Marketing gradient type, accent rules, nav enter |
| @spatika/tokens/base.css | Base element styles |
The full bundle is plain CSS generated by Spatika's local bundler. It has no dependency on external CSS frameworks, PostCSS plugins, or framework-specific CSS compilation.
Docs
Human docs and live previews: spatika.sweyam.com
License
MIT
