mirror of
https://github.com/bitbaum/petvity.git
synced 2026-12-04 09:07:22 +01:00
The fleet's building-in-public contract puts each product's record in its own repository as two markdown files and renders it through Loki's fleet map via bip-kit. Petvity had neither the files nor the pages. - ROADMAP.md: Now / Next / Later / Shipped, derived from the phases in AGENTS.md and the merged history. Planned work is written as plans. - CHANGELOG.md: Keep-a-Changelog dialect, user-facing, newest first, from merged PRs; today's homepage rewrite is the top entry. - /[locale]/roadmap and /[locale]/changelog render bip-kit's DevelopmentPage inside the marketing nav/footer; the records are English by contract, the chrome and metadata stay localized (keys in all 9 locales, footer links). - lib/config/development.ts is the SSOT for the map URL, slug and profile; lib/development/records.ts fetches with revalidate 300 and an 8s ceiling. - The --bp-* theme scope already mapped for the blog (.pv-longform) covers the records; the page title and record name take the editorial faces. - Vitest covers the data path with a fleet-map fixture, no network. - Sitemap lists both pages. Verified at 390px in de/en/ar: no horizontal overflow. Claude-Session: https://claude.ai/code/session_01NJJp6XiUkeEVzjDaBmWjL3 Co-authored-by: Claude <noreply@anthropic.com>
97 lines
3.3 KiB
CSS
97 lines
3.3 KiB
CSS
/**
|
|
* Petvity tokens → bip-kit's --bp-* theming contract.
|
|
*
|
|
* Two scopes, both class-based so nothing leaks into the rest of the app
|
|
* (bip-kit/styles.css defines its neutral defaults on :root; custom
|
|
* properties on a wrapper class always win for descendants, in light AND
|
|
* dark OS preference alike):
|
|
*
|
|
* .pv-longform — the public blog reader AND the /roadmap + /changelog
|
|
* records (bip-kit's DevelopmentPage) on the obsidian
|
|
* marketing surface (editorial-luxury layer: platinum text,
|
|
* champagne accent).
|
|
* .pv-preview — the admin editor's live preview on the light product
|
|
* theme (ink text on off-white).
|
|
*
|
|
* Every value references the design-token SSOT in app/globals.css — no
|
|
* literal colors here (enforced by scripts/ci/check-css-vars.mjs).
|
|
*/
|
|
|
|
.pv-longform {
|
|
--bp-font-sans: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
|
|
--bp-font-mono: var(--mono-face);
|
|
|
|
--bp-bg: transparent; /* the lux-section band paints the ground */
|
|
--bp-surface: var(--onyx);
|
|
--bp-fg: var(--platinum);
|
|
--bp-fg-muted: var(--platinum-dim);
|
|
--bp-fg-faint: var(--mist-dark);
|
|
--bp-border: var(--hairline-soft);
|
|
|
|
--bp-accent: var(--champagne);
|
|
--bp-accent-contrast: var(--obsidian);
|
|
|
|
/* Callouts on the dark editorial surface: notes stay achromatic, tips wear
|
|
the house champagne, warnings/danger keep their semantic hue. */
|
|
--bp-note: var(--platinum-dim);
|
|
--bp-note-bg: color-mix(in srgb, var(--platinum) 6%, transparent);
|
|
--bp-tip: var(--champagne);
|
|
--bp-tip-bg: color-mix(in srgb, var(--champagne) 9%, transparent);
|
|
--bp-warn: var(--warn);
|
|
--bp-warn-bg: color-mix(in srgb, var(--warn) 12%, transparent);
|
|
--bp-danger: var(--danger-soft);
|
|
--bp-danger-bg: color-mix(in srgb, var(--danger) 14%, transparent);
|
|
}
|
|
|
|
.pv-preview {
|
|
--bp-font-sans: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
|
|
--bp-font-mono: var(--mono-face);
|
|
|
|
--bp-bg: transparent;
|
|
--bp-surface: var(--off);
|
|
--bp-fg: var(--ink);
|
|
--bp-fg-muted: var(--ink2);
|
|
--bp-fg-faint: var(--muted);
|
|
--bp-border: var(--border);
|
|
|
|
--bp-accent: var(--champagne-dim);
|
|
--bp-accent-contrast: var(--off);
|
|
|
|
--bp-note: var(--info);
|
|
--bp-note-bg: var(--info-bg);
|
|
--bp-tip: var(--champagne-dim);
|
|
--bp-tip-bg: color-mix(in srgb, var(--champagne) 12%, transparent);
|
|
--bp-warn: var(--warn-text);
|
|
--bp-warn-bg: var(--warn-bg);
|
|
--bp-danger: var(--danger-text);
|
|
--bp-danger-bg: var(--danger-bg);
|
|
}
|
|
|
|
/* The public records (DevelopmentPage) inside the editorial scope: the page
|
|
title wears the display face like every other marketing headline, the
|
|
record title carries the champagne eyebrow treatment, and a done milestone
|
|
is marked in champagne rather than the neutral default. */
|
|
.pv-longform .bp-development h1 {
|
|
font-family: var(--display-face);
|
|
font-weight: 200;
|
|
letter-spacing: -0.01em;
|
|
color: var(--platinum);
|
|
}
|
|
.pv-longform .bp-development-name {
|
|
font-family: var(--mono-face);
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.18em;
|
|
text-transform: uppercase;
|
|
color: var(--champagne);
|
|
}
|
|
.pv-longform .bp-development h2 {
|
|
color: var(--platinum);
|
|
}
|
|
.pv-longform .bp-development-check {
|
|
color: var(--champagne);
|
|
}
|
|
.pv-longform .bp-development-records li[data-done] {
|
|
color: var(--platinum-dim);
|
|
}
|