Are there plans to support the CSS @mixin rule? #17497
KarelJanVanHaute
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There is a proposal for @mixin in CSS. https://drafts.csswg.org/css-mixins/ And it is coming to chrome nightly.
Is there a way to use it today with tailwindcss?
LightningCSS has an example of doing it with a transform. https://lightningcss.dev/transforms.html#custom-at-rules.
But it is very unclear to me how tailwind uses lightningCSS and how I can add this to tailwindCSS. Can we hook into this somewhere?
I'm using the @tailwindcss/vite option.
I guess the main problem is that the specification uses @apply and tailwind also uses this @apply handle.
Beta Was this translation helpful? Give feedback.
All reactions