@eamonxg/aurora-tokens
v1.2.1
Published
Aurora design-token model: OKLCH derivation engine (mix/shade/set/alpha/const), the Aurora token spec and defaults, plus a prebuilt browser global (dist/tokens.global.js). Consumed by luci-theme-aurora at build time and vendored by luci-app-aurora-config.
Readme
@eamonxg/aurora-tokens
Aurora design-token model in one package:
- engine.js — five OKLCH operators (
mix/shade/set/alpha/const) (import via@eamonxg/aurora-tokens/engineto reuse the mechanism with your own spec;createResolvercomes from the package root) - spec.js / defaults.js — the Aurora derivation rules and default palette (the single source of truth)
- resolve.js —
resolveTokens(mode, inputs)/resolveMode(mode)bound to the Aurora spec - dist/tokens.global.js — prebuilt browser IIFE (
AuroraTokensglobal; expects aColorglobal from colorjs.io), built on publish
Consumers
- luci-theme-aurora imports the ESM model at build time to generate its CSS variables.
- luci-app-aurora-config vendors
dist/tokens.global.jsby pinned version (scripts/sync-tokens.mjs).
Versioning
Independent semver. Removing/renaming a token or changing derivation semantics is major; adding a token is minor; value tweaks are patch.
Release
Tag vX.Y.Z (matching package.json) and push — CI tests and publishes with the repo's NPM_TOKEN secret.
