# colorlibhq/adminlte architecture

> Architecture diagram of the GitHub repository colorlibhq/adminlte, 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/colorlibhq/adminlte
- Repository: https://github.com/colorlibhq/adminlte

## Overview

AdminLTE is a Bootstrap 5 dashboard template with a vanilla-JavaScript plugin layer. A page loads the AdminLTE runtime, whose entry module registers UI behaviors; those plugins act on page markup and expose events for applications. The repository also documents dashboard demo pages and a broader design system. The graph preserves documented capabilities, but the supplied tree and excerpts do not show their page-level implementation, so those connections are not inferred.

Main entry points: [`src/ts/adminlte.ts`](https://github.com/colorlibhq/adminlte/blob/master/src/ts/adminlte.ts) (AdminLTE entry), [`src/ts/util/index.ts`](https://github.com/colorlibhq/adminlte/blob/master/src/ts/util/index.ts) (Lifecycle utilities), [`src/ts/base-component.ts`](https://github.com/colorlibhq/adminlte/blob/master/src/ts/base-component.ts) (Component base), [`src/ts/push-menu.ts`](https://github.com/colorlibhq/adminlte/blob/master/src/ts/push-menu.ts) (Push menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime lifecycle"]
  node_app["AdminLTE entry<br/>[adminlte.ts]"]
  node_lifecycle["Lifecycle utilities<br/>[index.ts]"]
  node_base["Component base<br/>[base-component.ts]"]
end

subgraph group_navigation["Navigation controls"]
  node_layout["Responsive layout<br/>[layout.ts]"]
  node_push["Push menu<br/>[push-menu.ts]"]
  node_tree["Treeview menus<br/>[treeview.ts]"]
  node_search["Sidebar search<br/>[sidebar-search.ts]"]
end

subgraph group_interaction["Page interactions"]
  node_card["Card widget<br/>[card-widget.ts]"]
  node_chat["Direct chat<br/>[direct-chat.ts]"]
  node_fullscreen["Fullscreen control<br/>[fullscreen.ts]"]
  node_accessibility["Accessibility support<br/>[accessibility.ts]"]
end

subgraph group_design["Theme and palette"]
  node_color["Color mode<br/>[color-mode.ts]"]
  node_palette["Palette definitions<br/>[palette.mjs]"]
  node_palettegen["Palette generator<br/>[palette.mjs]"]
end

node_page(("Dashboard page"))
node_demos["Dashboard demos"]

node_page -->|"loads runtime"| node_app
node_app -->|"uses lifecycle"| node_lifecycle
node_app -->|"registers"| node_layout
node_app -->|"registers"| node_card
node_app -->|"registers"| node_tree
node_app -->|"registers"| node_chat
node_app -->|"registers"| node_fullscreen
node_app -->|"registers"| node_push
node_app -->|"registers"| node_color
node_app -->|"registers"| node_search
node_app -->|"registers"| node_accessibility
node_card -->|"extends"| node_base
node_chat -->|"extends"| node_base
node_fullscreen -->|"extends"| node_base
node_push -->|"extends"| node_base
node_search -->|"dispatches events"| node_base
node_tree -->|"dispatches events"| node_base
node_card -->|"animates with"| node_lifecycle
node_tree -->|"animates with"| node_lifecycle
node_push -->|"registers handlers"| node_lifecycle
node_search -->|"initializes on load"| node_lifecycle
node_color -->|"initializes on load"| node_lifecycle
node_fullscreen -->|"registers handlers"| node_lifecycle
node_accessibility -->|"uses lifecycle"| node_lifecycle
node_palettegen -->|"reads definitions"| node_palette
node_page -.->|"presents dashboard examples"| node_demos

click node_app "https://github.com/colorlibhq/adminlte/blob/master/src/ts/adminlte.ts"
click node_lifecycle "https://github.com/colorlibhq/adminlte/blob/master/src/ts/util/index.ts"
click node_base "https://github.com/colorlibhq/adminlte/blob/master/src/ts/base-component.ts"
click node_layout "https://github.com/colorlibhq/adminlte/blob/master/src/ts/layout.ts"
click node_push "https://github.com/colorlibhq/adminlte/blob/master/src/ts/push-menu.ts"
click node_tree "https://github.com/colorlibhq/adminlte/blob/master/src/ts/treeview.ts"
click node_search "https://github.com/colorlibhq/adminlte/blob/master/src/ts/sidebar-search.ts"
click node_card "https://github.com/colorlibhq/adminlte/blob/master/src/ts/card-widget.ts"
click node_chat "https://github.com/colorlibhq/adminlte/blob/master/src/ts/direct-chat.ts"
click node_fullscreen "https://github.com/colorlibhq/adminlte/blob/master/src/ts/fullscreen.ts"
click node_accessibility "https://github.com/colorlibhq/adminlte/blob/master/src/ts/accessibility.ts"
click node_color "https://github.com/colorlibhq/adminlte/blob/master/src/ts/color-mode.ts"
click node_palette "https://github.com/colorlibhq/adminlte/blob/master/src/utils/palette.mjs"
click node_palettegen "https://github.com/colorlibhq/adminlte/blob/master/scripts/palette.mjs"
click node_demos "https://github.com/colorlibhq/adminlte/tree/master/src/html"

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_app,node_lifecycle,node_base toneBlue
class node_layout,node_push,node_tree,node_search toneAmber
class node_card,node_chat,node_fullscreen,node_accessibility toneMint
class node_color,node_palette,node_palettegen toneRose
class node_page toneIndigo
class node_demos toneTeal
```

## Components

### Runtime lifecycle

- [AdminLTE entry](https://github.com/colorlibhq/adminlte/blob/master/src/ts/adminlte.ts): `src/ts/adminlte.ts`
- [Lifecycle utilities](https://github.com/colorlibhq/adminlte/blob/master/src/ts/util/index.ts): `src/ts/util/index.ts`
- [Component base](https://github.com/colorlibhq/adminlte/blob/master/src/ts/base-component.ts): `src/ts/base-component.ts`

### Navigation controls

- [Responsive layout](https://github.com/colorlibhq/adminlte/blob/master/src/ts/layout.ts): `src/ts/layout.ts`
- [Push menu](https://github.com/colorlibhq/adminlte/blob/master/src/ts/push-menu.ts): `src/ts/push-menu.ts`
- [Treeview menus](https://github.com/colorlibhq/adminlte/blob/master/src/ts/treeview.ts): `src/ts/treeview.ts`
- [Sidebar search](https://github.com/colorlibhq/adminlte/blob/master/src/ts/sidebar-search.ts): `src/ts/sidebar-search.ts`

### Page interactions

- [Card widget](https://github.com/colorlibhq/adminlte/blob/master/src/ts/card-widget.ts): `src/ts/card-widget.ts`
- [Direct chat](https://github.com/colorlibhq/adminlte/blob/master/src/ts/direct-chat.ts): `src/ts/direct-chat.ts`
- [Fullscreen control](https://github.com/colorlibhq/adminlte/blob/master/src/ts/fullscreen.ts): `src/ts/fullscreen.ts`
- [Accessibility support](https://github.com/colorlibhq/adminlte/blob/master/src/ts/accessibility.ts): `src/ts/accessibility.ts`

### Theme and palette

- [Color mode](https://github.com/colorlibhq/adminlte/blob/master/src/ts/color-mode.ts): `src/ts/color-mode.ts`
- [Palette definitions](https://github.com/colorlibhq/adminlte/blob/master/src/utils/palette.mjs): `src/utils/palette.mjs`
- [Palette generator](https://github.com/colorlibhq/adminlte/blob/master/scripts/palette.mjs): `scripts/palette.mjs`

### Other components

- **Dashboard page**
- [Dashboard demos](https://github.com/colorlibhq/adminlte/tree/master/src/html): `src/html`

## Connections

- Dashboard page → AdminLTE entry: loads runtime (evidence: `README.md`)
- AdminLTE entry → Lifecycle utilities: uses lifecycle (evidence: `src/ts/adminlte.ts`)
- AdminLTE entry → Responsive layout: registers (evidence: `src/ts/adminlte.ts`)
- AdminLTE entry → Card widget: registers (evidence: `src/ts/adminlte.ts`)
- AdminLTE entry → Treeview menus: registers (evidence: `src/ts/adminlte.ts`)
- AdminLTE entry → Direct chat: registers (evidence: `src/ts/adminlte.ts`)
- AdminLTE entry → Fullscreen control: registers (evidence: `src/ts/adminlte.ts`)
- AdminLTE entry → Push menu: registers (evidence: `src/ts/adminlte.ts`)
- AdminLTE entry → Color mode: registers (evidence: `src/ts/adminlte.ts`)
- AdminLTE entry → Sidebar search: registers (evidence: `src/ts/adminlte.ts`)
- AdminLTE entry → Accessibility support: registers (evidence: `src/ts/adminlte.ts`)
- Card widget → Component base: extends (evidence: `src/ts/card-widget.ts`)
- Direct chat → Component base: extends (evidence: `src/ts/direct-chat.ts`)
- Fullscreen control → Component base: extends (evidence: `src/ts/fullscreen.ts`)
- Push menu → Component base: extends (evidence: `src/ts/push-menu.ts`)
- Sidebar search → Component base: dispatches events (evidence: `src/ts/sidebar-search.ts`)
- Treeview menus → Component base: dispatches events (evidence: `src/ts/treeview.ts`)
- Card widget → Lifecycle utilities: animates with (evidence: `src/ts/card-widget.ts`)
- Treeview menus → Lifecycle utilities: animates with (evidence: `src/ts/treeview.ts`)
- Push menu → Lifecycle utilities: registers handlers (evidence: `src/ts/push-menu.ts`)
- Sidebar search → Lifecycle utilities: initializes on load (evidence: `src/ts/sidebar-search.ts`)
- Color mode → Lifecycle utilities: initializes on load (evidence: `src/ts/color-mode.ts`)
- Fullscreen control → Lifecycle utilities: registers handlers (evidence: `src/ts/fullscreen.ts`)
- Accessibility support → Lifecycle utilities: uses lifecycle (evidence: `src/ts/accessibility.ts`)
- Palette generator → Palette definitions: reads definitions (evidence: `scripts/palette.mjs`)
- Dashboard page → Dashboard demos: presents dashboard examples (evidence: `README.md`)
