You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get a grasp on using Themes and how it affects other components.
I have all BrandVariants set. It works in the sense, that I can use a component like Subtitle1 and it changes color if I switch between light and dark theme.
What I cannot figure out is how this is setup in the component. Are the BrandVariants linked to the tokens grom react-components?
What is best practice if I want to use the BrandVariants in my custom components? Should I use the tokens or my brandVariants?
If BrandVariants are mapped to tokens, is there then any 1:1 list on how? When looking at the Theme Designer only 2 mappings are displayed:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to get a grasp on using Themes and how it affects other components.
I have all BrandVariants set. It works in the sense, that I can use a component like Subtitle1 and it changes color if I switch between light and dark theme.
What I cannot figure out is how this is setup in the component. Are the BrandVariants linked to the tokens grom react-components?
What is best practice if I want to use the BrandVariants in my custom components? Should I use the tokens or my brandVariants?
If BrandVariants are mapped to tokens, is there then any 1:1 list on how? When looking at the Theme Designer only 2 mappings are displayed:
Beta Was this translation helpful? Give feedback.
All reactions