# coreui/coreui-free-bootstrap-admin-template architecture

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

- Interactive diagram: https://gitdiagram.com/coreui/coreui-free-bootstrap-admin-template
- Repository: https://github.com/coreui/coreui-free-bootstrap-admin-template

## Overview

This is a static CoreUI Bootstrap admin dashboard template: users browse example dashboard, chart, widget, component, form, authentication, icon, and error pages, while the browser applies interactive theme and UI behavior. The graph centers on page families and their runtime enhancements, with shared layout, styles, assets, and CoreUI/Chart.js as supporting layers. README documents broad template capabilities; unsampled Pug and HTML page internals are represented by their exact tree directories. Connections are limited to explicit README or sampled JavaScript behavior.

Main entry points: [`src/views`](https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/views) (HTML Views), [`src/js/main.js`](https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/main.js) (Dashboard Charts), [`src/pug/views`](https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/pug/views) (Pug Views), [`src/js/color-modes.js`](https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/color-modes.js) (Theme Switching)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Template Pages"]
  node_htmlpages["HTML Views"]
  node_pugpages["Pug Views"]
end

subgraph group_runtime["Browser Runtime"]
  node_dashboard["Dashboard Charts<br/>[main.js]"]
  node_chartgallery["Chart Gallery<br/>[charts.js]"]
  node_widgetcharts["Widget Charts<br/>[widgets.js]"]
  node_themeswitch["Theme Switching<br/>[color-modes.js]"]
  node_themeconfig["Theme URL Config<br/>[config.js]"]
  node_popovers["Popover Setup<br/>[popovers.js]"]
  node_tooltips["Tooltip Setup<br/>[tooltips.js]"]
  node_toasts["Toast Demo<br/>[toasts.js]"]
  node_coreui["CoreUI Components"]
  node_chartjs["Chart.js"]
end

subgraph group_shared["Shared Presentation"]
  node_layout["Page Layouts"]
  node_partials["Shared Partials"]
  node_mixins["Template Mixins"]
  node_styles["SCSS Styling"]
  node_assets["Brand Assets"]
  node_icons["CoreUI Icons"]
end

node_visitor(("Dashboard User"))

node_visitor -->|"browses"| node_htmlpages
node_visitor -.->|"customizes"| node_pugpages
node_htmlpages -.->|"loads scripts"| node_dashboard
node_htmlpages -.->|"loads scripts"| node_chartgallery
node_htmlpages -.->|"loads scripts"| node_widgetcharts
node_dashboard -->|"creates charts"| node_chartjs
node_dashboard -->|"uses styling"| node_coreui
node_widgetcharts -->|"creates charts"| node_chartjs
node_chartgallery -->|"creates charts"| node_chartjs
node_themeswitch -->|"notifies theme"| node_dashboard
node_themeswitch -->|"notifies theme"| node_widgetcharts
node_popovers -->|"initializes popovers"| node_coreui
node_tooltips -->|"initializes tooltips"| node_coreui
node_toasts -->|"shows toast"| node_coreui
node_themeconfig -.->|"sets preference"| node_themeswitch
node_pugpages -.->|"uses layouts"| node_layout
node_layout -.->|"includes partials"| node_partials
node_pugpages -.->|"uses mixins"| node_mixins
node_htmlpages -.->|"styled by"| node_styles
node_htmlpages -.->|"displays assets"| node_assets
node_htmlpages -.->|"displays icons"| node_icons

click node_htmlpages "https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/views"
click node_pugpages "https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/pug/views"
click node_dashboard "https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/main.js"
click node_chartgallery "https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/charts.js"
click node_widgetcharts "https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/widgets.js"
click node_themeswitch "https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/color-modes.js"
click node_themeconfig "https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/config.js"
click node_popovers "https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/popovers.js"
click node_tooltips "https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/tooltips.js"
click node_toasts "https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/toasts.js"
click node_layout "https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/pug/_layout"
click node_partials "https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/pug/_partials"
click node_mixins "https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/pug/_mixins"
click node_styles "https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/scss"
click node_assets "https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/assets"
click node_icons "https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/assets/icons"

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_htmlpages,node_pugpages,node_visitor toneBlue
class node_dashboard,node_chartgallery,node_widgetcharts,node_themeswitch,node_themeconfig,node_popovers,node_tooltips,node_toasts,node_coreui,node_chartjs toneAmber
class node_layout,node_partials,node_mixins,node_styles,node_assets,node_icons toneMint
```

## Components

### Template Pages

- [HTML Views](https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/views): `src/views`
- [Pug Views](https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/pug/views): `src/pug/views`

### Browser Runtime

- [Dashboard Charts](https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/main.js): `src/js/main.js`
- [Chart Gallery](https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/charts.js): `src/js/charts.js`
- [Widget Charts](https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/widgets.js): `src/js/widgets.js`
- [Theme Switching](https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/color-modes.js): `src/js/color-modes.js`
- [Theme URL Config](https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/config.js): `src/js/config.js`
- [Popover Setup](https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/popovers.js): `src/js/popovers.js`
- [Tooltip Setup](https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/tooltips.js): `src/js/tooltips.js`
- [Toast Demo](https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/src/js/toasts.js): `src/js/toasts.js`
- **CoreUI Components**
- **Chart.js**

### Shared Presentation

- [Page Layouts](https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/pug/_layout): `src/pug/_layout`
- [Shared Partials](https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/pug/_partials): `src/pug/_partials`
- [Template Mixins](https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/pug/_mixins): `src/pug/_mixins`
- [SCSS Styling](https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/scss): `src/scss`
- [Brand Assets](https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/assets): `src/assets`
- [CoreUI Icons](https://github.com/coreui/coreui-free-bootstrap-admin-template/tree/main/src/assets/icons): `src/assets/icons`

### Other components

- **Dashboard User**

## Connections

- Dashboard User → HTML Views: browses (evidence: `README.md`)
- Dashboard User → Pug Views: customizes
- HTML Views → Dashboard Charts: loads scripts
- HTML Views → Chart Gallery: loads scripts
- HTML Views → Widget Charts: loads scripts
- Dashboard Charts → Chart.js: creates charts (evidence: `src/js/main.js`)
- Dashboard Charts → CoreUI Components: uses styling (evidence: `src/js/main.js`)
- Widget Charts → Chart.js: creates charts (evidence: `src/js/widgets.js`)
- Chart Gallery → Chart.js: creates charts (evidence: `src/js/charts.js`)
- Theme Switching → Dashboard Charts: notifies theme (evidence: `src/js/main.js`)
- Theme Switching → Widget Charts: notifies theme (evidence: `src/js/widgets.js`)
- Popover Setup → CoreUI Components: initializes popovers (evidence: `src/js/popovers.js`)
- Tooltip Setup → CoreUI Components: initializes tooltips (evidence: `src/js/tooltips.js`)
- Toast Demo → CoreUI Components: shows toast (evidence: `src/js/toasts.js`)
- Theme URL Config → Theme Switching: sets preference
- Pug Views → Page Layouts: uses layouts
- Page Layouts → Shared Partials: includes partials
- Pug Views → Template Mixins: uses mixins
- HTML Views → SCSS Styling: styled by
- HTML Views → Brand Assets: displays assets
- HTML Views → CoreUI Icons: displays icons
