How bravokiloecho/color-combinations-sanzo-wada-public works
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: page.tsx Home page · useGlobalState.ts Global UI state · ModalIndex.tsx Combination index · TheNav.tsx Mode navigation
Components 20
App shell
- Home page
src/app/page.tsx - Route logic
src/components/RouterLogic.tsx - Site header
src/components/TheHeader.tsx - Mode navigation
src/components/TheNav.tsx - About modal
src/components/ModalAbout.tsx
Combination browsing
- Combination content
src/components/TheContent.tsx - Combination data
src/lib/getCombinations.ts - Combination block
src/components/CombinationBlock.tsx - Combination link
src/components/CombinationLink.tsx - Combination preview
src/components/CombinationPreview.tsx - Related combinations
src/components/CombinationsRelated.tsx - Related item
src/components/CombinationsRelatedItem.tsx - Combination index
src/components/ModalIndex.tsx
Color display
- Color information
src/components/CombinationColorInfo.tsx - Color value
src/components/ColorValue.tsx - Color utilities
src/lib/colorUtils.ts - Mode selector
src/components/ModeButton.tsx
Client state
- Global UI state
src/state/useGlobalState.ts - Modal scroll lock
src/hooks/useToggleBodyScroll.ts
Other components
- Visitor
Connections 30
- Visitor → Home page: opens
README.md - Home page → Combination data: loads combinations
src/app/page.tsx - Home page → Site header: renders
src/app/page.tsx - Home page → Mode navigation: renders
src/app/page.tsx - Home page → Combination content: renders
src/app/page.tsx - Home page → Combination index: renders
src/app/page.tsx - Home page → About modal: renders
src/app/page.tsx - Combination content → Combination block: renders
src/components/TheContent.tsx - Combination block → Color information: renders
src/components/CombinationBlock.tsx - Combination block → Global UI state: reads mode
src/components/CombinationBlock.tsx - Color information → Color value: renders
src/components/CombinationColorInfo.tsx - Color information → Related combinations: renders
src/components/CombinationColorInfo.tsx - Color value → Color utilities: formats values
src/components/ColorValue.tsx - Related combinations → Related item: renders
src/components/CombinationsRelated.tsx - Related combinations → Global UI state: reads state
src/components/CombinationsRelated.tsx - Related item → Combination link: renders
src/components/CombinationsRelatedItem.tsx - Related item → Combination preview: renders
src/components/CombinationsRelatedItem.tsx - Combination preview → Combination data: loads colors
src/components/CombinationPreview.tsx - Combination index → Combination link: renders
src/components/ModalIndex.tsx - Combination index → Combination preview: renders
src/components/ModalIndex.tsx - Combination index → Color utilities: filters combinations
src/components/ModalIndex.tsx - Combination index → Modal scroll lock: locks scrolling
src/components/ModalIndex.tsx - Combination index → Global UI state: reads and updates
src/components/ModalIndex.tsx - About modal → Modal scroll lock: locks scrolling
src/components/ModalAbout.tsx - About modal → Global UI state: reads state
src/components/ModalAbout.tsx - Mode navigation → Global UI state: reads state
src/components/TheNav.tsx - Mode navigation → Mode selector: renders
src/components/TheNav.tsx - Route logic → Global UI state: sets route
src/components/RouterLogic.tsx - Modal scroll lock → Global UI state: reads device state
src/hooks/useToggleBodyScroll.ts - Global UI state → Color utilities: defines mode types