Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
feat: add dark/light classname (#729)
Browse files Browse the repository at this point in the history
* feat: add dark classname

* add light class
  • Loading branch information
garrettbear authored Sep 5, 2024
1 parent 52fab7e commit 35c3167
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/css/dark-theme-colors.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* Dark Theme Colors
*/
[data-theme='dark'] {
[data-theme='dark'],
.dark {
/* For default neutral backgrounds */
--color-background-default: var(--brand-colors-grey-grey800);
/* For secondary neutral backgrounds. */
Expand Down
3 changes: 2 additions & 1 deletion src/css/light-theme-colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
* Light Theme Colors
*/
:root,
[data-theme='light'] {
[data-theme='light'],
.light {
/* For default neutral backgrounds */
--color-background-default: var(--brand-colors-grey-grey000);
/* For secondary neutral backgrounds. */
Expand Down

0 comments on commit 35c3167

Please sign in to comment.