# laniuscollurio-spb/blog-customizer architecture

> Architecture diagram of the GitHub repository laniuscollurio-spb/blog-customizer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/laniuscollurio-spb/blog-customizer
- Repository: https://github.com/laniuscollurio-spb/blog-customizer

## Overview

This is a React article-styling interface: the intended workflow is to open a settings sidebar, edit article appearance, then apply or reset the choices. The README documents deferred application and outside-click closing, but the sampled form is a stub (fixed closed arrow and no controls or handlers), so those functional links are documented intent rather than demonstrated runtime behavior. The app currently supplies default CSS variables and renders the form beside the article. The graph includes the documented settings-control capabilities; unsampled details are not inferred.

Main entry points: [`src/components/article-params-form/ArticleParamsForm.tsx`](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/components/article-params-form/ArticleParamsForm.tsx) (Settings sidebar), [`src/ui/select/Select.tsx`](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/select/Select.tsx) (Select control), [`src/components/app/app.tsx`](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/components/app/app.tsx) (App shell), [`src/components/article/Article.tsx`](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/components/article/Article.tsx) (Article content)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_entrypoint["React entry<br/>[main.tsx]"]
  node_app["App shell<br/>[app.tsx]"]
end

subgraph group_content["Article display"]
  node_article["Article content<br/>[Article.tsx]"]
  node_text["Text renderer<br/>[Text.tsx]"]
end

subgraph group_settings["Appearance settings"]
  node_defaults["Style defaults<br/>[articleProps.ts]"]
  node_form["Settings sidebar"]
end

subgraph group_controls["Reusable controls"]
  node_arrow["Sidebar toggle<br/>[ArrowButton.tsx]"]
  node_button["Action buttons<br/>[Button.tsx]"]
  node_select["Select control<br/>[Select.tsx]"]
  node_select_option["Select option<br/>[Option.tsx]"]
  node_outside_click["Outside-click hook"]
  node_select_enter["Select keyboard hook<br/>[useEnterSubmit.ts]"]
  node_font_guard["Font-class guard"]
  node_radio["Radio group<br/>[RadioGroup.tsx]"]
  node_radio_option["Radio option<br/>[Option.tsx]"]
  node_radio_enter["Radio keyboard hook<br/>[useEnterSubmit.ts]"]
end

node_user(("Reader"))

node_user -->|"opens app"| node_entrypoint
node_entrypoint -->|"renders"| node_app
node_app -->|"reads defaults"| node_defaults
node_app -->|"renders settings"| node_form
node_app -->|"renders article"| node_article
node_user -.->|"edits appearance"| node_form
node_form -.->|"applies styles"| node_article
node_form -->|"renders toggle"| node_arrow
node_form -->|"renders actions"| node_button
node_article -->|"renders text"| node_text
node_select -->|"renders options"| node_select_option
node_select -->|"uses hook"| node_outside_click
node_select -->|"uses hook"| node_select_enter
node_select -->|"checks font class"| node_font_guard
node_radio -->|"renders options"| node_radio_option
node_radio_option -->|"uses hook"| node_radio_enter
node_form -.->|"offers selection"| node_select
node_form -.->|"offers choices"| node_radio

