# design-tokens/community-group architecture

> Architecture diagram of the GitHub repository design-tokens/community-group, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/design-tokens/community-group
- Repository: https://github.com/design-tokens/community-group

## Overview

This repository is the DTCG community specification and its supporting schema package and public website. The main user-facing workflow is reading published technical reports; engineers can also load example design-token files in the website playground, select a preset and modifier context, edit JSON, and inspect the resolved-token diff. The graph preserves the documented format, color, and resolver specification areas. Source excerpts chiefly show the playground; report publishing and schema behavior are represented only where the tree or README supports them, so their internal links are intentionally limited.

Main entry points: [`www/src/components/TokenPlayground/index.tsx`](https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/index.tsx) (Playground app), [`technical-reports`](https://github.com/design-tokens/community-group/tree/main/technical-reports) (Technical reports), [`www/src/components/TokenPlayground/components/resolver-result.tsx`](https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/components/resolver-result.tsx) (Resolved token diff), [`www/src/components/TokenPlayground/lib/create-resolver.ts`](https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/lib/create-resolver.ts) (Demo resolver)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_spec["Specifications"]
  node_reports["Technical reports"]
  node_format_spec["Format specification"]
  node_color_spec["Color specification"]
  node_resolver_spec["Resolver specification"]
end

subgraph group_web["Public website"]
  node_website["DTCG website"]
  node_published_reports["Published reports"]
  node_report_content["Report content"]
end

subgraph group_play["Token playground"]
  node_playground["Playground app<br/>[index.tsx]"]
  node_preset_files["Example token files"]
  node_file_navigation["File navigation<br/>[files.tsx]"]
  node_editor["JSON editor<br/>[editor.tsx]"]
  node_monaco_options["Editor options<br/>[monaco.ts]"]
  node_resolver_engine["Demo resolver<br/>[create-resolver.ts]"]
  node_merge_utils["Token utilities<br/>[utils.ts]"]
  node_result_view["Resolved token diff"]
  node_context_select["Context selector<br/>[select.tsx]"]
end

subgraph group_schema["Schema package"]
  node_schemas["Format schemas<br/>[format]"]
  node_resolver_schema["Resolver schemas<br/>[resolver]"]
end

node_community(("DTCG community"))
node_schema_users(("Tool implementers"))
node_playground_users(("Playground users"))

node_community -->|"authors"| node_reports
node_reports -->|"documents"| node_format_spec
node_reports -->|"documents"| node_color_spec
node_reports -->|"documents"| node_resolver_spec
node_schema_users -.->|"validate tokens"| node_schemas
node_schema_users -.->|"validate resolver"| node_resolver_schema
node_website -.->|"presents"| node_published_reports
node_published_reports -.->|"publishes"| node_report_content
node_playground_users -->|"use"| node_playground
node_playground -->|"loads preset"| node_preset_files
node_playground -->|"renders files"| node_file_navigation
node_playground -->|"renders editor"| node_editor
node_editor -->|"uses options"| node_monaco_options
node_playground -->|"builds resolver"| node_resolver_engine
node_resolver_engine -->|"merges tokens"| node_merge_utils
node_playground -->|"renders result"| node_result_view
node_result_view -->|"applies inputs"| node_resolver_engine
node_result_view -->|"flattens and diffs"| node_merge_utils
node_result_view -->|"renders controls"| node_context_select

click node_reports "https://github.com/design-tokens/community-group/tree/main/technical-reports"
click node_format_spec "https://github.com/design-tokens/community-group/tree/main/technical-reports/format"
click node_color_spec "https://github.com/design-tokens/community-group/tree/main/technical-reports/color"
click node_resolver_spec "https://github.com/design-tokens/community-group/tree/main/technical-reports/resolver"
click node_schemas "https://github.com/design-tokens/community-group/tree/main/schemas/src/2025.10/format"
click node_resolver_schema "https://github.com/design-tokens/community-group/tree/main/schemas/src/2025.10/resolver"
click node_website "https://github.com/design-tokens/community-group/tree/main/www/src"
click node_published_reports "https://github.com/design-tokens/community-group/tree/main/www/public/TR"
click node_report_content "https://github.com/design-tokens/community-group/tree/main/technical-reports"
click node_playground "https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/index.tsx"
click node_preset_files "https://github.com/design-tokens/community-group/tree/main/www/src/components/TokenPlayground/lib/examples"
click node_file_navigation "https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/components/files.tsx"
click node_editor "https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/components/editor.tsx"
click node_monaco_options "https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/lib/monaco.ts"
click node_resolver_engine "https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/lib/create-resolver.ts"
click node_merge_utils "https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/lib/utils.ts"
click node_result_view "https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/components/resolver-result.tsx"
click node_context_select "https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/components/select.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_reports,node_format_spec,node_color_spec,node_resolver_spec,node_playground_users toneBlue
class node_website,node_published_reports,node_report_content toneAmber
class node_playground,node_preset_files,node_file_navigation,node_editor,node_monaco_options,node_resolver_engine,node_merge_utils,node_result_view,node_context_select toneMint
class node_schemas,node_resolver_schema toneRose
class node_community,node_schema_users toneIndigo
```

## Components

### Specifications

- [Technical reports](https://github.com/design-tokens/community-group/tree/main/technical-reports): `technical-reports`
- [Format specification](https://github.com/design-tokens/community-group/tree/main/technical-reports/format): `technical-reports/format`
- [Color specification](https://github.com/design-tokens/community-group/tree/main/technical-reports/color): `technical-reports/color`
- [Resolver specification](https://github.com/design-tokens/community-group/tree/main/technical-reports/resolver): `technical-reports/resolver`

### Public website

- [DTCG website](https://github.com/design-tokens/community-group/tree/main/www/src): `www/src`
- [Published reports](https://github.com/design-tokens/community-group/tree/main/www/public/TR): `www/public/TR`
- [Report content](https://github.com/design-tokens/community-group/tree/main/technical-reports): `technical-reports`

### Token playground

- [Playground app](https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/index.tsx): `www/src/components/TokenPlayground/index.tsx`
- [Example token files](https://github.com/design-tokens/community-group/tree/main/www/src/components/TokenPlayground/lib/examples): `www/src/components/TokenPlayground/lib/examples`
- [File navigation](https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/components/files.tsx): `www/src/components/TokenPlayground/components/files.tsx`
- [JSON editor](https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/components/editor.tsx): `www/src/components/TokenPlayground/components/editor.tsx`
- [Editor options](https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/lib/monaco.ts): `www/src/components/TokenPlayground/lib/monaco.ts`
- [Demo resolver](https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/lib/create-resolver.ts): `www/src/components/TokenPlayground/lib/create-resolver.ts`
- [Token utilities](https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/lib/utils.ts): `www/src/components/TokenPlayground/lib/utils.ts`
- [Resolved token diff](https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/components/resolver-result.tsx): `www/src/components/TokenPlayground/components/resolver-result.tsx`
- [Context selector](https://github.com/design-tokens/community-group/blob/main/www/src/components/TokenPlayground/components/select.tsx): `www/src/components/TokenPlayground/components/select.tsx`

### Schema package

- [Format schemas](https://github.com/design-tokens/community-group/tree/main/schemas/src/2025.10/format): `schemas/src/2025.10/format`
- [Resolver schemas](https://github.com/design-tokens/community-group/tree/main/schemas/src/2025.10/resolver): `schemas/src/2025.10/resolver`

### Other components

- **DTCG community**
- **Tool implementers**
- **Playground users**

## Connections

- DTCG community → Technical reports: authors (evidence: `README.md`)
- Technical reports → Format specification: documents (evidence: `README.md`)
- Technical reports → Color specification: documents (evidence: `README.md`)
- Technical reports → Resolver specification: documents (evidence: `README.md`)
- Tool implementers → Format schemas: validate tokens
- Tool implementers → Resolver schemas: validate resolver
- DTCG website → Published reports: presents
- Published reports → Report content: publishes
- Playground users → Playground app: use (evidence: `www/src/components/TokenPlayground/index.tsx`)
- Playground app → Example token files: loads preset (evidence: `www/src/components/TokenPlayground/index.tsx`)
- Playground app → File navigation: renders files (evidence: `www/src/components/TokenPlayground/index.tsx`)
- Playground app → JSON editor: renders editor (evidence: `www/src/components/TokenPlayground/index.tsx`)
- JSON editor → Editor options: uses options (evidence: `www/src/components/TokenPlayground/components/editor.tsx`)
- Playground app → Demo resolver: builds resolver (evidence: `www/src/components/TokenPlayground/index.tsx`)
- Demo resolver → Token utilities: merges tokens (evidence: `www/src/components/TokenPlayground/lib/create-resolver.ts`)
- Playground app → Resolved token diff: renders result (evidence: `www/src/components/TokenPlayground/index.tsx`)
- Resolved token diff → Demo resolver: applies inputs (evidence: `www/src/components/TokenPlayground/components/resolver-result.tsx`)
- Resolved token diff → Token utilities: flattens and diffs (evidence: `www/src/components/TokenPlayground/components/resolver-result.tsx`)
- Resolved token diff → Context selector: renders controls (evidence: `www/src/components/TokenPlayground/components/resolver-result.tsx`)
