Repository navigation
Design tokens: a semantic layer the page can speak (stack 2 of 6) - #384
Merged
Merged
Conversation
Three things that no page renders yet, shipped first so the landing page can import them.
`scripts/generate-sessions.js` reads the archive's frontmatter and writes
`src/data/sessions.json`. It derives each href from the file's own path, accounting for
Docusaurus stripping number prefixes and for `readme`/`index` folders, because the archive is
inconsistent: most sessions carry a `slug:` that includes their number, eight have none and are
served at the number-stripped path, and two folders are both numbered 14. 21 sessions against
26 built routes, none missing.
`scripts/fetch-github-data.js` also calls `/repos/{owner}/{repo}` and writes a `repo` block,
with the same keep-on-failure rule as the rest of that script. `githubData.json` gains that
block so a local build has stars and forks to render.
`@types/react-dom` arrives for the components that follow.
Colour, spacing, radius and shadow tokens named by intent rather than by value, plus the warning callout's four values, the track accents, the focus ring and the theme-switch rules. 106 tokens where the stylesheet had 85 and drops none of them, so every existing rule keeps resolving to what it resolved to before: the rendered page is unchanged, which is the point of landing the vocabulary before the page that speaks it. The dark surface moves to html[data-theme='dark'] in the same pass. Infima declares its own dark tokens on that selector, so a bare [data-theme='dark'] block loses every contested token without saying so.
This was referenced Nov 7, 2026
This was referenced Nov 7, 2026
danbaruka
approved these changes
Nov 7, 2026
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.
What this does
One file, 108 lines: a semantic token layer, and nothing that uses it yet.
Colour, spacing, radius and shadow tokens named by intent rather than by value; the warning callout's four values; the five track accents with their dark variants; the focus ring; the rules that let a theme switch cross-fade instead of interpolating each element. 106 tokens where the stylesheet had 85, and it drops none of them, so every existing rule resolves to exactly what it resolved to before.
The dark surface moves to
html[data-theme='dark']in the same pass. Infima declares its own dark tokens on that selector, so a bare[data-theme='dark']block loses every contested token without saying so: that is what made the first attempt at dark mode look half-applied.Why this is its own PR
It is the vocabulary the next PR speaks. Shipping it alone means the colour, spacing and contrast decisions get read as one page of values rather than buried in 2,500 lines of page work, and it cannot break anything: nothing references the new names yet.
Verified
npx docusaurus buildsucceedsrgb(37,85,254), linksrgb(35,83,255), the home page still the old hero and cards, footer still its gradient--color-accent-blazingresolves to#ff4b11, so the new names are live in the cascade