# devilishdante/color-picker architecture

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

- Interactive diagram: https://gitdiagram.com/devilishdante/color-picker
- Repository: https://github.com/devilishdante/color-picker

## Overview

This is a Chromium-only color-picker browser extension. Its documented workflow lets a user choose or pick a color, copy or paste it as hex or RGB, and save up to ten colors for later history management. The tree suggests separate picker, color-format, and history modules, but no source excerpts were provided; links between those implementation modules are therefore omitted where the README does not establish them.

Main entry points: [`app/index.html`](https://github.com/devilishdante/color-picker/blob/master/app/index.html) (Picker UI), [`app/assets/js/core.js`](https://github.com/devilishdante/color-picker/blob/master/app/assets/js/core.js) (Color picker), [`app/assets/js/history.js`](https://github.com/devilishdante/color-picker/blob/master/app/assets/js/history.js) (Saved colors), [`app/assets/js/context-history.js`](https://github.com/devilishdante/color-picker/blob/master/app/assets/js/context-history.js) (History controls)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Picker interface"]
  node_picker_ui["Picker UI<br/>[index.html]"]
end

subgraph group_color["Color operations"]
  node_picker["Color picker<br/>[core.js]"]
  node_formats["Color formats<br/>[print-color.js]"]
end

subgraph group_saved["Saved colors"]
  node_saved_colors[("Saved colors<br/>[history.js]")]
  node_history_context["History controls<br/>[context-history.js]"]
end

node_user(("User"))
node_clipboard["Clipboard"]

node_user -->|"uses"| node_picker_ui
node_picker_ui -->|"chooses colors"| node_picker
node_user -->|"copies or pastes"| node_clipboard
node_user -->|"saves colors"| node_saved_colors
node_user -->|"manages history"| node_history_context

click node_picker_ui "https://github.com/devilishdante/color-picker/blob/master/app/index.html"
click node_picker "https://github.com/devilishdante/color-picker/blob/master/app/assets/js/core.js"
click node_formats "https://github.com/devilishdante/color-picker/blob/master/app/assets/js/print-color.js"
click node_saved_colors "https://github.com/devilishdante/color-picker/blob/master/app/assets/js/history.js"
click node_history_context "https://github.com/devilishdante/color-picker/blob/master/app/assets/js/context-history.js"

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_picker_ui,node_user toneBlue
class node_picker,node_formats toneAmber
class node_saved_colors,node_history_context toneMint
class node_clipboard toneIndigo
```

## Components

### Picker interface

- [Picker UI](https://github.com/devilishdante/color-picker/blob/master/app/index.html): `app/index.html`

### Color operations

- [Color picker](https://github.com/devilishdante/color-picker/blob/master/app/assets/js/core.js): `app/assets/js/core.js`
- [Color formats](https://github.com/devilishdante/color-picker/blob/master/app/assets/js/print-color.js): `app/assets/js/print-color.js`

### Saved colors

- [Saved colors](https://github.com/devilishdante/color-picker/blob/master/app/assets/js/history.js): `app/assets/js/history.js`
- [History controls](https://github.com/devilishdante/color-picker/blob/master/app/assets/js/context-history.js): `app/assets/js/context-history.js`

### Other components

- **User**
- **Clipboard**

## Connections

- User → Picker UI: uses (evidence: `README.md`)
- Picker UI → Color picker: chooses colors (evidence: `README.md`)
- User → Clipboard: copies or pastes (evidence: `README.md`)
- User → Saved colors: saves colors (evidence: `README.md`)
- User → History controls: manages history (evidence: `README.md`)
