Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow CSS vars with colors #161

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mallardduck
Copy link

This PR allows for color values to be defined with CSS variables. This is inspired by #154 as a way to implement that request.

To keep things sane this PR requires any CSS variable value to also define a valid HEX color default. This way if the CSS var() look up fails it will always fallback to a valid HEX color the theme defines.

Additionally it changes slightly how the color values are stored to prevent breaking the expected CSS values. Again, old behaviour is preserved and all HEX values (even those within CSS vars) will be capitalized.

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.

1 participant