From c99ed851e54a2c0990a137b3bc1d540dc8612ff6 Mon Sep 17 00:00:00 2001 From: Michele Date: Thu, 31 Jul 2025 10:44:56 +0200 Subject: [PATCH] change colors --- assets/css/_colors.scss | 49 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 assets/css/_colors.scss diff --git a/assets/css/_colors.scss b/assets/css/_colors.scss new file mode 100644 index 0000000..419e499 --- /dev/null +++ b/assets/css/_colors.scss @@ -0,0 +1,49 @@ +:root { + color-scheme: light dark; + + --surface-1-light: #fff; + --surface-2-light: #e5e5e5; + --text-1-light: #0a0a0a; + --text-2-light: #737373; + --border-light: #bbb; + --surface-1-dark: #1F1F21; + --surface-2-dark: #242628; + --text-1-dark: #ebedef; + --text-2-dark: #535557; + --border-dark: #606060; + --surface-1: var(--surface-1-light); + --surface-2: var(--surface-2-light); + --text-1: var(--text-1-light); + --text-2: var(--text-2-light); + --border: var(--border-light); +} + +@media (prefers-color-scheme: dark) { + :root { + --surface-1: var(--surface-1-dark); + --surface-2: var(--surface-2-dark); + --text-1: var(--text-1-dark); + --text-2: var(--text-2-dark); + --border: var(--border-dark); + } +} + +html.light { + color-scheme: light; + + --surface-1: var(--surface-1-light); + --surface-2: var(--surface-2-light); + --text-1: var(--text-1-light); + --text-2: var(--text-2-light); + --border: var(--border-light); +} + +html.dark { + color-scheme: dark; + + --surface-1: var(--surface-1-dark); + --surface-2: var(--surface-2-dark); + --text-1: var(--text-1-dark); + --text-2: var(--text-2-dark); + --border: var(--border-dark); +} \ No newline at end of file