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

Adding values and functions to custom data #282

Open
romainmenke opened this issue Jul 25, 2022 · 0 comments
Open

Adding values and functions to custom data #282

romainmenke opened this issue Jul 25, 2022 · 0 comments

Comments

@romainmenke
Copy link
Contributor

romainmenke commented Jul 25, 2022

Adding custom values and functions to custom data would make it easier and more maintainable to have a richer editor experience for these tokens.

For PostCSS specifically it is not possible to create a general purpose language extension that covers all possible custom additions. Every user's collection of plugins is a bit different.

Plugin authors could also publish relevant custom data for their PostCSS plugins.

This can also act as an escape hatch for newer language features like oklch(0 0 0).


.foo {
  color: my-custom-color-ident;
  color: my-custom-color-function(0 0 0);
}
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

1 participant