How to refer to all the styleVariants inside of a GlobalStyle, etc? #741
Unanswered
dawidseipold
asked this question in
Q&A
Replies: 1 comment
-
maybe this could work for you: // create custom className
const variantSelector = 'VE'
// or use VE generated className
const variantSelector = style({})
const styleVariants = {
small: [variantSelector, style({})],
medium: [variantSelector, style({})],
large: [variantSelector, ...],
} that would allow you to reference all // and then
globalStyle(`${variantSelector} > a`, { color: 'purple', ... }) |
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.
-
Hi everyone! I wanted to ask about referencing all the
styleVariants
classes inside of the functions likeGlobalStyle
. What I want to achieve is to have this code:globalStyle(`${variants} > a`, { color: 'purple', });
refactored in such a way, that would allow me to pull all the classes at once, and not separately in a manual way.
Beta Was this translation helpful? Give feedback.
All reactions