Add design-system foundation (tokens, theming, accent, color scheme)#86
Open
b006n97 wants to merge 1 commit into
Open
Add design-system foundation (tokens, theming, accent, color scheme)#86b006n97 wants to merge 1 commit into
b006n97 wants to merge 1 commit into
Conversation
Introduces the platform layer the rest of the UI overhaul sits on, with no feature redesigns yet: - theme/tokens.ts: single source of truth for accent ramps (red/blue/green), per-scheme neutrals, medal/placement colors, and timing. - theme/index.ts: createAppTheme(accent) builds a colorSchemes (light/dark) theme, exposing accent + neutrals as CSS vars (--mui-palette-*). - theme/AccentContext.tsx: runtime accent switch (localStorage-persisted), orthogonal to MUI's color-scheme mode. - theme/utils.ts: additive sx presets (gradientTitle, eyebrowLabel) plus restyled existing helpers; export names/types unchanged so current components keep compiling. - index.tsx: InitColorSchemeScript to avoid a flash of the wrong theme. - index.html: load the Manrope font used by the theme typography. - App.tsx: swap ThemeProvider(createAppTheme()) for <AccentProvider> only; routing is left untouched here and migrated in later PRs. - DESIGN.md: design-system reference. Fixed the tokens.ts docstring drift (was "two accent variants"; there are three: red/blue/green). Typechecks independently (tsc --noEmit clean) with the still-un-migrated components consuming the new theme.
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.
Introduces the platform layer the rest of the UI overhaul sits on, with no feature redesigns yet:
Typechecks independently (tsc --noEmit clean) with the still-un-migrated components consuming the new theme.