chore: theme toggle web component

This commit is contained in:
Cory Dransfeldt 2024-02-28 08:51:13 -08:00
parent 5e8154dccd
commit 434346dc36
No known key found for this signature in database
6 changed files with 76 additions and 122 deletions

View file

@ -31,7 +31,7 @@
--gray-lighter: var(--gray-50);
--gray-dark: var(--gray-700);
/* theme */
/* base theme */
--color-lightest: var(--white);
--color-darkest: var(--black);
--text-color: var(--color-darkest);
@ -116,6 +116,7 @@
}
}
/* light theme */
:root body.theme__light {
--text-color: var(--color-darkest);
--background-color: var(--color-lightest);
@ -130,6 +131,7 @@
--brand-github: #333;
}
/* dark theme */
:root body.theme__dark {
--text-color: var(--color-lightest);
--background-color: var(--color-darkest);