nandorojo / dripsy

🍷 Responsive, unstyled UI primitives for React Native + Web.
https://dripsy.xyz
MIT License
2.01k stars 80 forks source link

Nested color path not working linearGradient theme #286

Closed Wilson-Lim closed 1 year ago

Wilson-Lim commented 1 year ago

Screenshot 2023-05-08 at 4 52 36 PM

  1. i wonder did i set wrongly , i have been using dripsy since v2, the gradient type is always not detected.
  2. nested color path is not working inside theme.linearGradients.
nandorojo commented 1 year ago

i think the first issue is a duplicate of #285

nandorojo commented 1 year ago

Hey @Wilson-Lim, can you try 4.3.1 and see if that fixes it?

Wilson-Lim commented 1 year ago

i tested, if using colors props, its working, but gradient props which rely on the dripsy's linearGradients theme value is not working image

with above setting,

  1. surface not working
  2. ball is working

and image

the gradient props's type does not seems to work correctly yet.

this is using v4.3.3 Screenshot 2023-05-22 at 6 10 16 PM

Wilson-Lim commented 1 year ago

Sorry, i have a typo on my dripsy theme

it should be surface: ['$primary.300', '$primary.500'],

not surface: ['$primary.300', '#$primary.500'],

So its working now.

Thanks alot Fernando