# supertsy5/grace-gray architecture

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

- Interactive diagram: https://gitdiagram.com/supertsy5/grace-gray
- Repository: https://github.com/supertsy5/grace-gray

## Overview

Grace Gray is a Visual Studio Code color theme, with an extension entry point that also registers commands for previewing status-bar items, notifications, and progress UI. The main workflow is selecting the theme in VS Code; the preview commands invoke VS Code UI APIs. The source tree is small, and the edges below are supported by the package contribution metadata and the sampled extension code.

Main entry points: [`src/main.ts`](https://github.com/supertsy5/grace-gray/blob/main/src/main.ts) (Command handlers), [`themes/grace-gray-color-theme.json`](https://github.com/supertsy5/grace-gray/blob/main/themes/grace-gray-color-theme.json) (Grace Gray theme)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_theme["Color theme"]
  node_theme_file["Grace Gray theme"]
end

subgraph group_previews["UI previews"]
  node_extension["Command handlers<br/>[main.ts]"]
  node_status["Status-bar preview<br/>[main.ts]"]
  node_notifications["Notification previews<br/>[main.ts]"]
  node_progress["Progress previews<br/>[main.ts]"]
end

node_user(("VS Code user"))
node_host["VS Code host"]

node_user -->|"selects theme"| node_host
node_host -->|"loads theme"| node_theme_file
node_user -->|"runs commands"| node_extension
node_extension -->|"registers handler"| node_status
node_extension -->|"registers handler"| node_notifications
node_extension -->|"registers handler"| node_progress
node_status -->|"shows items"| node_host
node_notifications -->|"shows messages"| node_host
node_progress -->|"reports progress"| node_host

click node_theme_file "https://github.com/supertsy5/grace-gray/blob/main/themes/grace-gray-color-theme.json"
click node_extension "https://github.com/supertsy5/grace-gray/blob/main/src/main.ts"
click node_status "https://github.com/supertsy5/grace-gray/blob/main/src/main.ts"
click node_notifications "https://github.com/supertsy5/grace-gray/blob/main/src/main.ts"
click node_progress "https://github.com/supertsy5/grace-gray/blob/main/src/main.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_theme_file,node_user toneBlue
class node_extension,node_status,node_notifications,node_progress toneAmber
class node_host toneIndigo
```

## Components

### Color theme

- [Grace Gray theme](https://github.com/supertsy5/grace-gray/blob/main/themes/grace-gray-color-theme.json): `themes/grace-gray-color-theme.json`

### UI previews

- [Command handlers](https://github.com/supertsy5/grace-gray/blob/main/src/main.ts): `src/main.ts`
- [Status-bar preview](https://github.com/supertsy5/grace-gray/blob/main/src/main.ts): `src/main.ts`
- [Notification previews](https://github.com/supertsy5/grace-gray/blob/main/src/main.ts): `src/main.ts`
- [Progress previews](https://github.com/supertsy5/grace-gray/blob/main/src/main.ts): `src/main.ts`

### Other components

- **VS Code user**
- **VS Code host**

## Connections

- VS Code user → VS Code host: selects theme (evidence: `README.md`)
- VS Code host → Grace Gray theme: loads theme
- VS Code user → Command handlers: runs commands
- Command handlers → Status-bar preview: registers handler (evidence: `src/main.ts`)
- Command handlers → Notification previews: registers handler (evidence: `src/main.ts`)
- Command handlers → Progress previews: registers handler (evidence: `src/main.ts`)
- Status-bar preview → VS Code host: shows items (evidence: `src/main.ts`)
- Notification previews → VS Code host: shows messages (evidence: `src/main.ts`)
- Progress previews → VS Code host: reports progress (evidence: `src/main.ts`)
