Skip to content

Fail the token build on colliding CSS custom property names - #85

Open
librowski wants to merge 1 commit into
ds2-typographyfrom
ds2-pipeline-prep
Open

Fail the token build on colliding CSS custom property names#85
librowski wants to merge 1 commit into
ds2-typographyfrom
ds2-pipeline-prep

Conversation

@librowski

@librowski librowski commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

The token build flattens token paths with style-dictionary's name/kebab transform; two distinct paths can produce the same CSS custom property name, and the later definition silently wins. The validator derives names with the same change-case call the transform uses and fails the build on any collision whose values differ.

The DS 2.0 migration tooling (designer changelog, codemod map, usage rewriter) is kept out of the public repo — migration PRs ship only the resulting changes.

@librowski
librowski changed the base branch from ds-2.0 to ds2-typography August 20, 2026 16:40
@librowski
librowski force-pushed the ds2-pipeline-prep branch 2 times, most recently from 13eda5b to 7009033 Compare August 20, 2026 17:11
@librowski
librowski force-pushed the ds2-pipeline-prep branch 3 times, most recently from 9f6e5b0 to cda9005 Compare August 20, 2026 21:53
@librowski librowski changed the title Token pipeline prep (1/2): collision guard, codemod map, usage rewriter Fail the token build on colliding CSS custom property names Aug 20, 2026
@librowski
librowski force-pushed the ds2-pipeline-prep branch 4 times, most recently from 51d25dc to 516bf11 Compare August 20, 2026 23:22
@librowski
librowski marked this pull request as ready for review August 20, 2026 23:31
…values

Style-dictionary's name/kebab flattening can map two distinct token
paths to one CSS custom property, and the later definition silently
wins. The validator derives names by invoking SD's own name/kebab
transform, so the check cannot drift from the build, and aborts on
any collision whose values differ.
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.

2 participants