@corvaui/tokens
v0.2.1
Published
Design tokens for CorvaUI.
Readme
@corvaui/tokens
Shared CorvaUI CSS variables, typed token sets, and JSON token output.
npm install @corvaui/tokensImport the CSS once at the application entry, then select a theme on the document or a scoped container:
import "@corvaui/tokens/css";<main data-corva-theme="corva-light"></main>Token data is also available from @corvaui/tokens and @corvaui/tokens/tokens.json. See CorvaUI documentation for theme names, roles, and customization guidance. Supported runtimes and browsers are defined in the included support policy.
Every theme includes ten generated graph-only roles from --corva-color-chart-series-1 through --corva-color-chart-series-10. They are unique, validated at 3:1 against the theme canvas and surface, and exposed as color.chart.series1 through series10 in token data. These values theme CorvaUI charts without changing component or semantic colors.
