Svelte component tailwind class does not override scss file #16421
-
I am working on a Svelte/Vite project with SASS and my files are (already in
...
a,
input,
button,
select,
textarea {
font-family: inherit;
color: inherit;
}
...
@use 'sass:meta';
@use 'tailwindcss';
@config '../../../../../tailwind.config.ts';
@include meta.load-css('global/theme');
It was working well with For reference this was before: It seems somehow the tailwind CSS classes have less priority now. Is that expected? How shall I fix it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Consider having the CSS in @layer base {
/* Styles here */
} You may also wish to read the documentation on compatibility with Sass in the docs if you have not already done so. |
Beta Was this translation helpful? Give feedback.
Consider having the CSS in
global/theme.scss
in the@layer base
like:You may also wish to read the documentation on compatibility with Sass in the docs if you have not already done so.