The bg-transparent
class does not exist. If bg-transparent
is a custom class, make sure it is defined within a @layer
directive.
#10548
-
Can someone let me know why this one doesn't work?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
My guess is you have overridden your color palette in your |
Beta Was this translation helpful? Give feedback.
-
In case anyone else comes here for the same reason I did, you really must use the extend option instead of overriding the theme colors. If you override, you need to provide ALL of the colors. Extending allows you to add new ones to the existing ones. Took me way to long to figure this out 🤦♂️ // tailwind.config.js
module.exports = {
...
// BAD
theme: {
colors: {
'mycustomcolor': '#ddff88'
}
}
// GOOD
theme: {
extend: {
colors: {
'mycustomcolor': '#ddff88'
}
}
}
...
} |
Beta Was this translation helpful? Give feedback.
My guess is you have overridden your color palette in your
tailwind.config.js
file and your color palette no longer contains the transparent color.