Replies: 2 comments 2 replies
-
you could also use the string token fn (or curly braces just like in semanticTokens), mostly useful for these cases (composite values) css({
border: `linear-gradient(350deg, {colors.neutral.7} 0%, {colors.primary.9} 21%, black)`
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh, yes @astahmer this was a real life saver! Thank you, not sure why but it wasn't obvious for me, nor intuitive. I had looked also in https://panda-css.com/docs/guides/dynamic-styling maybe this pattern should appear in the end section I guess seing this pattern also appearing on the gradient documentation can be good since this is one of the main use case for it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Subject
Gradients
Description
I have very hard times doing a simple gradient. Here is my css equivalent:
What I tried with panda so far:
The overall background gradient feature may gain a lot to be better documented.
I also saw that you can add gradients in the panda config, but I am less interrested in that since I am actually using this gradient in just one component.
Thanks a lot for all that great work
Beta Was this translation helpful? Give feedback.
All reactions