# foundation/yeti architecture

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

- Interactive diagram: https://gitdiagram.com/foundation/yeti
- Repository: https://github.com/foundation/yeti

## Overview

Yeti is a native-first CSS layout and styling framework. A designer writes plain HTML and links the stylesheet; the browser applies its base styles, tokens, layouts, recipes, components, utilities, and themes. JavaScript modules add behavior to selected components while HTML/CSS remain the foundation. The README also describes manifests and generated reference materials, but those build-time workflows are outside this runtime-focused map. Relationships among source subsystems are not shown in the excerpts, so those connections are marked unverified rather than inferred as calls.

Main entry points: [`src/yeti.css`](https://github.com/foundation/yeti/blob/develop/src/yeti.css) (Stylesheet entry), [`src/starter/index.html`](https://github.com/foundation/yeti/blob/develop/src/starter/index.html) (Page markup), [`src/components`](https://github.com/foundation/yeti/tree/develop/src/components) (UI components), [`src/starter/theme.css`](https://github.com/foundation/yeti/blob/develop/src/starter/theme.css) (Starter theme)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundation["Styling foundation"]
  node_entry["Stylesheet entry<br/>[yeti.css]"]
  node_base["Base styles"]
  node_tokens["Design tokens"]
  node_themes["Themes"]
end

subgraph group_composition["Page composition"]
  node_html["Page markup<br/>[index.html]"]
  node_layouts["Layout primitives"]
  node_recipes["Composed recipes"]
  node_utilities["Styling utilities"]
end

subgraph group_interaction["Interactive elements"]
  node_components["UI components"]
  node_js["Component behavior"]
end

subgraph group_reference["Authoring resources"]
  node_starter["Starter theme<br/>[theme.css]"]
  node_manifests["Component manifests"]
end

node_designer(("Designer"))
node_browser(("Browser"))

node_designer -->|"writes markup"| node_html
node_designer -->|"links stylesheet"| node_entry
node_html -.->|"renders page"| node_browser
node_entry -.->|"includes styles"| node_base
node_entry -.->|"includes styles"| node_tokens
node_entry -.->|"includes styles"| node_themes
node_entry -.->|"includes styles"| node_layouts
node_entry -.->|"includes styles"| node_recipes
node_entry -.->|"includes styles"| node_utilities
node_entry -.->|"includes styles"| node_components
node_entry -->|"styles page"| node_browser
node_components -.->|"adds behavior"| node_js
node_starter -->|"provides defaults"| node_designer
node_manifests -->|"describes components"| node_designer

click node_html "https://github.com/foundation/yeti/blob/develop/src/starter/index.html"
click node_entry "https://github.com/foundation/yeti/blob/develop/src/yeti.css"
click node_base "https://github.com/foundation/yeti/tree/develop/src/base"
click node_tokens "https://github.com/foundation/yeti/tree/develop/src/tokens"
click node_themes "https://github.com/foundation/yeti/tree/develop/src/themes"
click node_layouts "https://github.com/foundation/yeti/tree/develop/src/layouts"
click node_recipes "https://github.com/foundation/yeti/tree/develop/src/recipes"
click node_utilities "https://github.com/foundation/yeti/tree/develop/src/utilities"
click node_components "https://github.com/foundation/yeti/tree/develop/src/components"
click node_js "https://github.com/foundation/yeti/tree/develop/src/components"
click node_starter "https://github.com/foundation/yeti/blob/develop/src/starter/theme.css"
click node_manifests "https://github.com/foundation/yeti/tree/develop/src/components"

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_entry,node_base,node_tokens,node_themes,node_browser toneBlue
class node_html,node_layouts,node_recipes,node_utilities toneAmber
class node_components,node_js toneMint
class node_starter,node_manifests toneRose
class node_designer toneIndigo
```

## Components

### Styling foundation

- [Stylesheet entry](https://github.com/foundation/yeti/blob/develop/src/yeti.css): `src/yeti.css`
- [Base styles](https://github.com/foundation/yeti/tree/develop/src/base): `src/base`
- [Design tokens](https://github.com/foundation/yeti/tree/develop/src/tokens): `src/tokens`
- [Themes](https://github.com/foundation/yeti/tree/develop/src/themes): `src/themes`

### Page composition

- [Page markup](https://github.com/foundation/yeti/blob/develop/src/starter/index.html): `src/starter/index.html`
- [Layout primitives](https://github.com/foundation/yeti/tree/develop/src/layouts): `src/layouts`
- [Composed recipes](https://github.com/foundation/yeti/tree/develop/src/recipes): `src/recipes`
- [Styling utilities](https://github.com/foundation/yeti/tree/develop/src/utilities): `src/utilities`

### Interactive elements

- [UI components](https://github.com/foundation/yeti/tree/develop/src/components): `src/components`
- [Component behavior](https://github.com/foundation/yeti/tree/develop/src/components): `src/components`

### Authoring resources

- [Starter theme](https://github.com/foundation/yeti/blob/develop/src/starter/theme.css): `src/starter/theme.css`
- [Component manifests](https://github.com/foundation/yeti/tree/develop/src/components): `src/components`

### Other components

- **Designer**
- **Browser**

## Connections

- Designer → Page markup: writes markup (evidence: `README.md`)
- Designer → Stylesheet entry: links stylesheet (evidence: `README.md`)
- Page markup → Browser: renders page
- Stylesheet entry → Base styles: includes styles
- Stylesheet entry → Design tokens: includes styles
- Stylesheet entry → Themes: includes styles
- Stylesheet entry → Layout primitives: includes styles
- Stylesheet entry → Composed recipes: includes styles
- Stylesheet entry → Styling utilities: includes styles
- Stylesheet entry → UI components: includes styles
- Stylesheet entry → Browser: styles page (evidence: `README.md`)
- UI components → Component behavior: adds behavior
- Starter theme → Designer: provides defaults (evidence: `README.md`)
- Component manifests → Designer: describes components (evidence: `README.md`)
