Markdown Editor

Design System Documentation Template

Principles, consumers, tokens in Design Tokens Format 2025.10, themes, components, WCAG 2.2 AA contract, SemVer and deprecation, governance RACI

डिज़ाइन और UXमानकDesign Tokens Format Module 2025.10; SemVer 2.0.0; WCAG 2.2system
एडिटर में खोलें.md डाउनलोड करें

उपयोग कैसे करें: Use it when several designers, products or repositories share components. Fill the tokens first, then components with states and keyboard behaviour, then the accessibility contract. The main pitfall is documenting how a component looks but not its states, accessible name and keyboard behaviour.

प्रीव्यू

Design System: [name]

The contract between design and code: design tokens, components, the rules for composing them, the accessibility contract each component must meet, and how the system is versioned, governed and changed. Tokens follow the Design Tokens Format Module 2025.10 (Design Tokens Community Group, Final Community Group Report, 28 October 2025; not a W3C Standard). Accessibility targets WCAG 2.2 Level AA (also ISO/IEC 40500:2025). Releases follow Semantic Versioning 2.0.0. Replace every [bracketed] value and every row marked Example. Worked examples use Heron, the fictional design system of Quillmere Library.

Document control

FieldValue
Document ID[DS-001]
System[Example: Heron]
Current release[Example: 2.3.0]
Status[Draft / Adopted / Deprecated]
Owner[@design-system-lead]
Approvers / reviewers[@engineering-lead], [@accessibility-lead], [@brand-lead]
Last updatedYYYY-MM-DD
Classification[Internal / Public]
Token source[Example: repo heron/tokens/*.tokens.json]
Packages[Example: @heron/tokens, @heron/react]

Approvals

RoleNameDecisionDate
Design system lead[@name][Approved]YYYY-MM-DD
Engineering lead[@name][Decision]YYYY-MM-DD
Accessibility lead[@name][Decision]YYYY-MM-DD

Revision history

VersionDateAuthorChange
0.1YYYY-MM-DD[@name]First draft
1.0YYYY-MM-DD[@name]Adopted

1. Principles

  1. [Example: Accessible by default: every Stable component meets section 5 without extra work.]
  2. [Example: Compose, do not fork: extend through props and tokens, not copied components.]
  3. [Example: Consistency over novelty: a new pattern needs evidence that existing ones fail.]

2. Scope and consumers

ConsumerPlatformPackage versionContact
[Example: Larkspur app]iOS, Android (React Native)2.3.x[@app-lead]
[Example: Catalogue website]Web (React)2.2.x[@web-lead]

3. Design tokens

Tokens are stored as JSON in the Design Tokens Format Module 2025.10: each token has a $value and a $type, an optional $description and $deprecated, and aliases use curly braces such as {color.base.blue.600}. Dimensions use px or rem.

{
  "color": {
    "base": {
      "blue": {
        "600": { "$type": "color", "$value": { "colorSpace": "srgb", "components": [0.11, 0.33, 0.69], "hex": "#1c54b0" } }
      }
    },
    "action": {
      "primary": { "$type": "color", "$value": "{color.base.blue.600}", "$description": "Primary buttons and links" }
    }
  },
  "space": {
    "md": { "$type": "dimension", "$value": { "value": 16, "unit": "px" } }
  }
}
TokenTierLight valueDark valueUse
color.action.primary (Example)Semantic{color.base.blue.600}{color.base.blue.300}Primary actions
color.surface.default (Example)Semantic{color.base.grey.0}{color.base.grey.900}Page background
color.text.default (Example)Semantic{color.base.grey.900}{color.base.grey.50}Body text
space.md (Example)Base16 px16 pxDefault gap
radius.md (Example)Base8 px8 pxCards, inputs
typography.body (Example)Composite16 px / 1.5, regularsameParagraphs

3.1 Themes and modes

ThemeOverridesContrast checkedNotes
Light (Example)Default valuesYes, YYYY-MM-DD
Dark (Example)Semantic colour tokensYes, YYYY-MM-DDFollows the OS setting, user can override
High contrast (Example)Text, border, focus tokensPlanned

4. Components

IDComponentStatusSinceSpecNotes
CMP-001 (Example)ButtonStable1.0.0[link]Variants: solid, soft, ghost
CMP-002 (Example)Text fieldStable1.0.0[link]With label, hint, error
CMP-003 (Example)Sortable listBeta2.3.0[link]Drag plus move buttons
CMP-004 (Example)Legacy modalDeprecated1.0.0[link]Use Dialog, removal in 3.0.0

4.1 Component specification (repeat per component)

  • Purpose and when not to use it.
  • Anatomy: [parts, for example container, label, icon, focus ring].
  • Variants and sizes: [list], with the tokens each uses.
  • States: default, hover, focus, active, disabled, loading, error.
  • Keyboard: [Example: Enter and Space activate; Tab moves focus].
  • Accessible name and role: [Example: native button; icon-only buttons need a label].
  • Do: [usage rule]. Do not: [anti-pattern].

5. Accessibility contract

IDRequirementWCAG 2.2 SC
ACC-001Text contrast at least 4.5:1 (3:1 for large text) in every theme1.4.3 (AA)
ACC-002Borders, focus indicators and state colours at least 3:11.4.11 (AA)
ACC-003Visible focus indicator on every interactive element2.4.7 (AA)
ACC-004Focused element not entirely hidden by sticky or floating components2.4.11 (AA)
ACC-005Full keyboard operation, no keyboard trap2.1.1, 2.1.2 (A)
ACC-006Any drag interaction has a single-pointer alternative2.5.7 (AA)
ACC-007Pointer targets at least 24 by 24 CSS px or meet the spacing exception2.5.8 (AA)
ACC-008Visible label text included in the accessible name2.5.3 (A)
ACC-009Correct name, role, state and value exposed4.1.2 (A)
ACC-010Status messages announced without moving focus4.1.3 (AA)
ACC-011Motion can be reduced (honour prefers-reduced-motion), good practice2.3.3 (AAA)

6. Versioning and deprecation

Releases follow Semantic Versioning 2.0.0:

ChangeVersion bumpExample
Removing or renaming a token, component or prop; changing default behaviourMajor2.3.0 to 3.0.0
New component, token or prop; marking something deprecatedMinor2.3.0 to 2.4.0
Bug fix with no API changePatch2.3.0 to 2.3.1

Deprecation policy: mark the item deprecated (tokens with $deprecated, components in the changelog and in code warnings), keep it for at least [Example: one minor release and 90 days], publish a migration note, then remove it in the next major release.

7. Governance and contribution

ActivityDesign system teamProduct teamsAccessibility leadEngineering lead
Propose a componentCA, RCI
Approve for BetaA, RCCC
Promote to StableA, RCC (must pass section 5)C
Release and changelogA, RIIC
DeprecateA, RCIC

Proposal route: [Example: an RFC in the design-system repository using dev/rfc, reviewed in the fortnightly design system forum].

8. Changelog and related templates

VersionDateChanges
2.3.0 (Example)YYYY-MM-DDAdded Sortable list (Beta); deprecated Legacy modal
2.0.0 (Example)YYYY-MM-DDTokens migrated to Design Tokens Format 2025.10; renamed primary to color.action.primary

Related: design/accessibility-checklist, design/design-critique, marketing/brand-guidelines, dev/changelog, dev/rfc, dev/adr.

Standard and licence note

Based on the Design Tokens Format Module 2025.10 (Design Tokens Community Group, Final Community Group Report, 28 October 2025, designtokens.org/TR/2025.10/format/), Semantic Versioning 2.0.0 (semver.org) and WCAG 2.2 (W3C Recommendation, also ISO/IEC 40500:2025). Property names and criterion numbers are cited; the text is original. Check the current versions, because a newer token format draft was in preparation in 2026. Template licence: MIT.

संबंधित टेम्पलेट