-
|
Hey there, I'm trying to figure out if you can stack linear gradients. I am trying to create a gradient border for an element. I've tried to do it in the tailwind config file, like in the Tailwind Docs: Customizing Your Theme: But that did not work when I applied my |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
It does not work because the value is invalid for the module.exports = {
// …
theme: {
extend: {
backgroundImage: {
"gradient-border": "linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)),
linear-gradient(to right, rgb(147, 197, 253), rgb(124, 58, 237))",
},
// Edit: below does not work!
backgroundClip: {
"gradient-border": "padding-box, border-box",
},
},
},
// …
}
|
Beta Was this translation helpful? Give feedback.
-
|
Haha, @wongjn, I just solved it when I saw your message. I just added my custom utility classes under plugins instead https://play.tailwindcss.com/EbEDFJnenn?layout=horizontal&file=config: Thanks dude! For pointing me in the right direction. |
Beta Was this translation helpful? Give feedback.
-
|
您好,您的邮件已收到,我会尽快查看!谢谢!
|
Beta Was this translation helpful? Give feedback.
Haha, @wongjn, I just solved it when I saw your message. I just added my custom utility classes under plugins instead https://play.tailwindcss.com/EbEDFJnenn?layout=horizontal&file=config: