Replies: 1 comment
-
Something like this should work: const webkitSliderThumbProperties = defineProperties({
conditions: { light: {}, dark: {} },
defaultCondition: "light",
properties: {
// Call this whatever you want
webkitSliderThumbBackground: {
black: {
selectors: {
["&::-webkit-slider-thumb"]: {
background: "black",
},
},
},
// Add more variants here
},
},
}); It would be a bit verbose if you wants lots of colours, but you could easily create a function that takes all your vars and creates all the variants for you. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to style pseudo elements with sprinkles?
I'd like to do something like this:
Beta Was this translation helpful? Give feedback.
All reactions