How to add global css?
vnugent opened this issue · comments
Viet Nguyen commented
I'm trying to add custom classes with tailwind @apply
to global.css but they are not processed. @apply
ends up in the html.
global.css
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer components {
.toggle-checkbox:checked {
@apply: right-0 border-green-400;
right: 0;
border-color: #68D391;
}
}
Taylor Bryant commented
I think you just need to remove the colon after @apply
.