# bmbxwbh/miuix-console architecture

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

- Interactive diagram: https://gitdiagram.com/bmbxwbh/miuix-console
- Repository: https://github.com/bmbxwbh/miuix-console

## Overview

Miuix Console is a dependency-free web UI framework that ports Miuix design language to CSS and vanilla JavaScript. A page includes the framework entry point, which loads the design system and component styles, then loads and initializes interaction utilities after DOM readiness; users interact with controls and receive rendered UI or change events. Separate capabilities include liquid-glass effects, theme and density management, charts, counters, and smooth corners. README documents the broader component catalog; CSS component files are grouped by role because their individual runtime behavior was not sampled.

Main entry points: [`miuix-console.js`](https://github.com/bmbxwbh/miuix-console/blob/main/miuix-console.js) (Framework entry), [`utils/theme.js`](https://github.com/bmbxwbh/miuix-console/blob/main/utils/theme.js) (Theme and density), [`utils/glass.js`](https://github.com/bmbxwbh/miuix-console/blob/main/utils/glass.js) (Liquid glass), [`core/tokens.css`](https://github.com/bmbxwbh/miuix-console/blob/main/core/tokens.css) (Design tokens)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_design["Design foundation"]
  node_entry["Framework entry<br/>[miuix-console.js]"]
  node_tokens["Design tokens<br/>[tokens.css]"]
  node_base["Global styles<br/>[base.css]"]
  node_animations["Motion styles<br/>[animations.css]"]
end

subgraph group_components["UI components"]
  node_components["UI component styles"]
end

subgraph group_interactions["Interaction utilities"]
  node_theme["Theme and density<br/>[theme.js]"]
  node_ripple["Click ripple<br/>[ripple.js]"]
  node_counter["Animated counters<br/>[counter.js]"]
  node_chart["Chart renderer<br/>[chart.js]"]
  node_modal["Modal dialogs<br/>[modal.js]"]
  node_toast["Toast feedback<br/>[toast.js]"]
  node_select["Select control<br/>[select.js]"]
  node_tabs["Tabs control<br/>[tabs.js]"]
  node_pagination["Pagination<br/>[pagination.js]"]
  node_accordion["Accordion control<br/>[accordion.js]"]
  node_datepicker["Date picker<br/>[datepicker.js]"]
  node_upload["File upload<br/>[upload.js]"]
end

subgraph group_effects["Visual effects"]
  node_glasscss["Glass styles<br/>[glass.css]"]
  node_smooth["Smooth corners<br/>[smooth-corner.js]"]
  node_glass["Liquid glass<br/>[glass.js]"]
end

node_page(("Web page"))

node_page -->|"loads"| node_entry
node_entry -->|"loads styles"| node_tokens
node_entry -->|"loads styles"| node_base
node_entry -->|"loads styles"| node_animations
node_entry -->|"loads styles"| node_components
node_entry -->|"loads styles"| node_glasscss
node_entry -->|"loads and initializes"| node_smooth
node_entry -->|"loads and initializes"| node_ripple
node_entry -->|"loads and initializes"| node_counter
node_entry -->|"loads and initializes"| node_theme
node_entry -->|"loads"| node_chart
node_entry -->|"loads"| node_modal
node_entry -->|"loads"| node_toast
node_entry -->|"loads and initializes"| node_select
node_entry -->|"loads and initializes"| node_tabs
node_entry -->|"loads"| node_pagination
node_entry -->|"loads and initializes"| node_accordion
node_entry -->|"loads and initializes"| node_datepicker
node_entry -->|"loads and initializes"| node_upload
node_entry -->|"loads and initializes"| node_glass
node_page -.->|"sets preference"| node_theme
node_page -.->|"configures effect"| node_glass

click node_entry "https://github.com/bmbxwbh/miuix-console/blob/main/miuix-console.js"
click node_tokens "https://github.com/bmbxwbh/miuix-console/blob/main/core/tokens.css"
click node_base "https://github.com/bmbxwbh/miuix-console/blob/main/core/base.css"
click node_animations "https://github.com/bmbxwbh/miuix-console/blob/main/core/animations.css"
click node_glasscss "https://github.com/bmbxwbh/miuix-console/blob/main/core/glass.css"
click node_components "https://github.com/bmbxwbh/miuix-console/tree/main/components"
click node_theme "https://github.com/bmbxwbh/miuix-console/blob/main/utils/theme.js"
click node_smooth "https://github.com/bmbxwbh/miuix-console/blob/main/utils/smooth-corner.js"
click node_ripple "https://github.com/bmbxwbh/miuix-console/blob/main/utils/ripple.js"
click node_counter "https://github.com/bmbxwbh/miuix-console/blob/main/utils/counter.js"
click node_chart "https://github.com/bmbxwbh/miuix-console/blob/main/utils/chart.js"
click node_modal "https://github.com/bmbxwbh/miuix-console/blob/main/utils/modal.js"
click node_toast "https://github.com/bmbxwbh/miuix-console/blob/main/utils/toast.js"
click node_select "https://github.com/bmbxwbh/miuix-console/blob/main/utils/select.js"
click node_tabs "https://github.com/bmbxwbh/miuix-console/blob/main/utils/tabs.js"
click node_pagination "https://github.com/bmbxwbh/miuix-console/blob/main/utils/pagination.js"
click node_accordion "https://github.com/bmbxwbh/miuix-console/blob/main/utils/accordion.js"
click node_datepicker "https://github.com/bmbxwbh/miuix-console/blob/main/utils/datepicker.js"
click node_upload "https://github.com/bmbxwbh/miuix-console/blob/main/utils/upload.js"
click node_glass "https://github.com/bmbxwbh/miuix-console/blob/main/utils/glass.js"

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_tokens,node_base,node_animations toneBlue
class node_components toneAmber
class node_theme,node_ripple,node_counter,node_chart,node_modal,node_toast,node_select,node_tabs,node_pagination,node_accordion,node_datepicker,node_upload toneMint
class node_glasscss,node_smooth,node_glass toneRose
class node_page toneIndigo
```

## Components

### Design foundation

- [Framework entry](https://github.com/bmbxwbh/miuix-console/blob/main/miuix-console.js): `miuix-console.js`
- [Design tokens](https://github.com/bmbxwbh/miuix-console/blob/main/core/tokens.css): `core/tokens.css`
- [Global styles](https://github.com/bmbxwbh/miuix-console/blob/main/core/base.css): `core/base.css`
- [Motion styles](https://github.com/bmbxwbh/miuix-console/blob/main/core/animations.css): `core/animations.css`

### UI components

- [UI component styles](https://github.com/bmbxwbh/miuix-console/tree/main/components): `components`

### Interaction utilities

- [Theme and density](https://github.com/bmbxwbh/miuix-console/blob/main/utils/theme.js): `utils/theme.js`
- [Click ripple](https://github.com/bmbxwbh/miuix-console/blob/main/utils/ripple.js): `utils/ripple.js`
- [Animated counters](https://github.com/bmbxwbh/miuix-console/blob/main/utils/counter.js): `utils/counter.js`
- [Chart renderer](https://github.com/bmbxwbh/miuix-console/blob/main/utils/chart.js): `utils/chart.js`
- [Modal dialogs](https://github.com/bmbxwbh/miuix-console/blob/main/utils/modal.js): `utils/modal.js`
- [Toast feedback](https://github.com/bmbxwbh/miuix-console/blob/main/utils/toast.js): `utils/toast.js`
- [Select control](https://github.com/bmbxwbh/miuix-console/blob/main/utils/select.js): `utils/select.js`
- [Tabs control](https://github.com/bmbxwbh/miuix-console/blob/main/utils/tabs.js): `utils/tabs.js`
- [Pagination](https://github.com/bmbxwbh/miuix-console/blob/main/utils/pagination.js): `utils/pagination.js`
- [Accordion control](https://github.com/bmbxwbh/miuix-console/blob/main/utils/accordion.js): `utils/accordion.js`
- [Date picker](https://github.com/bmbxwbh/miuix-console/blob/main/utils/datepicker.js): `utils/datepicker.js`
- [File upload](https://github.com/bmbxwbh/miuix-console/blob/main/utils/upload.js): `utils/upload.js`

### Visual effects

- [Glass styles](https://github.com/bmbxwbh/miuix-console/blob/main/core/glass.css): `core/glass.css`
- [Smooth corners](https://github.com/bmbxwbh/miuix-console/blob/main/utils/smooth-corner.js): `utils/smooth-corner.js`
- [Liquid glass](https://github.com/bmbxwbh/miuix-console/blob/main/utils/glass.js): `utils/glass.js`

### Other components

- **Web page**

## Connections

- Web page → Framework entry: loads (evidence: `README.md`)
- Framework entry → Design tokens: loads styles (evidence: `miuix-console.js`)
- Framework entry → Global styles: loads styles (evidence: `miuix-console.js`)
- Framework entry → Motion styles: loads styles (evidence: `miuix-console.js`)
- Framework entry → UI component styles: loads styles (evidence: `miuix-console.js`)
- Framework entry → Glass styles: loads styles (evidence: `miuix-console.js`)
- Framework entry → Smooth corners: loads and initializes (evidence: `miuix-console.js`)
- Framework entry → Click ripple: loads and initializes (evidence: `miuix-console.js`)
- Framework entry → Animated counters: loads and initializes (evidence: `miuix-console.js`)
- Framework entry → Theme and density: loads and initializes (evidence: `miuix-console.js`)
- Framework entry → Chart renderer: loads (evidence: `miuix-console.js`)
- Framework entry → Modal dialogs: loads (evidence: `miuix-console.js`)
- Framework entry → Toast feedback: loads (evidence: `miuix-console.js`)
- Framework entry → Select control: loads and initializes (evidence: `miuix-console.js`)
- Framework entry → Tabs control: loads and initializes (evidence: `miuix-console.js`)
- Framework entry → Pagination: loads (evidence: `miuix-console.js`)
- Framework entry → Accordion control: loads and initializes (evidence: `miuix-console.js`)
- Framework entry → Date picker: loads and initializes (evidence: `miuix-console.js`)
- Framework entry → File upload: loads and initializes (evidence: `miuix-console.js`)
- Framework entry → Liquid glass: loads and initializes (evidence: `miuix-console.js`)
- Web page → Theme and density: sets preference
- Web page → Liquid glass: configures effect
