3 ms·
Why use @apply if your CSS is component scoped anyway. Additionally, CSS Modules is not a replacement for TailwindCSS. TailwindCSS ships and strongly promotes
by mikojan 4y ago
Why use @apply if your CSS is component scoped anyway.
Additionally, CSS Modules is not a replacement for TailwindCSS. TailwindCSS ships and strongly promotes the use of design tokens. It is harder to NOT use design tokens in TailwindCSS.
Because of this, there is no CSS Modules v. TailwindCSS. It is CSS Modules + X v. TailwindCSS. Where in the worst case "X" is just a stand-in for "everybody does whatever" which produces horrendous unmaintainable stylesheets whether they are global or not.