Gradient with background color opacity and custom percentage stop #10705
-
|
I want to replicate a custom linear-gradient like this with Tailwind: I can replicate the custom opacity background color like this Am I doing something wrong or is this just something Tailwind can't handle? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
The slash alpha notation only works for established color value. Here, you've got multiple values going on here, color and a percentage so the slash alpha notation won't work. However, you could supply a different color value that has the alpha value, like |
Beta Was this translation helpful? Give feedback.
-
|
can you help me with this |
Beta Was this translation helpful? Give feedback.
The slash alpha notation only works for established color value. Here, you've got multiple values going on here, color and a percentage so the slash alpha notation won't work. However, you could supply a different color value that has the alpha value, like
from-[#00000080_25%],from-[rgb(0_0_0/.5)_25%],from-[rgba(0,0,0,.5)_25%], etc.