@loworbitstudio/visor-theme-engine
v0.4.1
Published
Theme engine for the Visor design system — shade generation, token mapping, font resolution, and import/export for .visor.yaml themes.
Downloads
434
Maintainers
Readme
@loworbitstudio/visor-theme-engine
Theme engine for the Visor design system — shade generation, token mapping, font resolution, and import/export for .visor.yaml themes.
Installation
npm install @loworbitstudio/visor-theme-engineWhat It Does
- Generates dark and light color scales from a brand anchor color using OKLCH
- Maps theme configuration (
.visor.yaml) to CSS custom properties - Resolves font declarations against the Visor fonts CDN
- Exports theme bundles for use in any project
- Provides a
docsAdapterfor registering themes in fumadocs sites
Usage
Themes are typically managed via the Visor CLI (visor theme sync). Direct API usage is for advanced cases — building custom theme tooling or integrating with non-CLI workflows.
import { generateTheme } from '@loworbitstudio/visor-theme-engine'Documentation
Full docs at visor.loworbit.studio.
