3 ms·
You can define css classes that combine multiple tailwind classes https://tailwindcss.com/docs/functions-and-directives#apply-directive https://tailwindcss.com
by scoopertrooper 19d ago
You can define css classes that combine multiple tailwind classes
https://tailwindcss.com/docs/functions-and-directives#apply-directive https://tailwindcss.com/docs/functions-and-directives#apply-...
- kaoD 19d agoYou can, but it goes against Tailwind's philosophy. It used to be explicitly discouraged here[0] (see this 2022 GH comment[1]), but now they just don't mention it. [0] https://tailwindcss.com/docs/styling-with-utility-classes#managing-duplication https://tailwindcss.com/docs/styling-with-utility-classes#ma... [1] https://github.com/tailwindlabs/tailwindcss/discussions/7651#discussioncomment-2250993 https://github.com/tailwindlabs/tailwindcss/discussions/7651...