How to override default tailwind.css?
avxkim opened this issue · comments
Alexander Kim commented
I want to override @layers
, @components
inside tailwind.css, but i've checked documentation, and found no information on how to achieve that.
Inesh Bose commented
You could use a Tailwind plugin, or add your own assets/css/tailwind.css
file for control:
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
@layer components {
}
Alexander Kim commented
@ineshbose can i add this tailwind.css while using this plugin same time?
Inesh Bose commented
Yes! You can do both; the plugin approach would be preferable due to the JS/CSS scoping.
Alexander Kim commented
i see now, thanks. As i understood, we can just add our components using TW plugin inside tailwind.config.ts