feat: add Compound Design System token overrides#20
Merged
spookyintheam merged 1 commit intoApr 13, 2026
Conversation
Element Web/Desktop has migrated many UI components from legacy CSS variables to Compound Design System (CPD) tokens. This causes the theme to not apply to sidebars, panels, dialogs, emoji pickers, context menus, and other newer UI elements. Add a `compound` key to the theme JSON with overrides for all CPD color tokens, mapping them to the Catppuccin palette: - Gray scale: maps to crust -> mantle -> base -> surface -> overlay -> subtext -> text progression - Color scales (red, orange, yellow, green, blue, purple, cyan, pink, lime, fuchsia): 14-step scales generated by mixing each palette color with crust (dark end) and text (light end) - Semantic tokens: text, background, icon, and border tokens mapped to appropriate palette colors with accent-awareness Fixes catppuccin#19 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Unfortunately I did not found a method to skin element-call accordingly beside patching the webapp.asar directly |
|
Tested on develop.element.io with the Macchiato (Lavender) theme by copy-pasting its json link into the custom theme section. The sidebar is not correctly themed. |
Member
|
Thanks for the PR @YourSandwich! I am pretty low in bandwidth for Catppuccin, so In case you're open to taking over this port, we can discuss on the Catppuccin discord server. |
Contributor
Author
|
Hi @spookyintheam thank you for the offer, I am only available here and on matrix (@sandwich:archworks.co) But for CSS specifically I do not feel confident that I could provide code in the best practice manner. |
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.
Summary
compoundkey to theme JSON with overrides for Element's Compound Design System (CPD) tokensToken coverage
mixfilter, blending each palette color with crust (dark end) and text (light end)Tested with
Fixes #19
Test plan
🤖 Generated with Claude Code