From 03bfe62ea789c5666b5b0d00f14c3e034a07b151 Mon Sep 17 00:00:00 2001 From: Cameron Custer Date: Sat, 19 Apr 2025 14:02:35 -0700 Subject: [PATCH] blue theme --- src/app.css | 58 +++++++++++++------------- src/lib/components/Header.svelte | 49 ++++++++++++---------- src/lib/components/ProblemTable.svelte | 26 ++++++------ 3 files changed, 69 insertions(+), 64 deletions(-) diff --git a/src/app.css b/src/app.css index 14a18ea..f330f8a 100644 --- a/src/app.css +++ b/src/app.css @@ -10,39 +10,39 @@ 'Open Sans', 'Helvetica Neue', sans-serif; --font-mono: 'Fira Mono', monospace; - /* Colors */ + /* Colors - Cosmic Gradient Theme */ --color-white: oklch(1 0 0); --color-black: oklch(0 0 0); - --color-primary: oklch(0.12 0 0); - --color-secondary: oklch(0.19 0 0); - --color-tertiary: oklch(0.28 0 0); - --color-accent: oklch(0.65 0.26 296.88); - --color-heading: oklch(1 0 0 / 0.87); - --color-text: oklch(1 0 0 / 0.6); - --color-text-muted: oklch(1 0 0 / 0.4); - --color-background: oklch(0.19 0 0 / 0.7); - --color-border: oklch(0.44 0 0); - --color-link: oklch(0.65 0.26 296.88); - --color-link-subtle: oklch(0.8 0.1 296.88); - --color-link-nav: oklch(1 0 0 / 0.8); - --color-username: oklch(0.65 0.26 296.88); /* Purple color for usernames */ + --color-primary: oklch(0.15 0.05 250); /* Deep cosmic blue */ + --color-secondary: oklch(0.22 0.06 260); /* Slightly lighter cosmic blue */ + --color-tertiary: oklch(0.3 0.07 270); /* Medium cosmic blue with hint of purple */ + --color-accent: oklch(0.7 0.18 140); /* Vibrant teal-green */ + --color-heading: oklch(1 0 0 / 0.9); /* Bright white headings */ + --color-text: oklch(0.9 0.03 260 / 0.8); /* Light blue-tinted text */ + --color-text-muted: oklch(0.8 0.02 260 / 0.5); /* Muted blue-tinted text */ + --color-background: oklch(0.19 0.05 250 / 0.7); /* Cosmic blue background */ + --color-border: oklch(0.35 0.08 270); /* Subtle purple-blue border */ + --color-link: oklch(0.7 0.18 140); /* Vibrant teal-green links */ + --color-link-subtle: oklch(0.65 0.12 140); /* Subtle teal-green links */ + --color-link-nav: oklch(1 0 0 / 0.8); /* Bright navigation links */ + --color-username: oklch(0.7 0.15 40); /* Warm golden username color */ --color-solved-row: color-mix( in oklab, - rgb(34 197 94) 15%, + oklch(0.7 0.18 140) 15%, transparent - ); /* Light green for solved rows */ - - /* Codeforces rating colors */ - --color-legendary-grandmaster: oklch(0.65 0.27 29.23); - --color-international-grandmaster: oklch(0.65 0.27 29.23); - --color-grandmaster: oklch(0.65 0.27 29.23); - --color-international-master: oklch(0.71 0.19 54.65); - --color-master: oklch(0.71 0.19 54.65); - --color-candidate-master: oklch(0.55 0.32 328.88); - --color-expert: oklch(0.45 0.26 264.05); - --color-specialist: oklch(0.6 0.17 196.09); - --color-pupil: oklch(0.51 0.18 142.5); - --color-newbie: oklch(0.54 0 0); + ); /* Teal-tinted solved rows */ + + /* Codeforces rating colors - Enhanced for cosmic theme */ + --color-legendary-grandmaster: oklch(0.65 0.27 29.23); /* Keep red */ + --color-international-grandmaster: oklch(0.65 0.27 29.23); /* Keep red */ + --color-grandmaster: oklch(0.65 0.27 29.23); /* Keep red */ + --color-international-master: oklch(0.71 0.19 54.65); /* Keep orange */ + --color-master: oklch(0.71 0.19 54.65); /* Keep orange */ + --color-candidate-master: oklch(0.55 0.32 328.88); /* Keep purple */ + --color-expert: oklch(0.45 0.26 264.05); /* Keep blue */ + --color-specialist: oklch(0.6 0.17 196.09); /* Keep cyan */ + --color-pupil: oklch(0.51 0.18 142.5); /* Keep green */ + --color-newbie: oklch(0.54 0.05 270); /* Subtle purple-blue for newbie */ /* Spacing */ --spacing: 0.25rem; @@ -226,7 +226,7 @@ img { } .badge-easy { - background-color: oklch(0.73 0.2 142.5); + background-color: oklch(0.65 0.18 142.5); color: white; } diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index bf7cbd1..3cc0886 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -168,57 +168,57 @@ $: if ($page) {