Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow CSS vars with colors #161

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

Open
mallardduck wants to merge 4 commits into microsoft:main
base: main
Choose a base branch
Loading
from mallardduck:allow-css-vars-with-colors

Conversation

@mallardduck
Copy link

@mallardduck mallardduck commented Dec 26, 2021

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.

jeff-hykin, mlrawlings, kkirik, and sebthom reacted with thumbs up emoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /