Skip to content

Add semantic color support to waybar themes - #2808

Closed
KazeTachinuu wants to merge 1 commit into
omacom:masterfrom
KazeTachinuu:master
Closed

KazeTachinuu wants to merge 1 commit into
omacom:masterfrom
KazeTachinuu:master

Conversation

@KazeTachinuu

Copy link
Copy Markdown
Contributor

This commit adds theme-aware color variables to waybar, allowing status
indicators to automatically adapt to the active theme's color palette.

Changes:

  • Added color palette definitions to all 12 theme waybar.css files (catppuccin, catppuccin-latte, everforest, flexoki-light, gruvbox, kanagawa, matte-black, nord, osaka-jade, ristretto, rose-pine, tokyo-night)
  • Each theme defines 6 colors: red, orange, yellow, green, purple, blue
  • Added semantic color mappings: @theme-red, @theme-yellow, @theme-green
  • Updated waybar/style.css to use semantic colors for status indicators:
    • Battery: green (normal), yellow (warning), red (critical)
    • Screen recording indicator: red (active)

Benefits:

  • Status colors now properly match the active theme
  • Maintains theme-agnostic waybar styling
  • Follows existing omarchy pattern of per-app color definitions
  • No breaking changes to existing configurations

  This commit adds theme-aware color variables to waybar, allowing status
  indicators to automatically adapt to the active theme's color palette.

  Changes:
  - Added color palette definitions to all 12 theme waybar.css files
    (catppuccin, catppuccin-latte, everforest, flexoki-light, gruvbox,
    kanagawa, matte-black, nord, osaka-jade, ristretto, rose-pine,
    tokyo-night)
  - Each theme defines 6 colors: red, orange, yellow, green, purple, blue
  - Added semantic color mappings: @theme-red, @theme-yellow, @theme-green
  - Updated waybar/style.css to use semantic colors for status indicators:
    - Battery: green (normal), yellow (warning), red (critical)
    - Screen recording indicator: red (active)

  Benefits:
  - Status colors now properly match the active theme
  - Maintains theme-agnostic waybar styling
  - Follows existing omarchy pattern of per-app color definitions
  - No breaking changes to existing configurations
@@ -1,2 +1,15 @@
@define-color foreground #cdd6f4;

@KazeTachinuu KazeTachinuu Oct 24, 2025 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is catppuccin text, not tokyo-night.

@dhh

dhh commented May 3, 2026

Copy link
Copy Markdown
Contributor

Going to skip on this for now.

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