mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
342 lines
12 KiB
HTML
342 lines
12 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Expo - reference components</title>
|
|
<meta
|
|
name="description"
|
|
content="Reference fixture for design-systems/expo: developer-console minimalism with black-and-white precision and native app launch energy."
|
|
/>
|
|
<style>
|
|
:root {
|
|
--bg: #ffffff;
|
|
--surface: #f6f7f9;
|
|
--surface-warm: #eef2ff;
|
|
--fg: #0b0d12;
|
|
--fg-2: #353945;
|
|
--muted: #6b7280;
|
|
--meta: #4630eb;
|
|
--border: #dfe3ea;
|
|
--border-soft: #edf0f5;
|
|
--accent: #000020;
|
|
--accent-on: #ffffff;
|
|
--accent-hover: color-mix(in oklab, var(--accent), black 8%);
|
|
--accent-active: color-mix(in oklab, var(--accent), black 14%);
|
|
--success: #00a36c;
|
|
--warn: #f59e0b;
|
|
--danger: #e5484d;
|
|
--font-display: "Inter", system-ui, sans-serif;
|
|
--font-body: "Inter", system-ui, sans-serif;
|
|
--font-mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, monospace;
|
|
--text-xs: 12px;
|
|
--text-sm: 14px;
|
|
--text-base: 16px;
|
|
--text-lg: 18px;
|
|
--text-xl: 22px;
|
|
--text-2xl: 32px;
|
|
--text-3xl: 48px;
|
|
--text-4xl: 68px;
|
|
--leading-body: 1.52;
|
|
--leading-tight: 1.06;
|
|
--tracking-display: -0.025em;
|
|
--space-1: 4px;
|
|
--space-2: 8px;
|
|
--space-3: 12px;
|
|
--space-4: 16px;
|
|
--space-5: 20px;
|
|
--space-6: 24px;
|
|
--space-8: 32px;
|
|
--space-12: 48px;
|
|
--section-y-desktop: 96px;
|
|
--section-y-tablet: 68px;
|
|
--section-y-phone: 48px;
|
|
--radius-sm: 8px;
|
|
--radius-md: 14px;
|
|
--radius-lg: 22px;
|
|
--radius-pill: 9999px;
|
|
--elev-flat: none;
|
|
--elev-ring: 0 0 0 1px var(--border);
|
|
--elev-raised: 0 18px 48px rgba(0, 0, 32, 0.12);
|
|
--focus-ring: 0 0 0 4px rgba(70, 48, 235, 0.24);
|
|
--motion-fast: 140ms;
|
|
--motion-base: 220ms;
|
|
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
--container-max: 1160px;
|
|
--container-gutter-desktop: 32px;
|
|
--container-gutter-tablet: 24px;
|
|
--container-gutter-phone: 16px;
|
|
}
|
|
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
html, body { margin: 0; padding: 0; }
|
|
body {
|
|
min-height: 100vh;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-base);
|
|
line-height: var(--leading-body);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
.page {
|
|
min-height: 100vh;
|
|
background: radial-gradient(circle at 84% 14%, rgba(70, 48, 235, 0.16), transparent 34%), #ffffff;
|
|
}
|
|
.container {
|
|
max-width: var(--container-max);
|
|
margin-inline: auto;
|
|
padding-inline: var(--container-gutter-desktop);
|
|
}
|
|
section { padding-block: var(--section-y-desktop); }
|
|
@media (max-width: 1023px) {
|
|
.container { padding-inline: var(--container-gutter-tablet); }
|
|
section { padding-block: var(--section-y-tablet); }
|
|
}
|
|
@media (max-width: 639px) {
|
|
.container { padding-inline: var(--container-gutter-phone); }
|
|
section { padding-block: var(--section-y-phone); }
|
|
}
|
|
h1, h2, h3, p { margin: 0; }
|
|
h1, h2, h3 {
|
|
font-family: var(--font-display);
|
|
line-height: var(--leading-tight);
|
|
letter-spacing: var(--tracking-display);
|
|
}
|
|
h1 { max-width: 820px; font-size: var(--text-4xl); font-weight: 700; }
|
|
h2 { font-size: var(--text-3xl); font-weight: 650; }
|
|
h3 { font-size: var(--text-xl); font-weight: 650; }
|
|
.eyebrow {
|
|
color: var(--meta);
|
|
font-family: var(--font-mono);
|
|
font-size: var(--text-xs);
|
|
font-weight: 700;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
}
|
|
.lead {
|
|
max-width: 620px;
|
|
color: var(--fg-2);
|
|
font-size: var(--text-lg);
|
|
}
|
|
.hero {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
|
|
gap: var(--space-8);
|
|
align-items: center;
|
|
}
|
|
.stack > * + * { margin-block-start: var(--space-4); }
|
|
.actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-3);
|
|
margin-block-start: var(--space-6);
|
|
}
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 44px;
|
|
padding: 0 var(--space-5);
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-md);
|
|
font: 700 var(--text-sm) / 1 var(--font-body);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition:
|
|
background-color var(--motion-fast) var(--ease-standard),
|
|
border-color var(--motion-fast) var(--ease-standard),
|
|
color var(--motion-fast) var(--ease-standard),
|
|
transform var(--motion-fast) var(--ease-standard),
|
|
box-shadow var(--motion-fast) var(--ease-standard);
|
|
}
|
|
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
|
|
.btn-primary { background: var(--accent); color: var(--accent-on); }
|
|
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
|
|
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border); box-shadow: var(--elev-ring); }
|
|
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
|
|
.panel {
|
|
background: color-mix(in oklab, var(--surface), transparent 4%);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--elev-raised);
|
|
overflow: hidden;
|
|
}
|
|
.panel-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-4);
|
|
padding: var(--space-5);
|
|
border-bottom: 1px solid var(--border-soft);
|
|
}
|
|
.status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
color: var(--meta);
|
|
font: 700 var(--text-xs) / 1 var(--font-mono);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
.status::before {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: var(--radius-pill);
|
|
background: var(--success);
|
|
content: "";
|
|
}
|
|
.metric-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
border-bottom: 1px solid var(--border-soft);
|
|
}
|
|
.metric {
|
|
padding: var(--space-5);
|
|
border-right: 1px solid var(--border-soft);
|
|
}
|
|
.metric:last-child { border-right: 0; }
|
|
.metric strong {
|
|
display: block;
|
|
font-family: var(--font-display);
|
|
font-size: var(--text-2xl);
|
|
line-height: var(--leading-tight);
|
|
}
|
|
.metric span { color: var(--muted); font-size: var(--text-sm); }
|
|
.card-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--space-4);
|
|
padding: var(--space-5);
|
|
}
|
|
.mini-card {
|
|
min-height: 148px;
|
|
padding: var(--space-5);
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface-warm);
|
|
}
|
|
.mini-card p { color: var(--muted); font-size: var(--text-sm); margin-block-start: var(--space-3); }
|
|
.swatches {
|
|
display: flex;
|
|
gap: var(--space-2);
|
|
margin-block-start: var(--space-4);
|
|
}
|
|
.swatch {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
}
|
|
.swatch.accent { background: var(--accent); }
|
|
.swatch.surface { background: var(--surface); }
|
|
.swatch.warm { background: var(--surface-warm); }
|
|
.swatch.fg { background: var(--fg); }
|
|
.field {
|
|
display: grid;
|
|
gap: var(--space-2);
|
|
margin-block-start: var(--space-5);
|
|
}
|
|
label { color: var(--fg-2); font-size: var(--text-sm); font-weight: 700; }
|
|
input {
|
|
width: 100%;
|
|
min-height: 46px;
|
|
padding: 0 var(--space-4);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--surface);
|
|
color: var(--fg);
|
|
font: inherit;
|
|
}
|
|
input:focus { outline: none; box-shadow: var(--focus-ring); border-color: var(--accent); }
|
|
.lower {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: var(--space-4);
|
|
}
|
|
.tile {
|
|
padding: var(--space-5);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface);
|
|
}
|
|
.tile p { color: var(--muted); font-size: var(--text-sm); margin-block-start: var(--space-3); }
|
|
@media (max-width: 860px) {
|
|
.hero, .lower { grid-template-columns: 1fr; }
|
|
.metric-grid, .card-row { grid-template-columns: 1fr; }
|
|
.metric { border-right: 0; border-bottom: 1px solid var(--border-soft); }
|
|
.metric:last-child { border-bottom: 0; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main class="page">
|
|
<section>
|
|
<div class="container hero">
|
|
<div class="stack">
|
|
<p class="eyebrow">Expo design system</p>
|
|
<h1>App launch console</h1>
|
|
<p class="lead">Developer shipping surfaces with crisp black, code density, and mobile previews.</p>
|
|
<div class="actions" aria-label="Reference actions">
|
|
<a class="btn btn-primary" href="#">Primary black launch action</a>
|
|
<a class="btn btn-secondary" href="#">Secondary action</a>
|
|
</div>
|
|
</div>
|
|
<article class="panel" aria-label="Expo component preview">
|
|
<div class="panel-head">
|
|
<div>
|
|
<p class="eyebrow">Live module</p>
|
|
<h3>native build panel</h3>
|
|
</div>
|
|
<span class="status">online</span>
|
|
</div>
|
|
<div class="metric-grid">
|
|
<div class="metric"><strong>98%</strong><span>Signal quality</span></div>
|
|
<div class="metric"><strong>24</strong><span>Active flows</span></div>
|
|
<div class="metric"><strong>3.2s</strong><span>Response time</span></div>
|
|
</div>
|
|
<div class="card-row">
|
|
<div class="mini-card">
|
|
<h3>Palette</h3>
|
|
<p>developer-console minimalism with black-and-white precision and native app launch energy.</p>
|
|
<div class="swatches" aria-label="Token swatches">
|
|
<span class="swatch accent"></span>
|
|
<span class="swatch surface"></span>
|
|
<span class="swatch warm"></span>
|
|
<span class="swatch fg"></span>
|
|
</div>
|
|
</div>
|
|
<div class="mini-card">
|
|
<h3>Control</h3>
|
|
<p>Focus, hover, and status states share the same brand signal.</p>
|
|
<div class="field">
|
|
<label for="expo-input">Reference input</label>
|
|
<input id="expo-input" value="Expo system token" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
</div>
|
|
</section>
|
|
<section>
|
|
<div class="container lower">
|
|
<article class="tile">
|
|
<p class="eyebrow">Typography</p>
|
|
<h2>Display rhythm</h2>
|
|
<p>Headlines use the brand display stack with the declared scale and leading.</p>
|
|
</article>
|
|
<article class="tile">
|
|
<p class="eyebrow">Surface</p>
|
|
<h2>Layer system</h2>
|
|
<p>Cards, warm panels, borders, and raised states resolve through shared tokens.</p>
|
|
</article>
|
|
<article class="tile">
|
|
<p class="eyebrow">Interaction</p>
|
|
<h2>Motion states</h2>
|
|
<p>Buttons, inputs, and panels use brand-specific focus rings and easing.</p>
|
|
</article>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|