Skip to content

Conversation

bartveneman
Copy link
Member

@bartveneman bartveneman commented Sep 22, 2025

What

When using this library to generate tokens for any meaningful work you quickly run into issues where it's useless to have 2 different color tokens for #f00 and rgb(255 0 0). We're now deduplicating the following token types because they can be easily normalized:

  • color
  • font-size
  • line-height
  • duration

Breaking changes

  1. Hash values have changed
  2. Many values are deduplicated: where you previously expect red and #f00 to turn up as individual items they're now merged into one
  3. Required Node version changed from 18 to 22 (primarily to facilitate modern JS features like Set.union()

closes #27

@bartveneman bartveneman changed the title Dedupe tokens: color, font-size, line-height, duration BREAKING: Dedupe tokens: color, font-size, line-height, duration Sep 22, 2025
@bartveneman bartveneman merged commit c38d2a7 into main Sep 22, 2025
3 checks passed
@bartveneman bartveneman deleted the dedupe branch September 22, 2025 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0.5rem and .5rem reported as unique font sizes
1 participant