Skip to content

feat(theme): introduce semantic color tokens, light/dark, and appearance preference#9

Merged
johnnyhuy merged 1 commit into
mainfrom
feat/apptheme-light-dark-semantic-tokens
Jun 21, 2026
Merged

feat(theme): introduce semantic color tokens, light/dark, and appearance preference#9
johnnyhuy merged 1 commit into
mainfrom
feat/apptheme-light-dark-semantic-tokens

Conversation

@johnnyhuy

Copy link
Copy Markdown
Contributor

Summary

  • Adds AppearancePreference (system/light/dark) backed by AppStorage.
  • Refactors AppTheme to expose scheme-aware tokens: textPrimary/textSecondary/textTertiary, cardBackground(for:), cardStroke(for:), backgroundGradient(for:), accentSurface(_:for:), shadowColor/shadowRadius(for:).
  • Resolves the Classic accent from a generic .blue to a fixed RGB so all themes have deterministic colors.
  • Adds view modifiers: bfTextPrimary/bfTextSecondary/bfTextTertiary and bfBackground.

This is the foundation for migrating every screen to light/dark support and consistent text contrast across the five themes (Bold, Classic, Midnight, Forest, Sunset).

Testing

  • mise run build: SwiftPM build complete
  • mise run test: 73 tests pass
  • mise run ios:build:dev: BUILD SUCCEEDED on iOS 26 simulator

…nce preference

- Adds AppearancePreference (system/light/dark) backed by AppStorage.
- Refactors AppTheme to expose scheme-aware tokens:
  textPrimary/Secondary/Tertiary, cardBackground(for:),
  cardStroke(for:), backgroundGradient(for:), accentSurface(_:for:),
  shadowColor/Radius(for:).
- Resolves the Classic accent from a generic .blue to a fixed RGB so
  all themes have deterministic colors.
- Adds view modifiers: bfTextPrimary/Secondary/Tertiary and bfBackground.

This is the foundation for migrating every screen to light/dark
support and consistent text contrast across the five themes.

Co-authored-by: opencode-agent <noreply@opencode.ai>
@johnnyhuy johnnyhuy merged commit 2bd7e6b into main Jun 21, 2026
4 of 6 checks passed
@johnnyhuy johnnyhuy deleted the feat/apptheme-light-dark-semantic-tokens branch June 21, 2026 10:32
johnnyhuy added a commit that referenced this pull request Jun 21, 2026
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.

1 participant