diff options
| author | Alberto-Duarte <alberto@albertoduarte.com> | 2023-04-21 13:51:46 +0100 |
|---|---|---|
| committer | Alberto-Duarte <alberto@albertoduarte.com> | 2023-04-21 13:51:46 +0100 |
| commit | 1b3a300173c4531bebf3b88966a1fec64d276440 (patch) | |
| tree | 6c8f9f0a745eadd3615a50bbf47e14d1233cb80c /src/styles/globals.css | |
First commit
Diffstat (limited to 'src/styles/globals.css')
| -rw-r--r-- | src/styles/globals.css | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/styles/globals.css b/src/styles/globals.css new file mode 100644 index 0000000..fd81e88 --- /dev/null +++ b/src/styles/globals.css @@ -0,0 +1,27 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +:root { + --foreground-rgb: 0, 0, 0; + --background-start-rgb: 214, 219, 220; + --background-end-rgb: 255, 255, 255; +} + +@media (prefers-color-scheme: dark) { + :root { + --foreground-rgb: 255, 255, 255; + --background-start-rgb: 0, 0, 0; + --background-end-rgb: 0, 0, 0; + } +} + +body { + color: rgb(var(--foreground-rgb)); + background: linear-gradient( + to bottom, + transparent, + rgb(var(--background-end-rgb)) + ) + rgb(var(--background-start-rgb)); +} |