click node_entrypoint "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/main.tsx"
click node_app "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/components/app/app.tsx"
click node_defaults "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/constants/articleProps.ts"
click node_form "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/components/article-params-form/ArticleParamsForm.tsx"
click node_article "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/components/article/Article.tsx"
click node_text "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/text/Text.tsx"
click node_arrow "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/arrow-button/ArrowButton.tsx"
click node_button "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/button/Button.tsx"
click node_select "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/select/Select.tsx"
click node_select_option "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/select/Option.tsx"
click node_outside_click "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/select/hooks/useOutsideClickClose.ts"
click node_select_enter "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/select/hooks/useEnterSubmit.ts"
click node_font_guard "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/select/helpers/isFontFamilyClass.ts"
click node_radio "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/radio-group/RadioGroup.tsx"
click node_radio_option "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/radio-group/Option.tsx"
click node_radio_enter "https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/radio-group/hooks/useEnterSubmit.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_entrypoint,node_app toneBlue
class node_article,node_text toneAmber
class node_defaults,node_form toneMint
class node_arrow,node_button,node_select,node_select_option,node_outside_click,node_select_enter,node_font_guard,node_radio,node_radio_option,node_radio_enter toneRose
class node_user toneIndigo
```

## Components

### Application entry

- [React entry](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/main.tsx): `src/main.tsx`
- [App shell](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/components/app/app.tsx): `src/components/app/app.tsx`

### Article display

- [Article content](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/components/article/Article.tsx): `src/components/article/Article.tsx`
- [Text renderer](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/text/Text.tsx): `src/ui/text/Text.tsx`

### Appearance settings

- [Style defaults](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/constants/articleProps.ts): `src/constants/articleProps.ts`
- [Settings sidebar](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/components/article-params-form/ArticleParamsForm.tsx): `src/components/article-params-form/ArticleParamsForm.tsx`

### Reusable controls

- [Sidebar toggle](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/arrow-button/ArrowButton.tsx): `src/ui/arrow-button/ArrowButton.tsx`
- [Action buttons](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/button/Button.tsx): `src/ui/button/Button.tsx`
- [Select control](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/select/Select.tsx): `src/ui/select/Select.tsx`
- [Select option](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/select/Option.tsx): `src/ui/select/Option.tsx`
- [Outside-click hook](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/select/hooks/useOutsideClickClose.ts): `src/ui/select/hooks/useOutsideClickClose.ts`
- [Select keyboard hook](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/select/hooks/useEnterSubmit.ts): `src/ui/select/hooks/useEnterSubmit.ts`
- [Font-class guard](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/select/helpers/isFontFamilyClass.ts): `src/ui/select/helpers/isFontFamilyClass.ts`
- [Radio group](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/radio-group/RadioGroup.tsx): `src/ui/radio-group/RadioGroup.tsx`
- [Radio option](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/radio-group/Option.tsx): `src/ui/radio-group/Option.tsx`
- [Radio keyboard hook](https://github.com/laniuscollurio-spb/blog-customizer/blob/main/src/ui/radio-group/hooks/useEnterSubmit.ts): `src/ui/radio-group/hooks/useEnterSubmit.ts`

### Other components

- **Reader**

## Connections

- Reader → React entry: opens app (evidence: `src/main.tsx`)
- React entry → App shell: renders (evidence: `src/main.tsx`)
- App shell → Style defaults: reads defaults (evidence: `src/components/app/app.tsx`)
- App shell → Settings sidebar: renders settings (evidence: `src/components/app/app.tsx`)
- App shell → Article content: renders article (evidence: `src/components/app/app.tsx`)
- Reader → Settings sidebar: edits appearance (evidence: `README.md`)
- Settings sidebar → Article content: applies styles (evidence: `README.md`)
- Settings sidebar → Sidebar toggle: renders toggle (evidence: `src/components/article-params-form/ArticleParamsForm.tsx`)
- Settings sidebar → Action buttons: renders actions (evidence: `src/components/article-params-form/ArticleParamsForm.tsx`)
- Article content → Text renderer: renders text (evidence: `src/components/article/Article.tsx`)
- Select control → Select option: renders options (evidence: `src/ui/select/Select.tsx`)
- Select control → Outside-click hook: uses hook (evidence: `src/ui/select/Select.tsx`)
- Select control → Select keyboard hook: uses hook (evidence: `src/ui/select/Select.tsx`)
- Select control → Font-class guard: checks font class (evidence: `src/ui/select/Select.tsx`)
- Radio group → Radio option: renders options (evidence: `src/ui/radio-group/RadioGroup.tsx`)
- Radio option → Radio keyboard hook: uses hook (evidence: `src/ui/radio-group/Option.tsx`)
- Settings sidebar → Select control: offers selection (evidence: `README.md`)
- Settings sidebar → Radio group: offers choices (evidence: `README.md`)
