style(theme): soften card shadows and lighten border tokens

This commit is contained in:
zetaloop
2026-02-25 16:03:10 +08:00
parent f9d48af658
commit feef03670a
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ export default function HomePage() {
type="text" type="text"
name="q" name="q"
placeholder="搜索陪玩、店铺、游戏..." placeholder="搜索陪玩、店铺、游戏..."
className="w-full border-border bg-card shadow-[var(--shadow-card)] transition-shadow focus:shadow-[var(--shadow-card-hover)]" className="w-full border-border bg-card shadow-[0_4px_16px_-2px_rgba(0,0,0,0.08),0_8px_24px_-4px_rgba(0,0,0,0.1)] transition-shadow focus:shadow-[0_8px_30px_-4px_rgba(0,0,0,0.12),0_12px_40px_-8px_rgba(0,0,0,0.14)]"
/> />
</form> </form>
</div> </div>
+8 -8
View File
@@ -66,7 +66,7 @@
--accent-foreground: oklch(0.35 0.03 260); --accent-foreground: oklch(0.35 0.03 260);
--destructive: oklch(0.6 0.2 25); --destructive: oklch(0.6 0.2 25);
--destructive-foreground: oklch(0.99 0 0); --destructive-foreground: oklch(0.99 0 0);
--border: oklch(0.92 0 0); --border: oklch(0.94 0 0);
--input: oklch(0.92 0 0); --input: oklch(0.92 0 0);
--ring: oklch(0.701 0.189 46.65); --ring: oklch(0.701 0.189 46.65);
--chart-1: oklch(0.701 0.189 46.65); --chart-1: oklch(0.701 0.189 46.65);
@@ -80,10 +80,10 @@
--sidebar-primary-foreground: oklch(0.99 0 0); --sidebar-primary-foreground: oklch(0.99 0 0);
--sidebar-accent: oklch(0.96 0.02 46.65); --sidebar-accent: oklch(0.96 0.02 46.65);
--sidebar-accent-foreground: oklch(0.36 0.1 46.65); --sidebar-accent-foreground: oklch(0.36 0.1 46.65);
--sidebar-border: oklch(0.92 0 0); --sidebar-border: oklch(0.94 0 0);
--sidebar-ring: oklch(0.701 0.189 46.65); --sidebar-ring: oklch(0.701 0.189 46.65);
--shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 4px 12px -2px rgba(0, 0, 0, 0.06); --shadow-card: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 2px 8px -1px rgba(0, 0, 0, 0.04);
--shadow-card-hover: 0 4px 16px -2px rgba(0, 0, 0, 0.08), 0 8px 24px -4px rgba(0, 0, 0, 0.1); --shadow-card-hover: 0 2px 8px -2px rgba(0, 0, 0, 0.06), 0 6px 20px -4px rgba(0, 0, 0, 0.08);
} }
.dark { .dark {
@@ -103,7 +103,7 @@
--accent-foreground: oklch(0.8 0.01 260); --accent-foreground: oklch(0.8 0.01 260);
--destructive: oklch(0.65 0.2 25); --destructive: oklch(0.65 0.2 25);
--destructive-foreground: oklch(0.98 0 0); --destructive-foreground: oklch(0.98 0 0);
--border: oklch(0.25 0 0); --border: oklch(0.23 0 0);
--input: oklch(0.25 0 0); --input: oklch(0.25 0 0);
--ring: oklch(0.701 0.189 46.65); --ring: oklch(0.701 0.189 46.65);
--chart-1: oklch(0.701 0.189 46.65); --chart-1: oklch(0.701 0.189 46.65);
@@ -117,10 +117,10 @@
--sidebar-primary-foreground: oklch(0.14 0 0); --sidebar-primary-foreground: oklch(0.14 0 0);
--sidebar-accent: oklch(0.23 0.06 46.65); --sidebar-accent: oklch(0.23 0.06 46.65);
--sidebar-accent-foreground: oklch(0.98 0.01 46.65); --sidebar-accent-foreground: oklch(0.98 0.01 46.65);
--sidebar-border: oklch(0.25 0 0); --sidebar-border: oklch(0.23 0 0);
--sidebar-ring: oklch(0.701 0.189 46.65); --sidebar-ring: oklch(0.701 0.189 46.65);
--shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 4px 12px -2px rgba(0, 0, 0, 0.06); --shadow-card: 0 1px 2px 0 rgba(255, 255, 255, 0.02), 0 2px 8px -1px rgba(0, 0, 0, 0.15);
--shadow-card-hover: 0 4px 16px -2px rgba(0, 0, 0, 0.08), 0 8px 24px -4px rgba(0, 0, 0, 0.1); --shadow-card-hover: 0 2px 8px -2px rgba(0, 0, 0, 0.12), 0 6px 20px -4px rgba(0, 0, 0, 0.18);
} }
@layer base { @layer base {