From a0e9fd71e601aed2f677b59422180bc1640f3613 Mon Sep 17 00:00:00 2001 From: minhtrannhat Date: Sun, 5 Jan 2025 12:00:00 -0500 Subject: [PATCH] feat(web): add global styles --- web/app/globals.css | 67 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 web/app/globals.css diff --git a/web/app/globals.css b/web/app/globals.css new file mode 100644 index 0000000..a39b3d0 --- /dev/null +++ b/web/app/globals.css @@ -0,0 +1,67 @@ +:root { + --foreground: #171717; + --background: #ffffff; + --primary: #0070f3; + --error: #e00; + --success: #0a0; + --warning: #f80; +} + +@media (prefers-color-scheme: dark) { + :root { + --foreground: #ededed; + --background: #0a0a0a; + } +} + +* { + box-sizing: border-box; + padding: 0; + margin: 0; +} + +html, +body { + max-width: 100vw; + overflow-x: hidden; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; + background: var(--background); + color: var(--foreground); +} + +a { + color: var(--primary); + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +button { + cursor: pointer; + padding: 0.5rem 1rem; + border: none; + border-radius: 4px; + background: var(--primary); + color: white; + font-size: 1rem; +} + +button:disabled { + opacity: 0.6; + cursor: not-allowed; +} + +input { + padding: 0.5rem; + border: 1px solid #ccc; + border-radius: 4px; + font-size: 1rem; +} + +.container { + max-width: 1200px; + margin: 0 auto; + padding: 1rem; +}