# ntgovernment/design-system-rollout-legacy-sites architecture

> Architecture diagram of the GitHub repository ntgovernment/design-system-rollout-legacy-sites, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ntgovernment/design-system-rollout-legacy-sites
- Repository: https://github.com/ntgovernment/design-system-rollout-legacy-sites

## Overview

This repository rolls a design-system stylesheet package across legacy websites. The intended workflow is to provide tokens and CSS overrides, compile them into a versioned stylesheet, and use that asset to align a legacy site with the new visual system. The CSS modules cover foundational typography and utilities, reusable interface components, and page-specific layouts. The README documents the compilation and token outputs; individual stylesheet contents were not sampled, so their internal dependencies are not shown.

Main entry points: [`dist/dev/ntg/0.0.2/index.css`](https://github.com/ntgovernment/design-system-rollout-legacy-sites/blob/main/dist/dev/ntg/0.0.2/index.css) (Versioned CSS), [`dist/dev/ntg/0.0.2/tokens.css`](https://github.com/ntgovernment/design-system-rollout-legacy-sites/blob/main/dist/dev/ntg/0.0.2/tokens.css) (Published tokens), [`src/css/tokens.css`](https://github.com/ntgovernment/design-system-rollout-legacy-sites/blob/main/src/css/tokens.css) (Original tokens), [`src/css/newntg.tokens.css`](https://github.com/ntgovernment/design-system-rollout-legacy-sites/blob/main/src/css/newntg.tokens.css) (Updated tokens)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tokens["Design tokens"]
  node_original_tokens["Original tokens<br/>[tokens.css]"]
  node_updated_tokens["Updated tokens<br/>[newntg.tokens.css]"]
end

subgraph group_styles["CSS stylesheets"]
  node_foundation_styles["Foundation styles"]
  node_component_styles["Interface components"]
  node_page_styles["Page styles"]
end

subgraph group_release["Stylesheet output"]
  node_compiled_css["Versioned CSS<br/>[index.css]"]
  node_published_tokens["Published tokens<br/>[tokens.css]"]
end

node_legacy_site(("Legacy website"))

node_foundation_styles -->|"compiles into"| node_compiled_css
node_component_styles -->|"compiles into"| node_compiled_css
node_page_styles -->|"compiles into"| node_compiled_css
node_updated_tokens -->|"publishes as"| node_published_tokens
node_original_tokens -->|"dev-server tokens"| node_compiled_css
node_compiled_css -.->|"styles"| node_legacy_site
node_published_tokens -.->|"provides tokens"| node_legacy_site

click node_original_tokens "https://github.com/ntgovernment/design-system-rollout-legacy-sites/blob/main/src/css/tokens.css"
click node_updated_tokens "https://github.com/ntgovernment/design-system-rollout-legacy-sites/blob/main/src/css/newntg.tokens.css"
click node_foundation_styles "https://github.com/ntgovernment/design-system-rollout-legacy-sites/tree/main/src/css"
click node_component_styles "https://github.com/ntgovernment/design-system-rollout-legacy-sites/tree/main/src/css"
click node_page_styles "https://github.com/ntgovernment/design-system-rollout-legacy-sites/tree/main/src/css"
click node_compiled_css "https://github.com/ntgovernment/design-system-rollout-legacy-sites/blob/main/dist/dev/ntg/0.0.2/index.css"
click node_published_tokens "https://github.com/ntgovernment/design-system-rollout-legacy-sites/blob/main/dist/dev/ntg/0.0.2/tokens.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_original_tokens,node_updated_tokens toneBlue
class node_foundation_styles,node_component_styles,node_page_styles toneAmber
class node_compiled_css,node_published_tokens toneMint
class node_legacy_site toneIndigo
```

## Components

### Design tokens

- [Original tokens](https://github.com/ntgovernment/design-system-rollout-legacy-sites/blob/main/src/css/tokens.css): `src/css/tokens.css`
- [Updated tokens](https://github.com/ntgovernment/design-system-rollout-legacy-sites/blob/main/src/css/newntg.tokens.css): `src/css/newntg.tokens.css`

### CSS stylesheets

- [Foundation styles](https://github.com/ntgovernment/design-system-rollout-legacy-sites/tree/main/src/css): `src/css`
- [Interface components](https://github.com/ntgovernment/design-system-rollout-legacy-sites/tree/main/src/css): `src/css`
- [Page styles](https://github.com/ntgovernment/design-system-rollout-legacy-sites/tree/main/src/css): `src/css`

### Stylesheet output

- [Versioned CSS](https://github.com/ntgovernment/design-system-rollout-legacy-sites/blob/main/dist/dev/ntg/0.0.2/index.css): `dist/dev/ntg/0.0.2/index.css`
- [Published tokens](https://github.com/ntgovernment/design-system-rollout-legacy-sites/blob/main/dist/dev/ntg/0.0.2/tokens.css): `dist/dev/ntg/0.0.2/tokens.css`

### Other components

- **Legacy website**

## Connections

- Foundation styles → Versioned CSS: compiles into (evidence: `README.md`)
- Interface components → Versioned CSS: compiles into (evidence: `README.md`)
- Page styles → Versioned CSS: compiles into (evidence: `README.md`)
- Updated tokens → Published tokens: publishes as (evidence: `README.md`)
- Original tokens → Versioned CSS: dev-server tokens (evidence: `README.md`)
- Versioned CSS → Legacy website: styles
- Published tokens → Legacy website: provides tokens
