-
With Tailwind v4, how can I create a radial gradient using closest-side? This doesn’t seem to work (no gradient renders): <div className="size-64 bg-[radial-gradient(closest-side,_var(--tw-gradient-stops))] from-blue-400/20 to-transparent" /> Tried escaping the comma too: <div className="size-64 bg-[radial-gradient(closest-side\,_var(--tw-gradient-stops))] from-blue-400/20 to-transparent" /> Neither worked. Is this a limitation or am I missing something? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Jul 6, 2025
Replies: 2 comments 1 reply
-
You'd want |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tavoyne
-
And if you want to expand the utility palette so that the hint brings up the 4 extra options: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'd want
bg-radial-[closest-side]
: https://play.tailwindcss.com/Dqt4tnhxO6