<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="color-scheme" content="light dark">
<title>Aurora</title>
<!--css-->
<main class="stage" aria-label="Soft bands of violet light turning slowly across a dark sky, drawn by one blurred conic gradient on a registered angle"><div class="aurora"></div></main>@import "lib/stage";
@import "lib/aurora";What ships: tokens and lib snippets inlined, lowered for the browser targets (minified in the real page).
@property --c-ink {
syntax: "<color>";
inherits: true;
initial-value: #14121f;
}
@property --c-paper {
syntax: "<color>";
inherits: true;
initial-value: #f4f1ff;
}
@property --c-accent {
syntax: "<color>";
inherits: true;
initial-value: #6d4aff;
}
@property --c-car-wall {
syntax: "<color>";
inherits: true;
initial-value: #e9e6dc;
}
@property --c-seat {
syntax: "<color>";
inherits: true;
initial-value: #c9c4b4;
}
@property --c-line {
syntax: "<color>";
inherits: true;
initial-value: #ff9500;
}
@property --c-tunnel {
syntax: "<color>";
inherits: true;
initial-value: #05050a;
}
@property --c-lamp {
syntax: "<color>";
inherits: true;
initial-value: #ffe9b0;
}
@property --c-platform {
syntax: "<color>";
inherits: true;
initial-value: #dfe9ff;
}
@property --a-spin {
syntax: "<angle>";
inherits: false;
initial-value: 0deg;
}
@layer tokens {
:root {
color-scheme: light dark;
--c-ink: light-dark(#14121f, #f4f1ff);
--c-paper: light-dark(#f4f1ff, #0b0a14);
--c-accent: light-dark(#6d4aff, #9d85ff);
--c-car-wall: light-dark(#e9e6dc, #1a1826);
--c-seat: light-dark(#c9c4b4, #2a2638);
--c-line: light-dark(#ff9500, #ff9f1a);
--c-tunnel: #05050a;
--c-lamp: #ffe9b0;
--c-platform: light-dark(#dfe9ff, #9fb4e8);
--t-fast: .15s;
--t-base: .4s;
--t-slow: 1.2s;
--t-drift: 24s;
--t-rush: 1.6s;
--t-swing: 3.6s;
--ease-out: cubic-bezier(.22, 1, .36, 1);
--ease-spring: linear(0, .22 2.1%, .73 6.5%, 1.04 10.7%, 1.09 13%, 1.02 20%, .99 27%, 1);
}
}
@layer reset {
*, :before, :after {
box-sizing: border-box;
margin: 0;
}
html {
block-size: 100%;
}
}
@layer base {
body {
background: var(--c-paper);
min-block-size: 100dvh;
color: var(--c-ink);
font: 1rem / 1.5 system-ui, sans-serif;
overflow: clip;
}
.stage {
contain: strict;
position: fixed;
inset: 0;
overflow: clip;
}
}
@layer scene {
.aurora {
background: conic-gradient(from var(--a-spin) at 50% 50%,
var(--c-accent), transparent 25%, var(--c-accent) 50%, transparent 75%, var(--c-accent));
filter: blur(80px);
opacity: .6;
animation: aurora-spin var(--t-drift) linear infinite;
position: absolute;
inset: -25%;
}
@keyframes aurora-spin {
to {
--a-spin: 360deg;
}
}
@media (prefers-reduced-motion: reduce) {
.aurora {
animation: none;
}
}
}
@layer utilities;