Repository navigation
style(theme): align light and dark palettes with Dreamcoder OS tokens - #116
Merged
Merged
Conversation
Dreamcoder08
force-pushed
the
style/theme-dreamcoder-palette
branch
from
October 27, 2026 06:41
91937c8 to
e240aee
Compare
Palette values map to dreamcoder-dots/DreamcoderThemes/dreamcoder/tokens.json. - Dark: OLED surface ladder (#0b0b0b / #0d0d0f / #1f1f1f / #2e2e2e), text #e6e6e6, indigo accent #a5b4fc with violet hover #d4b5fd and pressed #ddd6fe, on-accent #000, danger #fb8585. - Light: accent from #8a4e26 to dreamcoder's #824f16, with pressed steps that stay darker (#6f4211 / #5f380e) so the state contract in tests/theme-state keeps its "a state never drops below its at-rest ratio" rule. Danger #842f24. - Secondary and tertiary keep the repo's legibility-tuned #b7b8b3 / #96978f: dreamcoder's brighter #c7c7c7 secondary leaves no room for a press step that still clears that rule. - Borders are untouched on purpose: the minted hairlines are a weight decision, not a palette one. - Refresh the ratio citations in 18-interaction-states.css and the palette line in README.md so no comment keeps quoting the retired colours. Verified: pnpm test:unit 204/204 (A1/A2/A7/A8/A9 token contract), pnpm run check, pnpm run check:size.
Dreamcoder08
force-pushed
the
style/theme-dreamcoder-palette
branch
from
October 27, 2026 06:48
e240aee to
f50f0da
Compare
This was referenced Oct 27, 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.
Summary
#824f16); surfaces and ink already matched the light tokens, and the pressed steps stay darker so the state contract holds.Changes
src/styles/global/01-theme-tokens.css@themepalette remapped to Dreamcoder Dark tokenssrc/styles/global/02-theme-modes.csssrc/styles/portfolio/18-interaction-states.cssREADME.mdPalette mapping
#0d0d10/#17171c/#1e1e24/#26262e#0b0b0b/#0d0d0f/#1f1f1f/#2e2e2esurface0–surface3#ededeb#e6e6e6text#b7b8b3/#96978f#ff7a18/#ff8f42/#ffa25e#a5b4fc/#d4b5fd/#ddd6feaccent/accent_2#0a0a0a#000000on_accent#ff6b6b#fb8585error#8a4e26/#7a4522/#6b3c1c#824f16/#6f4211/#5f380eaccent+ darker pressed steps#b3261e#842f24errorTest plan
pnpm test:unit— 196/196 (A1 key parity, A2 categories, A7 contrast floors, A8 state ordering, A9 focus alias)pnpm run check(astro sync + tsc)pnpm run check:sizeastro devrender check: noff7a18/ff8f42/ffa25eleft in the served HTML, new tokens presentNotes
The
tests/theme-statecontract requires every hover/press to keep at least its own at-rest ratio. That is why dark keeps its tuned#b7b8b3/#96978ftext ramp instead of dreamcoder's brighter#c7c7c7muted (a brighter rest label leaves no room for a press step), and why the light accent steps darken rather than followlink_hover.Local
pnpm buildfails at prerender withNamed export 'parseCookie' not found, because the hoisted rootnode_modules/cookieresolves to0.7.2(from@lhci/cli→express) while Astro needs2.0.1. Reproduced on a stashed baseline, and CI onmainis green, so it is a local install artifact, not this change.Risk: none.