feat(client, tools): make ui component respect theme (#50202)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Muhammed Mustafa
2023-04-28 11:44:12 +02:00
committed by GitHub
parent 3af73290bc
commit c93d61f1e5
2 changed files with 4 additions and 6 deletions

View File

@@ -10,11 +10,11 @@ export const parameters = {
backgrounds: {
values: [
{
name: 'light',
name: 'light-palette',
value: '#ffffff'
},
{
name: 'dark',
name: 'dark-palette',
value: '#0a0a23'
}
]

View File

@@ -89,8 +89,7 @@
--red90: var(--red90);
}
html,
div.light {
.light-palette {
--foreground-primary: var(--gray90);
--foreground-secondary: var(--gray85);
--foreground-tertiary: var(--gray80);
@@ -109,8 +108,7 @@ div.light {
--focus-outline-color: var(--blue50);
}
html.dark,
div.dark {
.dark-palette {
--foreground-primary: var(--gray00);
--foreground-secondary: var(--gray05);
--foreground-tertiary: var(--gray10);