Use Tailwind directives within css in js #423
deindesignpl
started this conversation in
Ideas
Replies: 1 comment
-
Hey, thanks for posting your suggestion. Would you see the Or is it just a tw function that doesn't require backticks? css({
span: {
@apply text-black bg-white;
}
}) ^ That syntax is made to be written in css and wouldn't work in js outside template literals: styled.div`
span {
@apply text-black bg-white;
}
` |
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
-
Idea would be to allow devs to use TW @apply within JSX. This would be helpful when using selectors like &::before. So instead of writing ${tw
text-black
} dev could write @apply text-black.Beta Was this translation helpful? Give feedback.
All reactions