♻️(react) update token.ts to handles themes

Some components were using wrong design tokens and this was noticed
only when changing themes, like using hard-coded "white" instead of
"greyscale-000".
This commit is contained in:
Nathan Vasse
2023-09-26 11:38:47 +02:00
committed by NathanVss
parent cce8eccf5b
commit e2c0d3259b
7 changed files with 10 additions and 9 deletions

View File

@@ -18,8 +18,8 @@ export const tokens = (defaults: DefaultTokens) => ({
"item-background-color--selected": defaults.theme.colors["primary-100"],
"item-color": defaults.theme.colors["greyscale-800"],
"item-font-size": defaults.theme.font.sizes.l,
"background-color": "white",
"menu-background-color": "white",
"background-color": defaults.theme.colors["greyscale-000"],
"menu-background-color": defaults.theme.colors["greyscale-000"],
"range-selection-background-color": defaults.theme.colors["primary-100"],
"range-selection-background-color--disabled":
defaults.theme.colors["greyscale-100"],