# sweetmeh/anki-card-templates architecture

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

- Interactive diagram: https://gitdiagram.com/sweetmeh/anki-card-templates
- Repository: https://github.com/sweetmeh/anki-card-templates

## Overview

This repository provides Anki card templates: users create a note type, paste in the front and back templates, and choose one CSS theme. The README describes fields, tags, tips, and a separate elapsed-time control, but no source excerpts were supplied, so relationships among those features and their implementations cannot be verified. Theme files are alternatives, not a runtime sequence.

Main entry points: [`HTML/front.html`](https://github.com/sweetmeh/anki-card-templates/blob/main/HTML/front.html) (Front card), [`HTML/back.html`](https://github.com/sweetmeh/anki-card-templates/blob/main/HTML/back.html) (Back card), [`CSS/original_dark_mode_style.css`](https://github.com/sweetmeh/anki-card-templates/blob/main/CSS/original_dark_mode_style.css) (Original theme), [`CSS/blue_dark_mode_style.css`](https://github.com/sweetmeh/anki-card-templates/blob/main/CSS/blue_dark_mode_style.css) (Blue theme)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_card_templates["Card templates"]
  node_front["Front card<br/>[front.html]"]
  node_back["Back card<br/>[back.html]"]
end

subgraph group_themes["Visual themes"]
  node_original_theme["Original theme"]
  node_blue_theme["Blue theme"]
  node_green_theme["Green theme"]
  node_purple_theme["Purple theme"]
  node_yellow_theme["Yellow theme"]
end

node_user(("Template author"))
node_anki["Anki note type"]

node_user -->|"creates note type"| node_anki
node_front -->|"pasted as front"| node_anki
node_back -->|"pasted as back"| node_anki
node_original_theme -->|"pasted as styling"| node_anki
node_blue_theme -->|"pasted as styling"| node_anki
node_green_theme -->|"pasted as styling"| node_anki
node_purple_theme -->|"pasted as styling"| node_anki
node_yellow_theme -->|"pasted as styling"| node_anki

click node_front "https://github.com/sweetmeh/anki-card-templates/blob/main/HTML/front.html"
click node_back "https://github.com/sweetmeh/anki-card-templates/blob/main/HTML/back.html"
click node_original_theme "https://github.com/sweetmeh/anki-card-templates/blob/main/CSS/original_dark_mode_style.css"
click node_blue_theme "https://github.com/sweetmeh/anki-card-templates/blob/main/CSS/blue_dark_mode_style.css"
click node_green_theme "https://github.com/sweetmeh/anki-card-templates/blob/main/CSS/green_dark_mode_style.css"
click node_purple_theme "https://github.com/sweetmeh/anki-card-templates/blob/main/CSS/purple_dark_mode_style.css"
click node_yellow_theme "https://github.com/sweetmeh/anki-card-templates/blob/main/CSS/yellow_dark_mode_style.css"

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_front,node_back toneBlue
class node_original_theme,node_blue_theme,node_green_theme,node_purple_theme,node_yellow_theme toneAmber
class node_user,node_anki toneIndigo
```

## Components

### Card templates

- [Front card](https://github.com/sweetmeh/anki-card-templates/blob/main/HTML/front.html): `HTML/front.html`
- [Back card](https://github.com/sweetmeh/anki-card-templates/blob/main/HTML/back.html): `HTML/back.html`

### Visual themes

- [Original theme](https://github.com/sweetmeh/anki-card-templates/blob/main/CSS/original_dark_mode_style.css): `CSS/original_dark_mode_style.css`
- [Blue theme](https://github.com/sweetmeh/anki-card-templates/blob/main/CSS/blue_dark_mode_style.css): `CSS/blue_dark_mode_style.css`
- [Green theme](https://github.com/sweetmeh/anki-card-templates/blob/main/CSS/green_dark_mode_style.css): `CSS/green_dark_mode_style.css`
- [Purple theme](https://github.com/sweetmeh/anki-card-templates/blob/main/CSS/purple_dark_mode_style.css): `CSS/purple_dark_mode_style.css`
- [Yellow theme](https://github.com/sweetmeh/anki-card-templates/blob/main/CSS/yellow_dark_mode_style.css): `CSS/yellow_dark_mode_style.css`

### Other components

- **Template author**
- **Anki note type**

## Connections

- Template author → Anki note type: creates note type (evidence: `README.md`)
- Front card → Anki note type: pasted as front (evidence: `README.md`)
- Back card → Anki note type: pasted as back (evidence: `README.md`)
- Original theme → Anki note type: pasted as styling (evidence: `README.md`)
- Blue theme → Anki note type: pasted as styling (evidence: `README.md`)
- Green theme → Anki note type: pasted as styling (evidence: `README.md`)
- Purple theme → Anki note type: pasted as styling (evidence: `README.md`)
- Yellow theme → Anki note type: pasted as styling (evidence: `README.md`)
