Skip to content

Latest commit

 

History

History
173 lines (139 loc) · 6.55 KB

File metadata and controls

173 lines (139 loc) · 6.55 KB
name mdbase.dev
description Minimal technical reference design system for the mdbase specification site.
colors
paper paper-soft paper-code ink ink-soft ink-muted line blue-accent
oklch(100% 0 0)
oklch(100% 0 0)
oklch(100% 0 0)
oklch(21% 0.018 255)
oklch(39% 0.016 255)
oklch(54% 0.014 255)
oklch(92% 0.006 255)
oklch(45% 0.105 238)
dark-colors
paper paper-soft paper-code ink ink-soft ink-muted line line-strong blue-accent
oklch(18.5% 0.012 255)
oklch(20.5% 0.013 255)
oklch(21.5% 0.014 255)
oklch(92% 0.008 255)
oklch(79% 0.01 255)
oklch(67% 0.012 255)
oklch(29% 0.012 255)
oklch(40% 0.014 255)
oklch(73% 0.105 238)
typography
display headline body label
fontFamily fontSize fontWeight lineHeight letterSpacing
Atkinson Hyperlegible, Segoe UI, sans-serif
6rem
700
0.96
-0.045em
fontFamily fontSize fontWeight lineHeight letterSpacing
Atkinson Hyperlegible, Segoe UI, sans-serif
2.5rem
700
1.12
-0.025em
fontFamily fontSize fontWeight lineHeight letterSpacing
Atkinson Hyperlegible, Segoe UI, sans-serif
1.04rem
400
1.66
0
fontFamily fontSize fontWeight lineHeight letterSpacing
Azeret Mono, SFMono-Regular, Cascadia Code, monospace
0.72rem
500
1.4
0
rounded
default
3px
spacing
xs sm md lg xl xxl
8px
12px
16px
24px
32px
48px
components
button-primary code-specimen
backgroundColor textColor rounded padding
{colors.paper}
{colors.ink}
{rounded.default}
0 24px
backgroundColor textColor rounded padding
{colors.paper-code}
{colors.ink}
{rounded.default}
24px

Design System: mdbase.dev

1. Overview

Creative North Star: "A Clean Standards Document"

mdbase.dev is a calm, precise reading environment for people who implement the specification. Open space, direct typography, quiet rules, and real mdbase artifacts give the site its identity. The visual system keeps attention on the model, examples, and normative text in daylight or low light.

Key characteristics

  • Open page layouts with generous, deliberate whitespace.
  • Strong headings and highly legible long-form text.
  • Actual files, schemas, queries, and contracts as the primary visual material.
  • One muted blue accent for links and current state.
  • Pale horizontal rules for grouping and rhythm.
  • Table-like resource rows for dense implementation information.

2. Colors

The light palette is paper with blue-black ink. The dark palette uses deep blue-black paper with softened light ink. Hierarchy comes from type, spacing, and quiet rules in both themes.

Primary

  • Blue Accent (oklch(45% 0.105 238)): links, version emphasis, selected states, and focus rings.

Neutral

  • Paper (oklch(100% 0 0)): every page and component surface.
  • Ink (oklch(21% 0.018 255)): headings and primary text.
  • Ink Soft (oklch(39% 0.016 255)): explanatory text.
  • Ink Muted (oklch(54% 0.014 255)): labels and metadata.
  • Line (oklch(92% 0.006 255)): structural dividers.

Color rule

Use blue for links, focus, and selected states. Keep actions on the current surface with restrained outlines or text treatment.

Theme contract

Every page offers System, Light, and Dark. System follows prefers-color-scheme; an explicit choice is stored locally as mdbase:theme and applied before the stylesheet to prevent a flash. Components consume canvas, surface, surface-subtle, text, text-soft, text-muted, border, border-strong, accent, success, and danger roles rather than fixed palette values. Dark mode uses blue-black surfaces, not pure black, with lighter syntax and link colors for long-form reading.

3. Typography

Display and body font: Atkinson Hyperlegible, with Segoe UI fallback.

Label and code font: Azeret Mono, with SFMono-Regular and Cascadia Code fallback.

Atkinson Hyperlegible provides clarity across large headlines and long specification prose. Azeret Mono identifies navigation, versions, file paths, labels, and code.

Hierarchy

  • Display (700, up to 6rem desktop / 3.2rem mobile, 0.96): landing hero.
  • Section headline (700, up to 2.5rem, 1.12): landing and runtime sections.
  • Reader title (700, up to 3.5rem, 1.12): specification page title.
  • Body (400, 1.04rem, 1.66): prose with a 72ch maximum measure.
  • Label (500, 0.7rem to 0.76rem): navigation, metadata, section kickers, and buttons.

Typography rule

Use the sans face for prose and hierarchy. Reserve mono for structural information and literal technical content.

4. Identity

The shared mdbase Frontmatter mark precedes the live-type mdbase wordmark in every site header. Its segmented fences and key-value rows connect the specification identity directly to the files it defines. Ink follows the current theme; the first value uses the blue accent.

Render the mark at 20px in site navigation. It identifies mdbase only and does not replace version, conformance, or runtime-profile labels. Use the dedicated favicon asset for browser metadata.

5. Layout and elevation

The system is flat. One-pixel rules establish sections, rows, navigation boundaries, and code surfaces. Page content uses a 64rem maximum width. Landing sections add an 8rem metadata gutter on wide screens, then collapse to a single column below 64rem.

Whitespace carries hierarchy at page scale. Within resource lists and the specification reader, spacing becomes denser to support scanning.

6. Components

  • Primary button: current surface, quiet neutral border, ink text, 3px radius, 44px minimum height.
  • Secondary button: the same light structure with quieter border emphasis.
  • Resource row: top rule with label, name, description, capabilities, and link aligned in columns.
  • Code specimen: paper-code surface, fine border, compact mono text, and restrained syntax colors.
  • Spec sidebar link: blue text with a quiet underline for the selected section.
  • Tablist: text labels with a blue underline for the selected tab and keyboard arrow support.

7. Usage principles

  • Lead pages with literal descriptions of the specification or runtime profile.
  • Show real collection structures, type definitions, records, and queries.
  • Keep reading measures stable and maintain WCAG AA contrast.
  • Use cards only when content needs a true contained object boundary.
  • Keep hover and focus treatments visible, quiet, and consistent.
  • Preserve practical navigation on small screens with an off-canvas specification index.