Skip to content

cofob Design System v1

Quiet structure. Clear content.

A framework-independent design language for cofob.dev sites, with one semantic CSS contract and native, React, and Svelte implementations.

Design principles

The visual language preserves the original cofob.dev character while making its decisions explicit.

01

Content first

Typography and rhythm carry hierarchy before decoration does.

02

Calm confidence

Sky accents, zinc surfaces, and soft geometry support rather than compete.

03

Platform aligned

Semantic HTML and native browser behavior are the foundation of interaction.

04

Accessible by default

Every state remains visible by keyboard, contrast, motion, and assistive technology.

Framework adapters

Both implementations below are rendered and hydrated on this Astro page, not recreated as showroom-only HTML.

React 19Live island

The React adapter

Typed native props and controlled state, rendered through the shared class contract.

Explore React
Svelte 5 Live island

The Svelte adapter

Runes, snippets, and bindable state, rendered through the same class contract.

Explore Svelte

Foundation and layout

Theme, typography, semantic navigation, and composable layout primitives.

ThemeProvider

Supplies reactive light, dark, and system theme state.

Theme contextOne preference, resolved before paint.
API and examples →

ThemeScript

Applies the saved theme before first paint.

<ThemeScript />
API and examples →

Heading

Responsive heading hierarchy from h1 through h6.

Content comes first.

API and examples →

Text

Body, muted, lead, small, and caption text styles.

Readable body text for long-form content.

Supporting metadata stays quiet.

API and examples →

Prose

Long-form article typography and media rhythm.

Long-form rhythm

Headings, paragraphs, links, and inline code share a comfortable reading measure.

API and examples →

Container

Centered responsive content width.

A centered, narrow content container.
API and examples →

Section

Vertical page section with consistent spacing.

Foundation

A clear section

Semantic page rhythm.

Section content follows its optional header.

API and examples →

Stack

Vertical flow layout with token-based gaps.

FirstSecondThird
API and examples →

Inline

Wrapping horizontal layout with alignment controls.

OneTwoThree
API and examples →

Actions and forms

Everyday controls with consistent focus, validation, and disabled states.

Button

Primary, secondary, ghost, and danger actions.

API and examples →

Field

Label, hint, required, and error message composition.

Use a short, recognizable name.

API and examples →

TextField

Single-line text and search input.

API and examples →

Textarea

Multi-line text entry with validation styling.

API and examples →

Select

Native selection control styled by the system.

API and examples →

Checkbox

Boolean selection with a visible native control.

API and examples →

Switch

Immediate boolean setting with switch semantics.

API and examples →

Captcha

Controlled, presentation-only human-verification surface inspired by Cap.

API and examples →

Display and feedback

Surfaces, labels, status messaging, and empty states.

Badge

Compact semantic status label.

NeutralAccentInfoSuccessWarningDanger
API and examples →

Tag

Static or interactive content taxonomy label.

taxonomydesign systems
API and examples →

Alert

Info, success, warning, and danger callout.

API and examples →

EmptyState

Concise no-data explanation and next action.

No posts yet

Publish the first note when it is ready.

API and examples →

CodeBlock

Readable source code with an optional language label and copy action.

typescript
          const preference = "system";
applyTheme(preference);
        
API and examples →

TerminalCodeBlock

Terminal transcript with commands separated from output and individually copyable.

Terminal
npm install @cofob/design-system-css
added 1 package in 842ms
npm run build -- --mode production
✓ 51 pages built
API and examples →

Table

Accessible responsive data table with explicit surfaces, density, and striped rows.

PackageAdapterStatus
CSSNativeReady
ReactReact 19Ready
SvelteSvelte 5Ready
API and examples →

Navigation and interaction

Stateful patterns backed by the platform and shared vanilla controllers.

Pagination

Previous, numbered, and next page navigation.

API and examples →

Dialog

Modal dialog using the native dialog element.

Confirm change

Review the details before continuing.

This uses the platform dialog element.

API and examples →

Popover

Light-dismiss non-modal floating content.

Semantic detailsHelpful contextual content.
API and examples →

Tabs

Automatic or manual tab activation.

A shared semantic class contract.
API and examples →

Accordion

Single or multiple disclosure sections.

What is shared?

Tokens, classes, states, and behavior.

Which frameworks?

Native, React, and Svelte.

API and examples →

Tooltip

Supplementary hover and focus description.

More information
API and examples →

ToastProvider

Owns queued transient notification state.

API and examples →

ToastViewport

Polite and assertive toast live region.

API and examples →

Brand and content

Recognizable cofob.dev brand treatments and publishing patterns.

BlueLine

Sky or rainbow marker stroke behind inline content.

Hello, cofob.dev.

API and examples →

ResponsiveImage

Intrinsic image with srcset and loading controls.

Abstract blue geometric landscapeAbstract blue geometric landscape at night
A responsive image with intrinsic dimensions.
API and examples →

ChatThread

Accessible message transcript with decorative avatars.

  1. cofob

    Ship the semantic contract first.
  2. reader

    Then every adapter stays aligned.
API and examples →