# bravokiloecho/color-combinations-sanzo-wada-public architecture

> Architecture diagram of the GitHub repository bravokiloecho/color-combinations-sanzo-wada-public, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bravokiloecho/color-combinations-sanzo-wada-public
- Repository: https://github.com/bravokiloecho/color-combinations-sanzo-wada-public

## Overview

This is an interactive web dictionary of Sanzo Wada’s curated color combinations. The home-page workflow assembles combination data, displays it as color blocks, and lets users inspect color values, related combinations, and an index. Navigation controls select display modes; modals provide the index and about information. Shared client state tracks those choices and route/device state. The graph follows documented imports and sampled calls; unsampled capabilities are included only where the README or source index supports them.

Main entry points: [`src/app/page.tsx`](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/app/page.tsx) (Home page), [`src/state/useGlobalState.ts`](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/state/useGlobalState.ts) (Global UI state), [`src/components/ModalIndex.tsx`](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/ModalIndex.tsx) (Combination index), [`src/components/TheNav.tsx`](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/TheNav.tsx) (Mode navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_home["Home page<br/>[page.tsx]"]
  node_router["Route logic<br/>[RouterLogic.tsx]"]
  node_header["Site header<br/>[TheHeader.tsx]"]
  node_navigation["Mode navigation<br/>[TheNav.tsx]"]
  node_aboutmodal["About modal<br/>[ModalAbout.tsx]"]
end

subgraph group_browse["Combination browsing"]
  node_content["Combination content<br/>[TheContent.tsx]"]
  node_data["Combination data<br/>[getCombinations.ts]"]
  node_block["Combination block"]
  node_link["Combination link"]
  node_preview["Combination preview"]
  node_related["Related combinations"]
  node_relateditem["Related item"]
  node_indexmodal["Combination index<br/>[ModalIndex.tsx]"]
end

subgraph group_display["Color display"]
  node_colorinfo["Color information"]
  node_colorvalue["Color value<br/>[ColorValue.tsx]"]
  node_colorutils["Color utilities<br/>[colorUtils.ts]"]
  node_modebutton["Mode selector<br/>[ModeButton.tsx]"]
end

subgraph group_state["Client state"]
  node_globalstate["Global UI state<br/>[useGlobalState.ts]"]
  node_scrollhook["Modal scroll lock"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"loads combinations"| node_data
node_home -->|"renders"| node_header
node_home -->|"renders"| node_navigation
node_home -->|"renders"| node_content
node_home -->|"renders"| node_indexmodal
node_home -->|"renders"| node_aboutmodal
node_content -->|"renders"| node_block
node_block -->|"renders"| node_colorinfo
node_block -->|"reads mode"| node_globalstate
node_colorinfo -->|"renders"| node_colorvalue
node_colorinfo -->|"renders"| node_related
node_colorvalue -->|"formats values"| node_colorutils
node_related -->|"renders"| node_relateditem
node_related -->|"reads state"| node_globalstate
node_relateditem -->|"renders"| node_link
node_relateditem -->|"renders"| node_preview
node_preview -->|"loads colors"| node_data
node_indexmodal -->|"renders"| node_link
node_indexmodal -->|"renders"| node_preview
node_indexmodal -->|"filters combinations"| node_colorutils
node_indexmodal -->|"locks scrolling"| node_scrollhook
node_indexmodal -->|"reads and updates"| node_globalstate
node_aboutmodal -->|"locks scrolling"| node_scrollhook
node_aboutmodal -->|"reads state"| node_globalstate
node_navigation -->|"reads state"| node_globalstate
node_navigation -->|"renders"| node_modebutton
node_router -->|"sets route"| node_globalstate
node_scrollhook -->|"reads device state"| node_globalstate
node_globalstate -.->|"defines mode types"| node_colorutils

click node_home "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/app/page.tsx"
click node_router "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/RouterLogic.tsx"
click node_header "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/TheHeader.tsx"
click node_navigation "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/TheNav.tsx"
click node_content "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/TheContent.tsx"
click node_data "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/lib/getCombinations.ts"
click node_block "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/CombinationBlock.tsx"
click node_link "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/CombinationLink.tsx"
click node_preview "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/CombinationPreview.tsx"
click node_related "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/CombinationsRelated.tsx"
click node_relateditem "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/CombinationsRelatedItem.tsx"
click node_indexmodal "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/ModalIndex.tsx"
click node_aboutmodal "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/ModalAbout.tsx"
click node_colorinfo "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/CombinationColorInfo.tsx"
click node_colorvalue "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/ColorValue.tsx"
click node_colorutils "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/lib/colorUtils.ts"
click node_modebutton "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/ModeButton.tsx"
click node_globalstate "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/state/useGlobalState.ts"
click node_scrollhook "https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/hooks/useToggleBodyScroll.ts"

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_home,node_router,node_header,node_navigation,node_aboutmodal toneBlue
class node_content,node_data,node_block,node_link,node_preview,node_related,node_relateditem,node_indexmodal toneAmber
class node_colorinfo,node_colorvalue,node_colorutils,node_modebutton toneMint
class node_globalstate,node_scrollhook toneRose
class node_visitor toneIndigo
```

## Components

### App shell

- [Home page](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Route logic](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/RouterLogic.tsx): `src/components/RouterLogic.tsx`
- [Site header](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/TheHeader.tsx): `src/components/TheHeader.tsx`
- [Mode navigation](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/TheNav.tsx): `src/components/TheNav.tsx`
- [About modal](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/ModalAbout.tsx): `src/components/ModalAbout.tsx`

### Combination browsing

- [Combination content](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/TheContent.tsx): `src/components/TheContent.tsx`
- [Combination data](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/lib/getCombinations.ts): `src/lib/getCombinations.ts`
- [Combination block](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/CombinationBlock.tsx): `src/components/CombinationBlock.tsx`
- [Combination link](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/CombinationLink.tsx): `src/components/CombinationLink.tsx`
- [Combination preview](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/CombinationPreview.tsx): `src/components/CombinationPreview.tsx`
- [Related combinations](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/CombinationsRelated.tsx): `src/components/CombinationsRelated.tsx`
- [Related item](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/CombinationsRelatedItem.tsx): `src/components/CombinationsRelatedItem.tsx`
- [Combination index](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/ModalIndex.tsx): `src/components/ModalIndex.tsx`

### Color display

- [Color information](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/CombinationColorInfo.tsx): `src/components/CombinationColorInfo.tsx`
- [Color value](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/ColorValue.tsx): `src/components/ColorValue.tsx`
- [Color utilities](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/lib/colorUtils.ts): `src/lib/colorUtils.ts`
- [Mode selector](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/components/ModeButton.tsx): `src/components/ModeButton.tsx`

### Client state

- [Global UI state](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/state/useGlobalState.ts): `src/state/useGlobalState.ts`
- [Modal scroll lock](https://github.com/bravokiloecho/color-combinations-sanzo-wada-public/blob/main/src/hooks/useToggleBodyScroll.ts): `src/hooks/useToggleBodyScroll.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: opens (evidence: `README.md`)
- Home page → Combination data: loads combinations (evidence: `src/app/page.tsx`)
- Home page → Site header: renders (evidence: `src/app/page.tsx`)
- Home page → Mode navigation: renders (evidence: `src/app/page.tsx`)
- Home page → Combination content: renders (evidence: `src/app/page.tsx`)
- Home page → Combination index: renders (evidence: `src/app/page.tsx`)
- Home page → About modal: renders (evidence: `src/app/page.tsx`)
- Combination content → Combination block: renders (evidence: `src/components/TheContent.tsx`)
- Combination block → Color information: renders (evidence: `src/components/CombinationBlock.tsx`)
- Combination block → Global UI state: reads mode (evidence: `src/components/CombinationBlock.tsx`)
- Color information → Color value: renders (evidence: `src/components/CombinationColorInfo.tsx`)
- Color information → Related combinations: renders (evidence: `src/components/CombinationColorInfo.tsx`)
- Color value → Color utilities: formats values (evidence: `src/components/ColorValue.tsx`)
- Related combinations → Related item: renders (evidence: `src/components/CombinationsRelated.tsx`)
- Related combinations → Global UI state: reads state (evidence: `src/components/CombinationsRelated.tsx`)
- Related item → Combination link: renders (evidence: `src/components/CombinationsRelatedItem.tsx`)
- Related item → Combination preview: renders (evidence: `src/components/CombinationsRelatedItem.tsx`)
- Combination preview → Combination data: loads colors (evidence: `src/components/CombinationPreview.tsx`)
- Combination index → Combination link: renders (evidence: `src/components/ModalIndex.tsx`)
- Combination index → Combination preview: renders (evidence: `src/components/ModalIndex.tsx`)
- Combination index → Color utilities: filters combinations (evidence: `src/components/ModalIndex.tsx`)
- Combination index → Modal scroll lock: locks scrolling (evidence: `src/components/ModalIndex.tsx`)
- Combination index → Global UI state: reads and updates (evidence: `src/components/ModalIndex.tsx`)
- About modal → Modal scroll lock: locks scrolling (evidence: `src/components/ModalAbout.tsx`)
- About modal → Global UI state: reads state (evidence: `src/components/ModalAbout.tsx`)
- Mode navigation → Global UI state: reads state (evidence: `src/components/TheNav.tsx`)
- Mode navigation → Mode selector: renders (evidence: `src/components/TheNav.tsx`)
- Route logic → Global UI state: sets route (evidence: `src/components/RouterLogic.tsx`)
- Modal scroll lock → Global UI state: reads device state (evidence: `src/hooks/useToggleBodyScroll.ts`)
- Global UI state → Color utilities: defines mode types
