Plain HTML and CSS from the radiance brand package: the mark, the colours of the dashboard (light and dark follow the system), Geist and Geist Mono, and the project's self-description quoted from its README.
96 lines
4.3 KiB
CSS
96 lines
4.3 KiB
CSS
/* radiance landing page. Tokens from the radiance brand package (dashboard source, Apache 2.0):
|
|
"Cool neutrals with a slight blue cast, one blue accent, semantic hues kept apart from it."
|
|
Light and dark follow the system setting. No external requests. */
|
|
|
|
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
|
|
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
|
|
|
|
:root {
|
|
--logo: #6f9bff;
|
|
--bg: #f9fafb;
|
|
--fg: #111419;
|
|
--card: #ffffff;
|
|
--surface: #eef0f3;
|
|
--hover: #e9edf2;
|
|
--muted: #5e646c;
|
|
--border: #dfe1e5;
|
|
--primary: #2e62c9;
|
|
--primary-fg: #ffffff;
|
|
--focus: #5684da;
|
|
--radius: 0.625rem;
|
|
--sans: "Geist", ui-sans-serif, system-ui, sans-serif;
|
|
--mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
|
|
color-scheme: light dark;
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg: #0a0c10;
|
|
--fg: #eceff2;
|
|
--card: #121418;
|
|
--surface: #1e2125;
|
|
--hover: #202329;
|
|
--muted: #9399a2;
|
|
--border: rgb(255 255 255 / 0.09);
|
|
--primary: #6d9df5;
|
|
--primary-fg: #0a0c10;
|
|
--focus: #547ecd;
|
|
}
|
|
}
|
|
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
html { -webkit-text-size-adjust: 100%; }
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font: 400 1rem/1.6 var(--sans);
|
|
padding-inline: max(1rem, env(safe-area-inset-left));
|
|
}
|
|
a { color: var(--primary); text-underline-offset: 0.15em; }
|
|
a:focus-visible, .button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: calc(var(--radius) * 0.6); }
|
|
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface); padding: 0.05em 0.35em; border-radius: calc(var(--radius) * 0.6); }
|
|
|
|
.top, main, .bottom { max-width: 60rem; margin-inline: auto; }
|
|
|
|
.top {
|
|
display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
|
|
padding-block: 1.25rem;
|
|
}
|
|
.wordmark { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--fg); text-decoration: none; }
|
|
.wordmark svg { width: 2.25rem; height: 2.25rem; fill: var(--logo); }
|
|
.wordmark span { font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; }
|
|
.top nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
|
|
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
|
|
.top nav a:hover { color: var(--fg); }
|
|
|
|
.hero { padding-block: clamp(3rem, 10vw, 6rem) 3rem; }
|
|
.hero h1 {
|
|
margin: 0 0 1rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1;
|
|
font-size: clamp(2.25rem, 6vw, 3.75rem); max-width: 16ch;
|
|
}
|
|
.lead { margin: 0; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 46rem; }
|
|
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
|
|
.button {
|
|
display: inline-block; padding: 0.65rem 1.1rem; border-radius: var(--radius);
|
|
border: 1px solid var(--border); background: var(--card); color: var(--fg);
|
|
font-weight: 550; text-decoration: none;
|
|
}
|
|
.button:hover { background: var(--hover); }
|
|
.button.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
|
|
.button.primary:hover { filter: brightness(1.08); background: var(--primary); }
|
|
|
|
h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 1rem; }
|
|
.facts, .about { padding-block: 2rem; border-top: 1px solid var(--border); }
|
|
.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.75rem; margin: 0; }
|
|
.fact { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
|
|
.fact dt { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.25rem; }
|
|
.fact dd { margin: 0; }
|
|
|
|
blockquote { margin: 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 3px solid var(--logo); }
|
|
blockquote p { margin: 0 0 1rem; max-width: 46rem; }
|
|
cite { font-style: normal; color: var(--muted); font-size: 0.9rem; }
|
|
|
|
.bottom { padding-block: 2rem 3rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
|
|
.bottom p { margin: 0; }
|
|
|
|
@media (prefers-reduced-motion: no-preference) { .button { transition: background-color 0.15s, filter 0.15s; } }
|