mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-24 11:03:17 -04:00
feat(client, tools): make ui component respect theme (#50202)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -10,11 +10,11 @@ export const parameters = {
|
||||
backgrounds: {
|
||||
values: [
|
||||
{
|
||||
name: 'light',
|
||||
name: 'light-palette',
|
||||
value: '#ffffff'
|
||||
},
|
||||
{
|
||||
name: 'dark',
|
||||
name: 'dark-palette',
|
||||
value: '#0a0a23'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user