Allow themes to specify custom properties #3590
Unanswered
thislooksfun
asked this question in
Other UI enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the enhancement
The default HA themes allow users to select a custom primary and accent color without needing to make a different theme for every option. Custom themes could benefit from this as well.
In particular, I would like to see at least the following option types:
primary-color: red, but option "B" setsaccent-color: blueand doesn't setprimary-colorat all).Here is an example of how I would see this being used. This is obviously not final, it is just used to illustrate how I would like to use it. If you can think of a better way to organize this that still allows for the desired flexibility (see use cases below), then that would be awesome.
Use cases
I am the maintainer of the Catppuccin HA theme, which has 4 different palettes (3 dark and 1 light), each with 14 different possible accent colors. Unfortunately, in order to allow users to use these different accent options we have to ship a total of 98 different themes1 (each accent option has 7 sub-options: one each for the 4 palettes + 3 more light+dark pairs). Having the ability to have a "accent color" selector would allow us to get that down to just 7, which would greatly simplify the installation process for our users. If you look at the difference between any two accent files you can see how similar they are. You can also look at the template file used to generate all the colors and you'll see just how much a simple "accent color" selector would benefit us.
Visual examples
No response
Anything else?
No response
Footnotes
For example, here is the full download for v2.1.3 of the theme: https://github.com/catppuccin/home-assistant/releases/download/v2.1.3/catppuccin-accents.zip ↩
Beta Was this translation helpful? Give feedback.
All reactions