# postrednik/opencode-ayu-theme architecture

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

- Interactive diagram: https://gitdiagram.com/postrednik/opencode-ayu-theme
- Repository: https://github.com/postrednik/opencode-ayu-theme

## Overview

This repository is a single OpenCode theme, not an application or runtime library. The user installs its JSON theme file, selects it in OpenCode’s configuration, and restarts OpenCode to apply the Ayu Dark colors. The README documents this workflow and the palette’s inspiration; no source excerpts were provided, so implementation details beyond the theme file are not represented.

Main entry points: [`.opencode/themes/ayu-dark.json`](https://github.com/postrednik/opencode-ayu-theme/blob/main/.opencode/themes/ayu-dark.json) (Ayu Dark theme)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_theme["Ayu Dark theme<br/>[ayu-dark.json]"]
node_config["OpenCode config"]
node_opencode["OpenCode"]
node_ayu["Ayu palette"]

node_user -->|"installs"| node_theme
node_user -->|"selects theme"| node_config
node_opencode -->|"reads setting"| node_config
node_opencode -->|"loads theme"| node_theme
node_theme -->|"based on"| node_ayu

click node_theme "https://github.com/postrednik/opencode-ayu-theme/blob/main/.opencode/themes/ayu-dark.json"

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_user toneBlue
class node_theme toneTeal
class node_config,node_opencode,node_ayu toneIndigo
```

## Components

### Other components

- **User**
- [Ayu Dark theme](https://github.com/postrednik/opencode-ayu-theme/blob/main/.opencode/themes/ayu-dark.json): `.opencode/themes/ayu-dark.json`
- **OpenCode config**
- **OpenCode**
- **Ayu palette**

## Connections

- User → Ayu Dark theme: installs (evidence: `README.md`)
- User → OpenCode config: selects theme (evidence: `README.md`)
- OpenCode → OpenCode config: reads setting (evidence: `README.md`)
- OpenCode → Ayu Dark theme: loads theme (evidence: `README.md`)
- Ayu Dark theme → Ayu palette: based on (evidence: `README.md`)
