-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
romer8
committed
Nov 21, 2024
1 parent
843f4a9
commit 5b802e0
Showing
3 changed files
with
84 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
html, body { | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
:root { | ||
/* Enabling light mode and dark mode*/ | ||
color-scheme: light dark; | ||
|
||
/* Assigning light/dark color tokens into variable*/ | ||
--text-heading: light-dark(#333333, #f0f0f0); | ||
--text-body: light-dark(#555555, #e0e0e0); | ||
--background-primary: light-dark(#ff7d7d, #6f0000); | ||
--background-secondary: light-dark(#fffef3, #1a1913); | ||
} | ||
body { | ||
/* Consuming the color tokens */ | ||
background-color: var(--bg-primary); | ||
color: var(--text-body); | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters