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

Themes: Utilize the @property rule to better describe global CSS Custom Properties #361

Open
simeonoff opened this issue Nov 25, 2024 · 0 comments

Comments

@simeonoff
Copy link
Contributor

We generate a bunch of CSS Variables that we include with each mixin, some of which are very specific to how they should be used/configured. This issue should be expanded with specifics, but the general idea is to better type some of the CSS variables using the @Property rule so that we:

  1. Limit the possible values that can be passed to a CSS variable we provide.
  2. Reduce the amount of :root declarations with better defaults.
  3. Provide better DX.
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