# krypciak/crossgrub architecture

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

- Interactive diagram: https://gitdiagram.com/krypciak/crossgrub
- Repository: https://github.com/krypciak/crossgrub

## Overview

Crossgrub is a CrossCode-themed GRUB2 theme. Its user-facing workflow is to install the theme, point GRUB configuration at theme.txt, and regenerate the live GRUB configuration; GRUB then uses the configured theme. The tree also contains visual assets and two font files, but no source excerpts show how theme.txt references them. Relationships below are limited to the README’s documented setup and theme usage.

Main entry points: [`theme.txt`](https://github.com/krypciak/crossgrub/blob/master/theme.txt) (Theme definition), [`install.sh`](https://github.com/krypciak/crossgrub/blob/master/install.sh) (Install script)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_theme["Theme files"]
  node_theme_config["Theme definition<br/>[theme.txt]"]
  node_assets["Theme assets"]
  node_font22["Monocraft 22<br/>[Monocraft22.pf2]"]
  node_font30["Pixel Font 30<br/>[PixelFont30.pf2]"]
end

subgraph group_setup["Installation and boot setup"]
  node_installer["Install script<br/>[install.sh]"]
  node_archive["Release archive"]
  node_grub_defaults["GRUB defaults"]
  node_grub_config["Live GRUB config"]
end

node_user(("Theme user"))
node_grub["GRUB2"]

node_user -->|"runs as root"| node_installer
node_user -->|"downloads and extracts"| node_archive
node_archive -->|"includes theme"| node_theme_config
node_user -->|"sets theme path"| node_grub_defaults
node_grub_defaults -->|"configures theme"| node_theme_config
node_user -->|"regenerates"| node_grub_config
node_grub_config -->|"configures"| node_grub
node_grub -->|"uses theme"| node_theme_config

click node_installer "https://github.com/krypciak/crossgrub/blob/master/install.sh"
click node_theme_config "https://github.com/krypciak/crossgrub/blob/master/theme.txt"
click node_assets "https://github.com/krypciak/crossgrub/tree/master/assets"
click node_font22 "https://github.com/krypciak/crossgrub/blob/master/Monocraft22.pf2"
click node_font30 "https://github.com/krypciak/crossgrub/blob/master/PixelFont30.pf2"

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_config,node_assets,node_font22,node_font30,node_user toneBlue
class node_installer,node_archive,node_grub_defaults,node_grub_config toneAmber
class node_grub toneIndigo
```

## Components

### Theme files

- [Theme definition](https://github.com/krypciak/crossgrub/blob/master/theme.txt): `theme.txt`
- [Theme assets](https://github.com/krypciak/crossgrub/tree/master/assets): `assets`
- [Monocraft 22](https://github.com/krypciak/crossgrub/blob/master/Monocraft22.pf2): `Monocraft22.pf2`
- [Pixel Font 30](https://github.com/krypciak/crossgrub/blob/master/PixelFont30.pf2): `PixelFont30.pf2`

### Installation and boot setup

- [Install script](https://github.com/krypciak/crossgrub/blob/master/install.sh): `install.sh`
- **Release archive**
- **GRUB defaults**
- **Live GRUB config**

### Other components

- **Theme user**
- **GRUB2**

## Connections

- Theme user → Install script: runs as root (evidence: `README.md`)
- Theme user → Release archive: downloads and extracts (evidence: `README.md`)
- Release archive → Theme definition: includes theme (evidence: `README.md`)
- Theme user → GRUB defaults: sets theme path (evidence: `README.md`)
- GRUB defaults → Theme definition: configures theme (evidence: `README.md`)
- Theme user → Live GRUB config: regenerates (evidence: `README.md`)
- Live GRUB config → GRUB2: configures (evidence: `README.md`)
- GRUB2 → Theme definition: uses theme (evidence: `README.md`)
