Skip to content

v1.4.0

Latest

Choose a tag to compare

@GrimLink GrimLink released this 09 Jul 10:52

Added

  • Added support for pointing tokens.src at a Google Stitch Markdown
    export instead of a JSON file.

    Only the YAML frontmatter is used, and the colors group is renamed
    to the singular color automatically, matching Hyvä's convention.

  • Added stripPrefix and rename options to the tokens config 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/darker styles are derived via color-mix() from the base color, so overriding --color-primary/--color-secondary keeps 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-builder to ^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-level other
    group and a redundant nested color group are still handled
    automatically; use the stripPrefix/rename options above to
    unwrap anything else explicitly.

  • Renamed the fg/fg-secondary color tokens to ink/ink-muted,
    fixing a naming inconsistency in favor of a clearer design-token syntax.

    ink pairs naturally with surface (the ink sits on a surface), rather than standing alone as an unrelated abbreviation.

Full Changelog: 1.3.0...1.4.0