I like to use componentName.module.css
And within the CSS file you would @apply the Tailwind utility-classes? That's definitely a good approach. Although you will still end up with specific stylesheets for each component. Would be similar to SCSS with mixins IMO.
@apply
yeah! it will be similar to SCSS and we can use the power of scss and tailwindcss combined, and yes I use @apply.
But the slogan is that “you should never leave your markup”.
If I should create separate files for the styles I feel I did not reduced the mental work here :/
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I like to use componentName.module.css
And within the CSS file you would
@apply
the Tailwind utility-classes? That's definitely a good approach. Although you will still end up with specific stylesheets for each component. Would be similar to SCSS with mixins IMO.yeah! it will be similar to SCSS and we can use the power of scss and tailwindcss combined, and yes I use @apply.
But the slogan is that “you should never leave your markup”.
If I should create separate files for the styles I feel I did not reduced the mental work here :/