Replace twin.macro with tailwindcss #116
devrsi0n
started this conversation in
RFC(request for comments)
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The main reasons we use twin.macro are we can overwrite style easier and apply variants to multiple classes at once with variant groups. Since tailwindcss is adding multiply variants support, and twin.macro output has bigger bundle size, we can use plain tailwindcss to replace twin.macro fine.
Another benefit is we can remove
.babelrc.js
complete to adopt the Next.js new compiler swc which brings significant build/HMR improvement.Beta Was this translation helpful? Give feedback.
All reactions