Skip to content

Theme: read every colour from the shared design system's GTokens - #55

Merged
gabrielbr merged 1 commit into
mainfrom
ccr-c36991b8-6gkeg4
Nov 1, 2026
Merged

gabrielbr merged 1 commit into
mainfrom
ccr-c36991b8-6gkeg4

Conversation

@gabrielbr

Copy link
Copy Markdown
Owner

What changes

PulseColors and FairyMode.Palette used to hold their own colour literals: 47 in total. They now read ui/theme/GTokens.kt, a file generated by the shared design system (gabrielbr/Gabriel-Deisgn-System, layer pulseloop, v0.2.0). GVoice and GMind use the same design system, so a colour now changes in one place for every app.

  • No value changes. The design system's drift.py --pulseloop reports 0 differences. It compares every PulseColors property against the token that claims it, whether the property holds a literal or a GTokens reference.
  • Screens still read PulseColors, never GTokens directly, so Fairy mode's getters work as before.
  • Fairy mode's sparkle colours stay literals: they are particle decoration, not part of the palette.
  • AGENTS.md, under "The design files and the app move together", now says where tokens come from: a colour changes in the design-system repo first, then GTokens.kt is copied in.

Checks run

  • ./gradlew :app:testDebugUnitTest: 1,798 tests, 3 failures. The same 3 fail on the base branch without this change, so they predate this PR:
    • ResponsesHttpTest.testUnresolvableHostRetriesThenFailsAsTransport (needs DNS)
    • two MealJournalTest caffeine-timing tests (they look time-of-day dependent)
  • Design system drift.py --pulseloop: 0 differences

Design files

The values are unchanged, so the canvas and the design-system artifact need no visual update. Neither link could be opened from this session.


Generated by Claude Code

PulseColors and FairyMode.Palette held their own Color(0x...) literals.
They now read GTokens.kt, generated by the shared design system
(gabrielbr/Gabriel-Deisgn-System, layer pulseloop, v0.2.0), so a colour
changes in one place for every app. No value changes: the design
system's drift.py reports 0 differences, and the screens keep reading
PulseColors, so FairyMode works as before.

AGENTS.md says where tokens come from now.

Claude-Session: https://claude.ai/code/session_01AFTKgVttu8z9Wu34dcvEYY
@gabrielbr
gabrielbr marked this pull request as ready for review November 1, 2026 23:40
@gabrielbr
gabrielbr merged commit 9895236 into main Nov 1, 2026
1 check passed
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