Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/styles/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
--accent-deep: #2f6b4d;
--amber: #c9a14e;
--shadow: rgba(0, 0, 0, 0.5);
--vignette: color-mix(in srgb, var(--bg-primary) 55%, #000);
--vignette: color-mix(in srgb, var(--bg-primary) 72%, #000);
--grain-blend: soft-light;
--grain-opacity: 0.05;
--font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
Expand Down
15 changes: 4 additions & 11 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@

:global(body) {
font-family: var(--font-mono);
background: var(--bg-primary);
/* edge vignette lives in the background layer so it never washes out content */
background-color: var(--bg-primary);
background-image: radial-gradient(125% 85% at 50% -10%, transparent 62%, var(--vignette) 100%);
background-attachment: fixed;
color: var(--text-primary);
line-height: 1.5;
min-height: 100vh;
Expand All @@ -41,16 +44,6 @@
'ss01' 1;
}

/* edge vignette for depth (dark only via --vignette) */
:global(body)::before {
content: '';
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
background: radial-gradient(120% 80% at 50% -10%, transparent 55%, var(--vignette) 100%);
}

/* film grain — the texture that kills the flat digital look */
:global(body)::after {
content: '';
Expand Down
Loading