refactor: update color palette, add serif/mono fonts, soften shadows
This commit is contained in:
@@ -1,24 +1,25 @@
|
||||
@import 'tailwindcss';
|
||||
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,600&display=swap');
|
||||
@import '@toolwind/anchors';
|
||||
|
||||
@source "../../templates/**/*.gohtml";
|
||||
@source "../**/*.ts";
|
||||
|
||||
@theme {
|
||||
--color-background: light-dark(#fbfcff, #0b0c10);
|
||||
--color-background-sidebar: light-dark(#f8fafc, #0f1115);
|
||||
--color-background-header: light-dark(#fbfcff, #0f1115);
|
||||
--color-background-surface: light-dark(#f3f4f6, #17181c);
|
||||
--color-background-button: light-dark(#ffffff, #131417);
|
||||
--color-background-button-hover: light-dark(#f3f4f6, #1c1d22);
|
||||
--color-background: light-dark(#F7F6F3, #0b0c10);
|
||||
--color-background-sidebar: light-dark(#FBFBFA, #0f1115);
|
||||
--color-background-header: light-dark(#FBFBFA, #0f1115);
|
||||
--color-background-surface: light-dark(#FFFFFF, #17181c);
|
||||
--color-background-button: light-dark(#FFFFFF, #131417);
|
||||
--color-background-button-hover: light-dark(#F7F6F3, #1c1d22);
|
||||
|
||||
--color-foreground-muted: light-dark(#6b7280, #9ca3af);
|
||||
--color-foreground: light-dark(#111827, #f3f4f6);
|
||||
--color-foreground-muted: light-dark(#787774, #a1a1aa);
|
||||
--color-foreground: light-dark(#111111, #f3f4f6);
|
||||
|
||||
--color-accent: #2667ff;
|
||||
--color-border: light-dark(rgba(17, 24, 39, 0.08), rgba(243, 244, 246, 0.08));
|
||||
--color-surface-hover: light-dark(rgba(17, 24, 39, 0.04), rgba(243, 244, 246, 0.04));
|
||||
--color-accent: #1F6C9F;
|
||||
--color-border: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.10));
|
||||
--color-surface-hover: light-dark(rgba(0, 0, 0, 0.03), rgba(255, 255, 255, 0.05));
|
||||
}
|
||||
|
||||
:root {
|
||||
@@ -45,9 +46,9 @@
|
||||
--surface-search-view-all: light-dark(#f5f5f4, #181818);
|
||||
--text-on-accent: light-dark(#fafaf9, #0c0a09);
|
||||
--overlay-subtle: light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.04));
|
||||
--shadow-subtle: light-dark(0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.2));
|
||||
--shadow-card: light-dark(0 4px 12px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.3));
|
||||
--shadow-card-hover: light-dark(0 8px 24px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.4));
|
||||
--shadow-subtle: light-dark(0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.18));
|
||||
--shadow-card: light-dark(0 2px 8px rgba(0, 0, 0, 0.04), 0 2px 10px rgba(0, 0, 0, 0.28));
|
||||
--shadow-card-hover: light-dark(0 6px 18px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.34));
|
||||
--space-1: 0.25rem;
|
||||
--space-2: 0.5rem;
|
||||
--space-3: 0.75rem;
|
||||
@@ -57,6 +58,8 @@
|
||||
--space-8: 2rem;
|
||||
--poster-max-height: 360px;
|
||||
--font: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
|
||||
--font-serif: 'Newsreader', ui-serif, Georgia, serif;
|
||||
--font-mono: ui-monospace, 'SF Mono', 'Geist Mono', 'JetBrains Mono', monospace;
|
||||
--radius: 0px;
|
||||
}
|
||||
|
||||
@@ -74,6 +77,30 @@ body {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
@layer utilities {
|
||||
.shadow-soft {
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
|
||||
.shadow-soft-hover:hover {
|
||||
box-shadow: var(--shadow-card-hover);
|
||||
}
|
||||
|
||||
.border-hairline {
|
||||
border: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.heading-serif {
|
||||
font-family: var(--font-serif);
|
||||
letter-spacing: -0.03em;
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
.mono {
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
}
|
||||
|
||||
/* Default to square corners; opt back in selectively (e.g. inputs). */
|
||||
:where(input, textarea, select) {
|
||||
border-radius: 6px !important;
|
||||
|
||||
Reference in New Issue
Block a user