How can i change variant for cards #2458
-
hello every one , am new in js svelte skeleton and i want to if i can do this : |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@ZAAFHachemrachid so two things here. First, so the important thing to note about Tailwind is how it choses to bundle classes into your build's stylesheet. In a nutshell, the Tailwind compiler scans all paths specified in the Tailwind Config > When the compiler scans these your local app files, it's looking for a verbatim instance of that class in the files. This is why you cannot dynamically construct classes: So I would do two things:
Note how not only is the If you could please verify you see the same on your end. |
Beta Was this translation helpful? Give feedback.
@ZAAFHachemrachid so two things here.
First, so the important thing to note about Tailwind is how it choses to bundle classes into your build's stylesheet. In a nutshell, the Tailwind compiler scans all paths specified in the Tailwind Config >
content
setting. This typically includes all your local app files, and in the case of Skeleton, thenode_modules
package path to Skeleton. To ensure Tailwind bundles the styles needed for components too.When the compiler scans these your local app files, it's looking for a verbatim instance of that class in the files. This is why you cannot dynamically construct classes:
https://tailwindcss.com/docs/content-configuration#dynamic-class-names
So I wo…