# cosmicseafox/elementra architecture

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

- Interactive diagram: https://gitdiagram.com/cosmicseafox/elementra
- Repository: https://github.com/cosmicseafox/elementra

## Overview

Elementra is a CSS-based Obsidian theme. Users install it in Obsidian and, with the optional Style Settings community plugin, choose an elemental environment; the theme then supplies the documented visual treatment. The README describes broad styling coverage, but no source excerpts were provided, so implementation details and relationships between individual styling features cannot be verified. The documented capabilities are therefore represented as responsibilities of the theme stylesheet rather than inferred internal modules.

Main entry points: [`theme.css`](https://github.com/cosmicseafox/elementra/blob/main/theme.css) (Elementra theme)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_theme["Theme system"]
  node_elementra["Elementra theme<br/>[theme.css]"]
  node_element_worlds["Six elemental worlds<br/>[theme.css]"]
  node_element_motion["Atmosphere and motion<br/>[theme.css]"]
  node_dark_light["Dark and light modes<br/>[theme.css]"]
end

subgraph group_surfaces["Interface styling"]
  node_notes_links["Notes and links<br/>[theme.css]"]
  node_editor["Editor and reading views<br/>[theme.css]"]
  node_metadata["Properties and tags<br/>[theme.css]"]
  node_tasks_callouts["Tasks and callouts<br/>[theme.css]"]
  node_tabs_menus["Tabs and menus<br/>[theme.css]"]
  node_graph_canvas["Graph and Canvas<br/>[theme.css]"]
  node_embeds_media["Embeds and media<br/>[theme.css]"]
end

subgraph group_comfort["Accessibility and modes"]
  node_accessibility["Readability and focus<br/>[theme.css]"]
  node_reduced_motion["Still and reduced motion<br/>[theme.css]"]
end

node_user(("Vault user"))
node_obsidian["Obsidian"]
node_style_settings["Style Settings"]

node_user -->|"opens vault"| node_obsidian
node_obsidian -->|"uses theme"| node_elementra
node_user -->|"selects element"| node_style_settings
node_style_settings -->|"controls elements"| node_elementra

click node_elementra "https://github.com/cosmicseafox/elementra/blob/main/theme.css"
click node_element_worlds "https://github.com/cosmicseafox/elementra/blob/main/theme.css"
click node_element_motion "https://github.com/cosmicseafox/elementra/blob/main/theme.css"
click node_dark_light "https://github.com/cosmicseafox/elementra/blob/main/theme.css"
click node_notes_links "https://github.com/cosmicseafox/elementra/blob/main/theme.css"
click node_editor "https://github.com/cosmicseafox/elementra/blob/main/theme.css"
click node_metadata "https://github.com/cosmicseafox/elementra/blob/main/theme.css"
click node_tasks_callouts "https://github.com/cosmicseafox/elementra/blob/main/theme.css"
click node_tabs_menus "https://github.com/cosmicseafox/elementra/blob/main/theme.css"
click node_graph_canvas "https://github.com/cosmicseafox/elementra/blob/main/theme.css"
click node_embeds_media "https://github.com/cosmicseafox/elementra/blob/main/theme.css"
click node_accessibility "https://github.com/cosmicseafox/elementra/blob/main/theme.css"
click node_reduced_motion "https://github.com/cosmicseafox/elementra/blob/main/theme.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_elementra,node_element_worlds,node_element_motion,node_dark_light,node_user toneBlue
class node_notes_links,node_editor,node_metadata,node_tasks_callouts,node_tabs_menus,node_graph_canvas,node_embeds_media toneAmber
class node_accessibility,node_reduced_motion toneMint
class node_obsidian,node_style_settings toneIndigo
```

## Components

### Theme system

- [Elementra theme](https://github.com/cosmicseafox/elementra/blob/main/theme.css): `theme.css`
- [Six elemental worlds](https://github.com/cosmicseafox/elementra/blob/main/theme.css): `theme.css`
- [Atmosphere and motion](https://github.com/cosmicseafox/elementra/blob/main/theme.css): `theme.css`
- [Dark and light modes](https://github.com/cosmicseafox/elementra/blob/main/theme.css): `theme.css`

### Interface styling

- [Notes and links](https://github.com/cosmicseafox/elementra/blob/main/theme.css): `theme.css`
- [Editor and reading views](https://github.com/cosmicseafox/elementra/blob/main/theme.css): `theme.css`
- [Properties and tags](https://github.com/cosmicseafox/elementra/blob/main/theme.css): `theme.css`
- [Tasks and callouts](https://github.com/cosmicseafox/elementra/blob/main/theme.css): `theme.css`
- [Tabs and menus](https://github.com/cosmicseafox/elementra/blob/main/theme.css): `theme.css`
- [Graph and Canvas](https://github.com/cosmicseafox/elementra/blob/main/theme.css): `theme.css`
- [Embeds and media](https://github.com/cosmicseafox/elementra/blob/main/theme.css): `theme.css`

### Accessibility and modes

- [Readability and focus](https://github.com/cosmicseafox/elementra/blob/main/theme.css): `theme.css`
- [Still and reduced motion](https://github.com/cosmicseafox/elementra/blob/main/theme.css): `theme.css`

### Other components

- **Vault user**
- **Obsidian**
- **Style Settings**

## Connections

- Vault user → Obsidian: opens vault (evidence: `README.md`)
- Obsidian → Elementra theme: uses theme (evidence: `README.md`)
- Vault user → Style Settings: selects element (evidence: `README.md`)
- Style Settings → Elementra theme: controls elements (evidence: `README.md`)
