Releases: claushaas/palette-kit
Releases · claushaas/palette-kit
v0.3.0
Breaking changes
- ESM-only package (
"type": "module"), norequire()support. - Public API is split into subpath exports:
@clhaas/palette-kit(runtime)@clhaas/palette-kit/serialize(serializer)@clhaas/palette-kit/export(exporters)@clhaas/palette-kit/cliand binpalette-kit(CLI)
- Exporters are not re-exported from the main entrypoint to keep the runtime lean and tree-shakeable.
Features
- Public serializer (
serializeColor,serializeResolved,theme.serialize) with OKLCH/sRGB/P3 output options. - Public exporters:
exportThemeCss(progressive@supportsfallbacks) andexportThemeJson(stable{ light, dark }structure). - Declarative Token Registry + official token presets (
minimal-ui,radixLike-ui,modern-ui). - CLI tooling:
palette-kit init(typed config template)palette-kit build(deterministicdist/palette/artifacts: CSS/JSON/TS + d.ts)
- Strong inference and DX validation improvements (strict vs non-strict behavior, clearer errors).
Migration
- See
docs/Migration.mdfor upgrade notes and updated import paths.