Closed AugustinMauroy closed 4 days ago
@AugustinMauroy just a drive-by comment, but what's the point in doing that? The project already uses styled-components
, which allow defining these in component files with full type checking. Your suggestion is pretty much reverting to plain CSS / postCSS, in which case you don't need Tailwind at all.
in which case you don't need Tailwind at all.
Nop you still use tailwindcss. But you go away from styled-components which is not the best practice.
Im not going to put all the effort as it's not really a priority. But im always accepting PRs!
Now the project use tailwind in className. But there are problem with that, it's create spaghetti code.
So the solution is module css
Module css with tailwind allow us to separate JSX and logic to the style.
here an example: