From 32d131db67abcab7de8095089b01e4d251d80ddb Mon Sep 17 00:00:00 2001 From: Araozu Date: Sun, 16 Jun 2024 18:13:03 -0500 Subject: [PATCH] Remove daisy, rewrite login UI --- frontend/index.html | 4 +-- frontend/src/index.css | 27 ++++++++++++++++--- frontend/src/routes/Login.tsx | 28 ++++++++++--------- frontend/tailwind.config.mjs | 51 +++++++---------------------------- main.go | 6 ++--- 5 files changed, 52 insertions(+), 64 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 75a9398..6a22d07 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -9,10 +9,10 @@ Solid App - + - +
diff --git a/frontend/src/index.css b/frontend/src/index.css index f75cff6..5952e51 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -2,8 +2,27 @@ @tailwind components; @tailwind utilities; -html { - font-family: "Inter", sans-serif; - font-optical-sizing: auto; - font-variation-settings: "slnt" 0; +/* Dark mode */ +:root { + --c-bg: #09090b; + --c-on-bg: white; +} + +/* Light mode */ +@media (prefers-color-scheme: dark) { + :root { + --c-bg: white; + --c-on-bg: #09090b; + --c-border-1: #a1a1aa; + --c-primary: #7c3aed; + --c-on-primary: white; + } +} + +html { + font-family: "Inter", sans-serif; + font-optical-sizing: auto; + font-variation-settings: "slnt" 0; + background-color: var(--c-bg); + color: var(--c-on-bg); } diff --git a/frontend/src/routes/Login.tsx b/frontend/src/routes/Login.tsx index 5c54e9c..451c4a1 100644 --- a/frontend/src/routes/Login.tsx +++ b/frontend/src/routes/Login.tsx @@ -31,40 +31,40 @@ export function Login() { return (
-
-
-

Login

-