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

Any plans on adding CSS variables support? #206

Open
osbre opened this issue Apr 7, 2021 · 4 comments
Open

Any plans on adding CSS variables support? #206

osbre opened this issue Apr 7, 2021 · 4 comments

Comments

@osbre
Copy link

osbre commented Apr 7, 2021

https://developer.mozilla.org/en-US/docs/Web/CSS/var()

@stof
Copy link
Collaborator

stof commented Apr 7, 2021

what do you need exactly as support for CSS variables ?

@osbre
Copy link
Author

osbre commented Apr 7, 2021

I was thinking about

:root {
    --fg-color: rgb(55, 53, 47);
}

.notion {
  color: var(--fg-color);
}

Which results in

<div class="notion" style="color: rgb(55, 53, 47)"></div>

@kaaaaaaaaaaai
Copy link

that issue already supported?

@stof
Copy link
Collaborator

stof commented Dec 8, 2021

Doing that will require building a more complete CSS engine, to parse values of properties (which are not parsed currently). While I'm open to contributions for that, I won't have the resources to do such big work myself.

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

No branches or pull requests

3 participants