feat(tokens): opt-in colour ladders and a semantic token layer - #120
Merged
Merged
Conversation
- styles/ladders.css: 12 ramps x 12 steps, light and dark, from Radix Colors 3.0.0, with role aliases and a per-domain ramp under [data-domain]. - styles/system.css: every tokens.css family mapped to a ladder step, plus semantic tokens, role radii, type roles, motion and three shadow levels. - scripts/gen-ladders.mjs and radix-ramps.json generate both files, so an app that ships ahead of a release keeps an identical copy. Opt in: nothing changes for an app that does not import the two files. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 74a994d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
tangletools
approved these changes
Sep 24, 2026
tangletools
left a comment
There was a problem hiding this comment.
✅ Auto-approved drewstone PR — 74a994db
This PR was opened by the trusted drewstone account.
No automated review runs on this PR. This approval rests on the rule above alone.
tangletools · auto-approval · reason: drewstone_author · 2026-09-24T02:14:28Z
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The colour system from the Tangle Agents redesign, at its source.
Builder (agents.tangle.tools) already ships byte-identical copies of these two files ahead of this release (tangle-network/agent-builder#438); once Builder installs a brand with them, it imports these and deletes its copies.
What changes
styles/ladders.css: 12 ramps × 12 steps, light and dark, from Radix Colors 3.0.0. Mauve is the neutral, iris the brand, green/amber/red/blue carry status, and plum, orange, grass, bronze, crimson and olive are domain ramps. Role aliases (--gray-*,--accent-*,--success-*,--warning-*,--danger-*,--info-*) and[data-domain]→--domain-1..12.styles/system.css: everytokens.cssfamily (hsl, md3, depth, bg, text, border, surface, status, btn, sidebar) mapped to a ladder step, plus semantic tokens (--bg-page,--line,--fg-muted,--accent-text,--ink), role radii, type roles, motion and a three-level shadow scale.scripts/gen-ladders.mjs+radix-ramps.jsongenerate both files (pnpm --filter @tangle-network/brand gen:ladders).Why opt in, not a remap of
tokens.csssystem.cssturns light pages white and changes every token an app reads. Importing it is a per-app decision, so no other Tangle app changes when this releases.Contrast, measured in the browser on Builder
--accent-text(iris 11): 6.07:1 on white, 8.33:1 on dark step 2.--line-field(mauve 9): 3.30:1 on white, 3.45:1 on dark step 2.--domain-bubble(light step 11): 4.51–6.07:1 with white text across the nine domain ramps.Checked:
pnpm test(374 passed),pnpm --filter @tangle-network/brand build, and the generator output diffed byte-for-byte against Builder's shipped copies.