CSS: split monolithic stylesheet into focused sub-files and introduce design tokens#64
Merged
CSS: split monolithic stylesheet into focused sub-files and introduce design tokens#64
Conversation
Closed
…te game stylesheets Agent-Logs-Url: https://github.com/acrosman/BrainSpeedExercises/sessions/b9387d83-e383-4d0b-bcde-f2a4e90cb04a Co-authored-by: acrosman <2972053+acrosman@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Clean up styling for consistent game theme
CSS: split monolithic stylesheet into focused sub-files and introduce design tokens
Apr 14, 2026
acrosman
approved these changes
Apr 14, 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.
app/style.css(663 lines) mixed reset rules, layout, game cards, history panel, and shared game components. Game-specific stylesheets hardcoded the same hex values used by the main theme and in several cases fully duplicated shared component rules.Changes
app/style.css→@importhubThe entry-point file is now 21 lines. All rules moved to
app/styles/:variables.cssbase.css.sr-only, global focus ringlayout.cssgame-card.csshistory.cssgame-shared.css.game-welcome,.game-end-panel,.game-results,.game-btn,.game-trendDesign tokens
All hardcoded hex values replaced with semantic variables:
Game stylesheet cleanup
All 9 game stylesheets updated to reference theme variables. Removed outright duplications:
otter-stop— deleted.os-btn,.os-end-panel,.os-results(exact copies of shared classes; HTML already applied both)fast-piggie— removed.fp-instructions,.fp-btn, end-panel card blockhigh-speed-memory— removed.hsm-instructions,.hsm-btn, end-panel blockfield-of-view— removed.fov-trend(use.game-trend)orbit-sprite-memory— removed.osm-btnduplicates_template— cleaned up to serve as the canonical starting pointWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
redirector.gvt1.com/proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --enable-crash-reporter=6f5da0e9-e8cb-46fd-a1ba-018dd7a8e13f,no_channel --user-data-dir=/home/REDACTED/.config/brain-speed-exercises --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,14876888237444472711,6537178274358955157,262144 --enable-features=PdfUseShowSaveFilePicker --disable-features=LocalNetworkAccessChecks,ScreenAIOCREnabled,SpareRendererForSitePerProcess,TraceSiteInstanceGetProcessCreation --variations-seed-version --trace-process-track-uuid=3190708989122997041(dns block)/home/REDACTED/work/BrainSpeedExercises/BrainSpeedExercises/node_modules/electron/dist/electron /home/REDACTED/work/BrainSpeedExercises/BrainSpeedExercises/node_modules/electron/dist/electron --no-sandbox .(dns block)If you need me to access, download, or install something from one of these locations, you can either: