Skip to content

Honor ui.theme with light/dark/system support - #8

Draft
sammy8806 wants to merge 1 commit into
mainfrom
cursor/theme-support-2dce
Draft

Honor ui.theme with light/dark/system support#8
sammy8806 wants to merge 1 commit into
mainfrom
cursor/theme-support-2dce

Conversation

@sammy8806

@sammy8806 sammy8806 commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Summary

Wires ui.theme from YAML config to the application. Supports system, light, and dark modes.

Screenshots

Dark theme (default)

Light theme via CSS variables and data-theme

Changes

  • New frontend/src/stores/theme.ts loads theme on startup and config reload, applies Wails window chrome (WindowSet*Theme), and sets data-theme on <html>.
  • frontend/src/style.css defines CSS custom properties for dark, light, and system (prefers-color-scheme) appearances.
  • Key surfaces (filter bar, status bar, controls, alert cards, About) migrated to semantic color variables.

Testing

  • Theme store loads without error in dev mode (falls back to dark).
  • Structural CSS variables apply in both data-theme="light" and data-theme="dark".
Open in Web Open in Cursor 

Load theme from YAML config and apply native window chrome via Wails
runtime. Introduce CSS custom properties for structural colors and migrate
key surfaces to use them, enabling light and system appearance modes.

Co-authored-by: Steven Tappert <admin@dark-it.net>
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