01
Content first
Typography and rhythm carry hierarchy before decoration does.
cofob Design System v1
A framework-independent design language for cofob.dev sites, with one semantic CSS contract and native, React, and Svelte implementations.
The visual language preserves the original cofob.dev character while making its decisions explicit.
01
Typography and rhythm carry hierarchy before decoration does.
02
Sky accents, zinc surfaces, and soft geometry support rather than compete.
03
Semantic HTML and native browser behavior are the foundation of interaction.
04
Every state remains visible by keyboard, contrast, motion, and assistive technology.
Both implementations below are rendered and hydrated on this Astro page, not recreated as showroom-only HTML.
Theme, typography, semantic navigation, and composable layout primitives.
Supplies reactive light, dark, and system theme state.
Applies the saved theme before first paint.
<ThemeScript /><ThemeScript /><ThemeScript />Accessible three-way theme preference control.
Keyboard shortcut to the primary page content.
Focus this frame, then press Tab.
Preview content target
Focus this frame, then press Tab.
Preview content target
Focus this frame, then press Tab.
Preview content target
Responsive heading hierarchy from h1 through h6.
Body, muted, lead, small, and caption text styles.
Readable body text for long-form content.
Supporting metadata stays quiet.
Readable body text for long-form content.
Supporting metadata stays quiet.
Readable body text for long-form content.
Supporting metadata stays quiet.
Accessible inline and standalone navigation links.
API and examples →Long-form article typography and media rhythm.
Headings, paragraphs, links, and inline code share a comfortable reading measure.
Headings, paragraphs, links, and inline code share a comfortable reading measure.
Headings, paragraphs, links, and inline code share a comfortable reading measure.
Centered responsive content width.
Vertical page section with consistent spacing.
Foundation
Semantic page rhythm.
Section content follows its optional header.
Foundation
Semantic page rhythm.
Section content follows its optional header.
Foundation
Semantic page rhythm.
Section content follows its optional header.
Vertical flow layout with token-based gaps.
Wrapping horizontal layout with alignment controls.
Everyday controls with consistent focus, validation, and disabled states.
Primary, secondary, ghost, and danger actions.
Compact labelled action for a single Lucide icon.
Label, hint, required, and error message composition.
Use a short, recognizable name.
A slug is required.
Use a short, recognizable name.
A slug is required.
Single-line text and search input.
Multi-line text entry with validation styling.
Native selection control styled by the system.
Boolean selection with a visible native control.
Immediate boolean setting with switch semantics.
Controlled, presentation-only human-verification surface inspired by Cap.
Surfaces, labels, status messaging, and empty states.
Compact semantic status label.
Static or interactive content taxonomy label.
Info, success, warning, and danger callout.
Note
Saved
Review
Failed
Neutral, accent, and interactive content surface.
Quiet structure.
Raised context.
Defined boundary.
Linked surface.
Concise no-data explanation and next action.
Publish the first note when it is ready.
Publish the first note when it is ready.
Publish the first note when it is ready.
Readable source code with an optional language label and copy action.
const preference = "system";
applyTheme(preference);
const preference = "system";
applyTheme(preference);const preference = "system";
applyTheme(preference);Terminal transcript with commands separated from output and individually copyable.
npm install @cofob/design-system-cssadded 1 package in 842msnpm run build -- --mode production✓ 51 pages builtnpm install @cofob/design-system-cssadded 1 package in 842msnpm run build -- --mode production✓ 51 pages builtnpm install @cofob/design-system-css added 1 package in 842ms npm run build -- --mode production ✓ 51 pages built Accessible responsive data table with explicit surfaces, density, and striped rows.
| Package | Adapter | Status |
|---|---|---|
| CSS | Native | Ready |
| React | React 19 | Ready |
| Svelte | Svelte 5 | Ready |
| Package | Adapter | Status |
|---|---|---|
| CSS | Native | Ready |
| React | React 19 | Ready |
| Svelte | Svelte 5 | Ready |
| Package | Adapter | Status |
|---|---|---|
| CSS | Native | Ready |
| React | React 19 | Ready |
| Svelte | Svelte 5 | Ready |
Stateful patterns backed by the platform and shared vanilla controllers.
Previous, numbered, and next page navigation.
Modal dialog using the native dialog element.
Light-dismiss non-modal floating content.
Roving-focus action menu with typeahead.
API and examples →Automatic or manual tab activation.
Single or multiple disclosure sections.
Tokens, classes, states, and behavior.
Native, React, and Svelte.
Supplementary hover and focus description.
Owns queued transient notification state.
Polite and assertive toast live region.
Recognizable cofob.dev brand treatments and publishing patterns.
Sky or rainbow marker stroke behind inline content.
Router-independent brand and navigation shell.
API and examples →Copyright, feed, license, and secondary link footer.
API and examples →Article preview with cover, dates, tags, and action.
A practical note about content-first design.
A practical note about content-first design.
A practical note about content-first design.
Compact highlighted latest-publication link.
Search result summary with metadata.
A practical note about content-first design.
A practical note about content-first design.
A practical note about content-first design.
Intrinsic image with srcset and loading controls.
Accessible message transcript with decorative avatars.
Attributed sticker figure with required alternative text.

