Skip to content

refactor(ui): Modern Design System & CSS Variable Theme Token Architecture - #108

Merged
Sanan507 merged 1 commit into
masterfrom
jules/issue-91-theme-9751609358263662791
Aug 11, 2026
Merged

refactor(ui): Modern Design System & CSS Variable Theme Token Architecture#108
Sanan507 merged 1 commit into
masterfrom
jules/issue-91-theme-9751609358263662791

Conversation

@Sanan507

Copy link
Copy Markdown
Owner

What

Refactored the application's CSS theming architecture to use modern design tokens. This removes the legacy inconsistent variable naming (e.g., --bg) and standardizes it (e.g., --color-bg-primary), replacing raw hex colors throughout the application to properly leverage the new theme variable structure.

How it was tested

  • All tests passing (pnpm run test on src/utils/).
  • Verified build succeeds (pnpm run build).
  • Took visual verification snapshots via Playwright (dark_mode_final.png and light_mode_final.png) and manually validated that both the dark and light modes render perfectly under the new token architecture.
  • Ensured no regressions are present compared to the default state, and legacy override patterns that incorrectly polluted the global scope have been sanitized safely.

Closes #91


PR created automatically by Jules for task 9751609358263662791 started by @Sanan507

…cture

- Removed duplicate and hardcoded hex literals across `.css` styles
- Migrated legacy `var(--bg)` syntax to robust `var(--color-bg-primary)` token standards
- Rewrote the base CSS and `:root[data-theme='light']` blocks to handle dynamic overrides via CSS variables without breaking component nesting hierarchy
- Safely deprecated obsolete inline color overrides
- Ensured 100% functionality and correct rendering of light mode

Closes #91
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
algorithm-race-visualizer Ready Ready Preview Aug 11, 2026 12:38am

@Sanan507
Sanan507 merged commit b1ee611 into master Aug 11, 2026
4 checks passed
@Sanan507
Sanan507 deleted the jules/issue-91-theme-9751609358263662791 branch August 11, 2026 08:39
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.

refactor(ui): Modern Design System & CSS Variable Theme Token Architecture

1 participant