Sprinkles multilevel variables from an object #41
Answered
by
dawidseipold
dawidseipold
asked this question in
Q&A
-
Hi! Is there any way of applying my variables inside Rainbow-Sprinkles as a multi-level object instead of the usual object without nesting. Like this: export const colors = {
brand: {
primary: 'red',
secondary: 'blue',
tertiary: 'green',
},
// Themes
light: {
text: {
default: '#000000',
},
background: {
primary: '#f5f5f5',
secondary: '#ffffff',
},
},
dark: {
text: {
default: '#ffffff',
},
background: {
primary: '#13171a',
secondary: '#191b1f',
},
},
}; Is it even possible? |
Beta Was this translation helpful? Give feedback.
Answered by
dawidseipold
Jul 4, 2022
Replies: 1 comment
-
I found out that I can just say |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
roginfarrer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found out that I can just say
backgroundColor: true
and then use the variables from another file, so it probably solves the issue (it's just the autocomplete that's missing, but I can live with that) :)