From da1618b5f13e4a3af9e8649b7b8ea81e768ae3ee Mon Sep 17 00:00:00 2001 From: Saahil Date: Sun, 1 Sep 2024 00:01:23 -0400 Subject: [PATCH] fix: on some devices text is dark (#1) --- src/index.css | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/src/index.css b/src/index.css index b5146449..df473462 100644 --- a/src/index.css +++ b/src/index.css @@ -2,6 +2,7 @@ @tailwind base; @tailwind components; @tailwind utilities; + :root { --rosewater: #f5e0dc; --flamingo: #f2cdcd; @@ -29,23 +30,27 @@ --base: #1e1e2e; --mantle: #181825; --crust: #11111b; - } - .mauve { - color: var(--mauve) - } - .text-highlight { - color: var(--mauve); - /* color: linear-gradient(var(--mauve), var(--mantle); */ - /* -webkit-background-clip: text; */ - /* -webkit-text-fill-color: transparent; */ - @apply ease-in duration-500; - - } - .text-highlight:hover { - background: linear-gradient(var(--mauve), var(--yellow)); - -webkit-background-clip: text; +} + +.mauve { + color: var(--mauve) +} + +.text-highlight { + color: var(--mauve); + /* color: linear-gradient(var(--mauve), var(--mantle); */ + /* -webkit-background-clip: text; */ + /* -webkit-text-fill-color: transparent; */ + @apply ease-in duration-500; + +} + +.text-highlight:hover { + background: linear-gradient(var(--mauve), var(--yellow)); + -webkit-background-clip: text; -webkit-text-fill-color: transparent; - } +} + body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', @@ -53,9 +58,10 @@ body { sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + color: var(--text); } code { font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; -} +} \ No newline at end of file