④段整套同步(六节 + P/S/F/J + 模板)+ open-design 移到技能根
一、④段整套同步(用户选候选 A)
- 新增 `references/stage-proto-doc/assets/产品文档模板.html`(16 KB/247 行,从备份拷、转 LF)。
- ④段 SKILL.md 换成备份 15:28 那版,并按模板口径改齐:
· 「产品文档框架」从「四块+一附录」改成**六节** —— 页面结构/功能清单/使用场景/操作流程/
跨页与界面状态/待确认与偏离;与模板同构,⛔ 不从空白页重写结构。
· 编号从 R/S/F 改成 **P 页面/S 场景/F 功能/J 二级功能**,各自唯一、按展示顺序通排。
· 保留旧版有价值的要求:每项功能补齐 做什么/入口在哪/输入边界/异常与恢复;重点功能三处标红;
横向流程图每步写清页面/功能/操作/完成判据。
· 完成标准「七节」→「六节」,自查清单同步换掉「需求」那批条目,补模板与配图两条。
· 路径 `designs/<项目>/` → `docs/pm/<项目>/ui/`(2 处)。
· 补回本机那条「每份产出文档开头都要有一张图」的引用(指向主 skill,段内不复述)。
- 主 skill 同步:四段结构表④行、④段沿革、画图小节(④段画页面结构图 + 用户路径)。
二、open-design 移到技能根(用户选候选 A)
- `git mv product-planning/references/stage-delivery/assets/open-design → open-design/`(4178 文件)。
- `.gitignore` 白名单加 `!/open-design/` —— 否则移出去就不再纳入版本控制。
- 引用改 11 处:路径形态 `assets/open-design/...` → `<技能根>/open-design/...`;
「随段携带的自带件」改称「同根技能」;「路径怎么找」那条改成自带件(段内相对路径)与
同根技能(`<技能根>/<技能名>/`)两类分开写。
- open-design 自己的 ATTRIBUTION.md 两处同步(它现在与 oil-ui-pro 同层)。
- 副作用(有益):命名闸门读数由 2063 降到 225 —— 此前它把 open-design 里 919 个第三方 md
当成规则一起扫了;现在只扫本包 23 个 md。已确认④段的 H1 与 4a/4b/4c 子步仍在检查范围内。
三、验收
- check_naming.py --ws E:/ProgramData/AIProject/contentm_agent = 通过 225 / 失败 0 / 提示 27。
- 活文件里 `assets/open-design` 残留 0;工作区 CRLF 文件 0。
This commit is contained in:
1 parent
fa0a9026c8
commit
5afeb6b78a
4184 files changed
+326
-70
No files matched your search
@@ -0,0 +1,741 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Supabase — reference components</title>
|
||||
<meta
|
||||
name="description"
|
||||
content="Reference fixture for design-systems/supabase. Every visible
|
||||
value comes from tokens.css. Supabase's signature moves: near-black
|
||||
canvas, Postgres-emerald reserved as identity marker, Circular geometric
|
||||
sans with weight restraint, Source Code Pro uppercase for the developer-
|
||||
console voice, depth carried by a tight border hierarchy."
|
||||
/>
|
||||
|
||||
<style>
|
||||
/* :root paste — sourced verbatim from design-systems/supabase/tokens.css. */
|
||||
:root {
|
||||
--bg: #171717;
|
||||
--surface: #1c1c1c;
|
||||
--surface-warm: var(--surface);
|
||||
|
||||
--fg: #fafafa;
|
||||
--fg-2: #b4b4b4;
|
||||
--muted: #898989;
|
||||
--meta: #4d4d4d;
|
||||
|
||||
--border: #2e2e2e;
|
||||
--border-soft: #242424;
|
||||
|
||||
--accent: #3ecf8e;
|
||||
--accent-on: #0f0f0f;
|
||||
--accent-hover: #00c573;
|
||||
--accent-active: color-mix(in oklab, var(--accent), black 14%);
|
||||
|
||||
--success: #16a34a;
|
||||
--warn: #eab308;
|
||||
--danger: #dc2626;
|
||||
|
||||
--font-display: "Circular", "custom-font", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
--font-body: "Circular", "custom-font", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
--font-mono: "Source Code Pro", "Office Code Pro", Menlo, Monaco, Consolas, monospace;
|
||||
|
||||
--text-xs: 12px;
|
||||
--text-sm: 14px;
|
||||
--text-base: 16px;
|
||||
--text-lg: 18px;
|
||||
--text-xl: 24px;
|
||||
--text-2xl: 32px;
|
||||
--text-3xl: 36px;
|
||||
--text-4xl: 72px;
|
||||
|
||||
--leading-body: 1.5;
|
||||
--leading-tight: 1.00;
|
||||
--tracking-display: normal;
|
||||
|
||||
--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: 128px;
|
||||
--section-y-tablet: 80px;
|
||||
--section-y-phone: 48px;
|
||||
|
||||
--radius-sm: 6px;
|
||||
--radius-md: 8px;
|
||||
--radius-lg: 16px;
|
||||
--radius-pill: 9999px;
|
||||
|
||||
--elev-flat: none;
|
||||
--elev-ring: 0 0 0 1px var(--border);
|
||||
--elev-raised: 0 0 0 1px var(--border), 0 4px 12px rgba(0, 0, 0, 0.4);
|
||||
|
||||
--focus-ring: 0 0 0 2px color-mix(in oklab, var(--accent), transparent 50%);
|
||||
|
||||
--motion-fast: 150ms;
|
||||
--motion-base: 200ms;
|
||||
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
|
||||
|
||||
--container-max: 1200px;
|
||||
--container-gutter-desktop: 24px;
|
||||
--container-gutter-tablet: 16px;
|
||||
--container-gutter-phone: 16px;
|
||||
}
|
||||
|
||||
/* ─── Reset (minimal) ─────────────────────────────────────── */
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body {
|
||||
background: var(--bg);
|
||||
color: var(--fg-2);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-base);
|
||||
line-height: var(--leading-body);
|
||||
font-weight: 400;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
/* ─── Layout primitives ─────────────────────────────────── */
|
||||
.container {
|
||||
max-width: var(--container-max);
|
||||
margin-inline: auto;
|
||||
padding-inline: var(--container-gutter-desktop);
|
||||
}
|
||||
section {
|
||||
padding-block: var(--section-y-desktop);
|
||||
}
|
||||
section + section {
|
||||
/* DESIGN.md §6: depth comes from borders, not shadows. Section
|
||||
dividers use the standard border tier — a hairline against
|
||||
the dark canvas, the brand's "edges define" promise. */
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
@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); }
|
||||
}
|
||||
|
||||
/* ─── Typography ────────────────────────────────────────────
|
||||
* Weight restraint: 400 for prose, 500 for interactive elements.
|
||||
* DESIGN.md §3 Principles: "There is no bold (700) in the
|
||||
* detected system — hierarchy is created through size, not
|
||||
* weight." Display sizes hold at leading 1.00 (the defining
|
||||
* gesture) and tracking `normal`; smaller scales relax leading
|
||||
* upward as the table in DESIGN.md §3 prescribes. */
|
||||
h1, h2, h3, h4 {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 400;
|
||||
margin: 0;
|
||||
color: var(--fg);
|
||||
line-height: var(--leading-tight);
|
||||
letter-spacing: var(--tracking-display);
|
||||
}
|
||||
h1 {
|
||||
font-size: var(--text-4xl);
|
||||
/* DESIGN.md §3 Display Hero: 72px / 1.00 leading / normal
|
||||
tracking — the terminal-density typographic signature. */
|
||||
}
|
||||
h2 {
|
||||
font-size: var(--text-3xl);
|
||||
/* DESIGN.md §3 Section Heading: 36px / 1.25 leading.
|
||||
Overrides the shared 1.00 set above. */
|
||||
line-height: 1.25;
|
||||
}
|
||||
h3 {
|
||||
font-size: var(--text-xl);
|
||||
/* DESIGN.md §3 Card Title: 24px / 1.33 leading / -0.16px
|
||||
tracking ≈ -0.0067em. The subtle negative tracking is the
|
||||
card-title differentiation from body text. */
|
||||
line-height: 1.33;
|
||||
letter-spacing: -0.0067em;
|
||||
}
|
||||
h4 {
|
||||
font-size: var(--text-lg);
|
||||
line-height: 1.56;
|
||||
}
|
||||
p { margin: 0; }
|
||||
|
||||
.lede {
|
||||
font-size: var(--text-base);
|
||||
line-height: var(--leading-body);
|
||||
color: var(--fg-2);
|
||||
max-width: 56ch;
|
||||
}
|
||||
.body-muted { color: var(--muted); }
|
||||
.body-meta { color: var(--meta); font-size: var(--text-sm); }
|
||||
.body-sm { font-size: var(--text-sm); }
|
||||
|
||||
/* Eyebrow uses Source Code Pro uppercase — DESIGN.md §3:
|
||||
"Source Code Pro in uppercase with 1.2px letter-spacing is
|
||||
the 'developer console' voice — used sparingly for technical
|
||||
labels that connect to the product experience." 1.2px at
|
||||
12px ≈ 0.1em. */
|
||||
.eyebrow {
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: 400;
|
||||
line-height: 1.33;
|
||||
color: var(--muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
}
|
||||
|
||||
.stack-3 > * + * { margin-block-start: var(--space-3); }
|
||||
.stack-4 > * + * { margin-block-start: var(--space-4); }
|
||||
.stack-6 > * + * { margin-block-start: var(--space-6); }
|
||||
|
||||
/* ─── Buttons ───────────────────────────────────────────────
|
||||
* DESIGN.md §4 + §7: primary CTAs are pills (9999px radius),
|
||||
* ghost buttons take the 6px standard radius. The brand
|
||||
* deliberately FORBIDS in-between radii on buttons. The
|
||||
* primary pill is `#0f0f0f` background with `#fafafa` text and
|
||||
* a white border — the brand's "pill on dark" pattern, NOT
|
||||
* `background: var(--accent)`. Emerald stays reserved for the
|
||||
* brand-pill variant below and for links + focus. */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-8);
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-pill);
|
||||
font-family: var(--font-display);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: 500;
|
||||
line-height: 1.14;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
transition:
|
||||
background-color var(--motion-fast) var(--ease-standard),
|
||||
border-color var(--motion-fast) var(--ease-standard),
|
||||
color var(--motion-fast) var(--ease-standard);
|
||||
}
|
||||
.btn:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: var(--focus-ring);
|
||||
}
|
||||
.btn-primary {
|
||||
background: #0f0f0f;
|
||||
color: var(--fg);
|
||||
border-color: var(--fg);
|
||||
}
|
||||
.btn-primary:hover {
|
||||
background: color-mix(in oklab, #0f0f0f, var(--fg) 6%);
|
||||
}
|
||||
.btn-secondary {
|
||||
background: #0f0f0f;
|
||||
color: var(--fg);
|
||||
border-color: var(--border);
|
||||
opacity: 0.92;
|
||||
}
|
||||
.btn-secondary:hover {
|
||||
border-color: color-mix(in oklab, var(--border), var(--fg) 16%);
|
||||
opacity: 1;
|
||||
}
|
||||
/* Brand pill — the one place emerald appears as a button surface.
|
||||
Reserved for the single highest-intent CTA per screen so the
|
||||
≤2 accent-uses budget stays honest. */
|
||||
.btn-brand {
|
||||
background: var(--accent);
|
||||
color: var(--accent-on);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
.btn-brand:hover {
|
||||
background: var(--accent-hover);
|
||||
border-color: var(--accent-hover);
|
||||
}
|
||||
.btn-brand:active { background: var(--accent-active); }
|
||||
.btn-ghost {
|
||||
background: transparent;
|
||||
color: var(--fg);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border-color: transparent;
|
||||
}
|
||||
.btn-ghost:hover {
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
/* ─── Inputs ────────────────────────────────────────────────
|
||||
* Border-defined edges (DESIGN.md §6 — no shadows on dark).
|
||||
* On focus the border resolves to the brand accent at full
|
||||
* saturation, layered with the green focus halo. */
|
||||
.field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
.field label {
|
||||
font-size: var(--text-sm);
|
||||
font-weight: 500;
|
||||
color: var(--fg);
|
||||
}
|
||||
.field input {
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
font-family: inherit;
|
||||
font-size: var(--text-sm);
|
||||
line-height: 1.43;
|
||||
outline: none;
|
||||
transition:
|
||||
border-color var(--motion-fast) var(--ease-standard),
|
||||
box-shadow var(--motion-fast) var(--ease-standard);
|
||||
}
|
||||
.field input::placeholder { color: var(--meta); }
|
||||
.field input:hover { border-color: #393939; }
|
||||
.field input:focus-visible {
|
||||
border-color: var(--accent);
|
||||
box-shadow: var(--focus-ring);
|
||||
}
|
||||
.field-help {
|
||||
font-size: var(--text-xs);
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
/* ─── Cards ─────────────────────────────────────────────────
|
||||
* Border defines the edge (DESIGN.md §4): #2e2e2e at 8px or
|
||||
* 16px radius depending on hierarchy. No shadows by default —
|
||||
* the hover state introduces the green-accent border for the
|
||||
* "brand-highlighted" elevation (DESIGN.md §6 Level 3). */
|
||||
.card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--space-6);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-4);
|
||||
transition:
|
||||
border-color var(--motion-base) var(--ease-standard),
|
||||
background-color var(--motion-base) var(--ease-standard);
|
||||
}
|
||||
.card:hover {
|
||||
border-color: color-mix(in oklab, var(--accent), transparent 70%);
|
||||
}
|
||||
|
||||
/* ─── Badges ────────────────────────────────────────────────
|
||||
* Pill badges with hairline borders — Supabase uses these for
|
||||
* status markers and stage labels. The accent badge tints the
|
||||
* brand emerald against the dark surface; the muted badge
|
||||
* sits on the standard border tier. */
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-1);
|
||||
padding: var(--space-1) var(--space-3);
|
||||
border-radius: var(--radius-pill);
|
||||
font-family: var(--font-display);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: 500;
|
||||
line-height: 1.33;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.badge-accent {
|
||||
color: var(--accent);
|
||||
background: color-mix(in oklab, var(--accent), var(--bg) 88%);
|
||||
border-color: color-mix(in oklab, var(--accent), transparent 70%);
|
||||
}
|
||||
.badge-muted {
|
||||
color: var(--fg-2);
|
||||
background: var(--surface);
|
||||
border-color: var(--border);
|
||||
}
|
||||
.badge-success {
|
||||
color: var(--success);
|
||||
background: color-mix(in oklab, var(--success), var(--bg) 88%);
|
||||
border-color: color-mix(in oklab, var(--success), transparent 75%);
|
||||
}
|
||||
.badge-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: var(--radius-pill);
|
||||
background: currentColor;
|
||||
}
|
||||
|
||||
/* ─── Links ─────────────────────────────────────────────────
|
||||
* DESIGN.md §4: "Green: #00c573 — Supabase-branded links." We
|
||||
* bind link color to the interactive-green variant (which is
|
||||
* `--accent-hover` in this brand's mapping — see tokens.css §4)
|
||||
* because that's the documented interactive form of the accent. */
|
||||
a {
|
||||
color: var(--accent-hover);
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid color-mix(in oklab, var(--accent-hover), transparent 70%);
|
||||
transition:
|
||||
color var(--motion-fast) var(--ease-standard),
|
||||
border-color var(--motion-fast) var(--ease-standard);
|
||||
}
|
||||
a:hover {
|
||||
color: var(--accent);
|
||||
border-bottom-color: var(--accent);
|
||||
}
|
||||
a:focus-visible {
|
||||
outline: none;
|
||||
border-radius: 2px;
|
||||
box-shadow: var(--focus-ring);
|
||||
}
|
||||
|
||||
/* ─── Kbd ───────────────────────────────────────────────────
|
||||
* Source Code Pro, hairline border edge. Supabase uses kbd
|
||||
* marks throughout docs with the same border-defined restraint. */
|
||||
kbd {
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--text-xs);
|
||||
padding: 2px var(--space-2);
|
||||
border-radius: 4px;
|
||||
background: var(--surface);
|
||||
color: var(--fg);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* ─── Code chip (inline) ────────────────────────────────────
|
||||
* Source Code Pro at body-adjacent size for inline product
|
||||
* references — table names, env vars, function signatures. */
|
||||
code.chip {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.92em;
|
||||
color: var(--accent);
|
||||
background: color-mix(in oklab, var(--accent), var(--bg) 92%);
|
||||
padding: 2px var(--space-2);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* ─── Section-specific layout ─────────────────────────────── */
|
||||
.hero {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
/* Atmospheric green wash — the single chromatic moment behind
|
||||
the hero headline. A radial of `var(--accent)` at low opacity
|
||||
echoes Supabase's logo-as-canvas treatment without violating
|
||||
the ≤2 accent uses budget (the wash is decorative atmosphere,
|
||||
not a labeled accent surface). */
|
||||
.hero::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: -20% -10% auto -10%;
|
||||
height: 70%;
|
||||
background:
|
||||
radial-gradient(
|
||||
55% 60% at 18% 30%,
|
||||
color-mix(in oklab, var(--accent), var(--bg) 70%) 0%,
|
||||
var(--bg) 60%
|
||||
);
|
||||
opacity: 0.55;
|
||||
filter: blur(60px);
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.hero > * { position: relative; z-index: 1; }
|
||||
.hero .eyebrow { margin-block-end: var(--space-5); }
|
||||
.hero h1 { max-width: 16ch; }
|
||||
.hero .lede {
|
||||
max-width: 56ch;
|
||||
margin-block-start: var(--space-6);
|
||||
font-size: var(--text-lg);
|
||||
line-height: 1.56;
|
||||
}
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
gap: var(--space-3);
|
||||
margin-block-start: var(--space-8);
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.hero-meta {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
margin-block-start: var(--space-6);
|
||||
color: var(--muted);
|
||||
font-size: var(--text-sm);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.features-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: var(--space-5);
|
||||
margin-block-start: var(--space-8);
|
||||
}
|
||||
@media (max-width: 1023px) {
|
||||
.features-grid { grid-template-columns: 1fr 1fr; }
|
||||
}
|
||||
@media (max-width: 639px) {
|
||||
.features-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
.feature-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: var(--radius-md);
|
||||
border: 1px solid var(--border);
|
||||
background: var(--bg);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--accent);
|
||||
}
|
||||
.feature-icon svg { width: 18px; height: 18px; }
|
||||
|
||||
.form-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1.2fr 1fr;
|
||||
gap: var(--space-12);
|
||||
align-items: start;
|
||||
margin-block-start: var(--space-8);
|
||||
}
|
||||
@media (max-width: 1023px) {
|
||||
.form-row { grid-template-columns: 1fr; gap: var(--space-8); }
|
||||
}
|
||||
.form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-4);
|
||||
max-width: 440px;
|
||||
padding: var(--space-6);
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--elev-raised);
|
||||
}
|
||||
.form-actions {
|
||||
display: flex;
|
||||
gap: var(--space-3);
|
||||
margin-block-start: var(--space-2);
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.row-between {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
.icon { width: 16px; height: 16px; flex-shrink: 0; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main class="container">
|
||||
<!-- ════════════════════════════════════════════════════════════
|
||||
HERO — exercises: radial green wash (the one chromatic
|
||||
moment per screen), h1 at 72px Circular weight 400 with
|
||||
leading 1.00 (the terminal-density signature), .lede in
|
||||
--fg-2, .btn-brand (the emerald pill), .btn-secondary
|
||||
(dark pill with hairline border), Source Code Pro eyebrow.
|
||||
Hero copy reflects Supabase's "build in a weekend, scale
|
||||
to millions" voice — confident, technical, terse.
|
||||
═══════════════════════════════════════════════════════════════ -->
|
||||
<section class="hero" data-od-id="hero">
|
||||
<p class="eyebrow">// open source · postgres-native</p>
|
||||
<h1>Build in a weekend. Scale to millions.</h1>
|
||||
<p class="lede">
|
||||
Every Supabase project ships with a Postgres database,
|
||||
authentication, instant APIs, edge functions, realtime
|
||||
subscriptions, and object storage. Start with a
|
||||
<code class="chip">create table</code>, deploy with a
|
||||
<code class="chip">git push</code>, and let the platform
|
||||
carry the load when traffic finds you.
|
||||
</p>
|
||||
<div class="hero-actions">
|
||||
<a href="./tokens.css" class="btn btn-brand" style="border-bottom: none">
|
||||
Start your project
|
||||
<svg
|
||||
class="icon"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="1.75"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<path d="M5 12h14M13 6l6 6-6 6" />
|
||||
</svg>
|
||||
</a>
|
||||
<a href="./DESIGN.md" class="btn btn-secondary" style="border-bottom: none">
|
||||
Read the docs
|
||||
</a>
|
||||
</div>
|
||||
<p class="hero-meta">
|
||||
<span class="badge badge-muted">
|
||||
<span class="badge-dot" aria-hidden="true" style="color: var(--success)"></span>
|
||||
All systems normal
|
||||
</span>
|
||||
<span>Press <kbd>⌘</kbd> <kbd>K</kbd> to search the docs.</span>
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<!-- ════════════════════════════════════════════════════════════
|
||||
FEATURE CARDS — three cards exercising: .card (border-as-
|
||||
depth, no shadow), h3 with -0.0067em tracking and 1.33
|
||||
leading (DESIGN.md card-title row), .feature-icon (hairline
|
||||
bordered square with emerald glyph), .badge-accent (the
|
||||
tinted brand-status pill), link bottom-border underline.
|
||||
Three cards per row at desktop, collapse to two then one.
|
||||
═══════════════════════════════════════════════════════════════ -->
|
||||
<section data-od-id="features">
|
||||
<p class="eyebrow">// the stack</p>
|
||||
<h2 style="max-width: 26ch; margin-block-start: var(--space-4)">
|
||||
The open source backend that grew up.
|
||||
</h2>
|
||||
<p class="body-muted" style="margin-block-start: var(--space-4); max-width: 56ch">
|
||||
One project, six services, all standing on Postgres. Bring
|
||||
your own SQL — the rest of the platform speaks your schema.
|
||||
</p>
|
||||
|
||||
<div class="features-grid">
|
||||
<article class="card">
|
||||
<div class="row-between">
|
||||
<span class="feature-icon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
|
||||
<ellipse cx="12" cy="6" rx="8" ry="3" />
|
||||
<path d="M4 6v6c0 1.66 3.58 3 8 3s8-1.34 8-3V6" />
|
||||
<path d="M4 12v6c0 1.66 3.58 3 8 3s8-1.34 8-3v-6" />
|
||||
</svg>
|
||||
</span>
|
||||
<span class="badge badge-accent">Postgres 16</span>
|
||||
</div>
|
||||
<h3>A dedicated database, on day one.</h3>
|
||||
<p class="body-muted body-sm">
|
||||
Every project gets a fully-managed Postgres instance with
|
||||
extensions, point-in-time recovery, and read replicas. The
|
||||
<code class="chip">supabase</code> CLI streams migrations
|
||||
from <code class="chip">/supabase/migrations</code> straight
|
||||
to production.
|
||||
</p>
|
||||
<a href="./tokens.css" class="body-sm">Explore the database →</a>
|
||||
</article>
|
||||
|
||||
<article class="card">
|
||||
<div class="row-between">
|
||||
<span class="feature-icon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
|
||||
<rect x="3" y="11" width="18" height="10" rx="2" />
|
||||
<path d="M7 11V7a5 5 0 0 1 10 0v4" />
|
||||
</svg>
|
||||
</span>
|
||||
<span class="badge badge-accent">Row-level</span>
|
||||
</div>
|
||||
<h3>Auth that respects your schema.</h3>
|
||||
<p class="body-muted body-sm">
|
||||
Email, OAuth, magic links, and SAML — all writing to a
|
||||
<code class="chip">auth.users</code> table you can join
|
||||
against. Row-level security policies enforce access in
|
||||
the database, not in middleware.
|
||||
</p>
|
||||
<a href="./DESIGN.md" class="body-sm">See the auth flow →</a>
|
||||
</article>
|
||||
|
||||
<article class="card">
|
||||
<div class="row-between">
|
||||
<span class="feature-icon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M12 2v20M2 12h20" />
|
||||
<circle cx="12" cy="12" r="9" />
|
||||
</svg>
|
||||
</span>
|
||||
<span class="badge badge-success">
|
||||
<span class="badge-dot" aria-hidden="true"></span>
|
||||
Realtime
|
||||
</span>
|
||||
</div>
|
||||
<h3>Subscriptions over your data.</h3>
|
||||
<p class="body-muted body-sm">
|
||||
Listen to row inserts, updates, and deletes from the
|
||||
browser — no extra service, no manual fan-out. Realtime
|
||||
streams Postgres' write-ahead log to authorized clients
|
||||
over a single WebSocket.
|
||||
</p>
|
||||
<a href="./tokens.css" class="body-sm">Inspect the channel →</a>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- ════════════════════════════════════════════════════════════
|
||||
FORM — exercises: .field with border-defined input edges,
|
||||
focus-visible swap to the emerald border + green focus
|
||||
halo, .btn-brand and .btn-secondary reuse. Form sits in
|
||||
its own bordered card with the brand's minimal elev-raised
|
||||
shadow so the inputs read as recessed beneath the card.
|
||||
═══════════════════════════════════════════════════════════════ -->
|
||||
<section data-od-id="form">
|
||||
<p class="eyebrow">// get the launch kit</p>
|
||||
<h2 style="margin-block-start: var(--space-4); max-width: 28ch">
|
||||
Ship the schema. We'll handle the rest.
|
||||
</h2>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="stack-4">
|
||||
<p class="body-muted" style="max-width: 48ch">
|
||||
Inputs, focus rings, and edges all derive from
|
||||
<code class="chip">--border</code> and
|
||||
<code class="chip">--accent</code>. The primary CTA reuses
|
||||
<code class="chip">.btn-brand</code> unchanged — emerald
|
||||
fill, near-black label, pill radius. No raw hex anywhere
|
||||
in the component CSS.
|
||||
</p>
|
||||
<p class="body-muted body-sm">
|
||||
Press <kbd>Enter</kbd> on the email field to submit. The
|
||||
focus halo lands at the documented brand-highlight tint
|
||||
(<code class="chip">rgba(62, 207, 142, 0.5)</code>) —
|
||||
visible against the canvas without dominating the page.
|
||||
</p>
|
||||
<p class="body-meta">
|
||||
Full reference at <a href="./tokens.css">tokens.css</a> ·
|
||||
spec at <a href="./DESIGN.md">DESIGN.md</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<form class="form" onsubmit="event.preventDefault();">
|
||||
<div class="row-between">
|
||||
<p class="eyebrow">// launch kit</p>
|
||||
<span class="badge badge-success">
|
||||
<span class="badge-dot" aria-hidden="true"></span>
|
||||
Open
|
||||
</span>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="email">Work email</label>
|
||||
<input
|
||||
id="email"
|
||||
type="email"
|
||||
placeholder="[email protected]"
|
||||
autocomplete="email"
|
||||
required
|
||||
/>
|
||||
<p class="field-help">
|
||||
We'll send the starter repo and a Postgres schema you
|
||||
can <code class="chip">supabase db push</code> on day one.
|
||||
</p>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-brand">
|
||||
Send the kit
|
||||
</button>
|
||||
<button type="button" class="btn btn-ghost">
|
||||
Browse the docs
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user