Skip to content
Discussion options

You must be logged in to vote

Absolutely! Take a look here at the theme source file. Every variable in that is a CSS custom property that can be accessed using the var function and by adding -- to the beginning. So primary-color can be accessed using var(--primary-color). You can use either Home Assistant custom properties or the material design system tokens (the latter would only work with this theme, and the light and dark mode custom properties are the same).

The base color is just the initial source color provided to material color utilities for theme generation and usually isn't actually present in the generated theme color palette itself. I also don't think you'd be able to access the base color in CSS from the…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Nerwyn
Comment options

Comment options

You must be logged in to vote
1 reply
@davidsmonteiro
Comment options

Answer selected by davidsmonteiro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants