Added
-
Added support for pointing
tokens.srcat a Google Stitch Markdown
export instead of a JSON file.Only the YAML frontmatter is used, and the
colorsgroup is renamed
to the singularcolorautomatically, matching Hyvä's convention. -
Added
stripPrefixandrenameoptions to thetokensconfig in
hyva.config.json, to unwrap a wrapping key path and align group
naming without needing a custom build step. -
Added a default
theme.css, providing a fallback design-token palette(
primary,secondary,background,surface,ink,ink-muted) for themes that don't define their own.Colors are defined in
oklch.
lighter/darkerstyles are derived viacolor-mix()from the base color, so overriding--color-primary/--color-secondarykeeps the tints in sync automatically. -
Added
DESIGN.md, an example design-token file demonstrating the Hyvä/Tailwind naming convention for a project's own design tokens.
Changed
-
Bumped
@fylgja/props-builderto^2.2.0.Figma-syntax token conversion no longer auto-unwraps every
structural group at every nesting level, since this sometimes
removed too much in real-world token files. A top-levelother
group and a redundant nested color group are still handled
automatically; use thestripPrefix/renameoptions above to
unwrap anything else explicitly. -
Renamed the
fg/fg-secondarycolor tokens toink/ink-muted,
fixing a naming inconsistency in favor of a clearer design-token syntax.inkpairs naturally withsurface(the ink sits on a surface), rather than standing alone as an unrelated abbreviation.
Full Changelog: 1.3.0...1.4.0