Replies: 1 comment
-
This would be great. Now I'm hesitant to put reusable stuff into plugins because I cannot use any tailwind utils, only |
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
Uh oh!
There was an error while loading. Please reload this page.
-
As shown by this comment, I think it will be great to have out of box support for
@apply
directives in plugins. Although the use is not officially documented, yet it works.Here is an example configuration:
The above configuration is equivalent to:
Repository demonstrating this: https://github.com/brc-dd/twin-possible-bug/tree/apply-in-plugin
Well, it seems like we can attain similar functionality in
twin
by different features like cloning and mixing. But it is a nice feature in itself, especially if someone has some complex plugins in their codebase and they prefer to use it without extra definitions or imports.Migrated from #432
Beta Was this translation helpful? Give feedback.
All reactions