@property #11986
IranMine123
started this conversation in
Ideas
@property
#11986
Replies: 2 comments 3 replies
-
What would the API for this look like for you? It's a rather complicated syntax I can't see how Tailwind could add something ergonomic for this nor can I really think how it would be useful. |
Beta Was this translation helpful? Give feedback.
3 replies
-
The @Property doesn't belong to any element in the DOM, and it feels inappropriate to add it as a utility class. However, it is possible to use @Property in the CSS, which doesn't have any downsides or deviations from the Tailwind ideas. @tailwind base;
@tailwind components;
@tailwind utilities;
@property --property-name {
syntax: "<color>";
inherits: false;
initial-value: #c0ffee;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I just sent this link it explains the feature completely. please add this to tailwind. tysm
CSS Custom Properties
https://developer.mozilla.org/en-US/docs/Web/CSS/@property
Syntax
Beta Was this translation helpful? Give feedback.
All reactions