@theme tailwind base variables being override #19191
-
DescriptionWhen using the Tailwind with custom Reproductionhttps://svelte.dev/playground/04a4eaa9df954733932468e28384f61c?version=5.41.3 Steps to reproduce:
Expected behaviorThe custom class should not override the value and changes the text-base to a color cause its a size value. Actual behaviorTailwind shouldn't override the default class Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
To be clear, You'll see that .text-base {
font-size: 1rem;
line-height: 1.5rem;
--tw-text-opacity: 1;
color: rgb(52 144 220 / var(--tw-text-opacity, 1));
}So it doesn't remove the default properties from extend: {
colors: {
- 'base': '#3490dc',
}
} |
Beta Was this translation helpful? Give feedback.
-
|
If we add a color base to the system in this example, shouldn’t there be a lint rule that warns me when it affects another class? |
Beta Was this translation helpful? Give feedback.
Are you referring to the VSCode plugin? I don't believe there is such a thing. Though you can fork it and add a rule that suits your needs.