# google/material-design-lite architecture

> Architecture diagram of the GitHub repository google/material-design-lite, 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/google/material-design-lite
- Repository: https://github.com/google/material-design-lite

## Overview

Material Design Lite (MDL) is a framework-free library of Material Design CSS, JavaScript, and HTML components for static websites. The principal workflow is a developer adding MDL assets to a site, where browser-side components provide styled controls, navigation, layout, and feedback; the README describes graceful CSS-only degradation in older browsers. The tree and excerpts support the component families and lifecycle manager, but not most component-to-manager wiring, so those connections are omitted. Build tooling and its helper are excluded as peripheral to the runtime product.

Main entry points: [`src/material-design-lite.scss`](https://github.com/google/material-design-lite/blob/mdl-1.x/src/material-design-lite.scss) (Style foundation), [`src/button/button.js`](https://github.com/google/material-design-lite/blob/mdl-1.x/src/button/button.js) (Buttons)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundation["Styles and layout"]
  node_foundation_styles["Style foundation"]
  node_layout["Page layout<br/>[layout.js]"]
  node_grid["Responsive grid"]
  node_typography["Typography"]
  node_animation["Animation"]
end

subgraph group_controls["Input controls"]
  node_buttons["Buttons<br/>[button.js]"]
  node_checkbox["Checkboxes<br/>[checkbox.js]"]
  node_radio["Radio buttons<br/>[radio.js]"]
  node_switch["Switches<br/>[switch.js]"]
  node_slider["Slider<br/>[slider.js]"]
  node_textfield["Text fields<br/>[textfield.js]"]
  node_icon_toggle["Icon toggle<br/>[icon-toggle.js]"]
  node_data_table["Data table<br/>[data-table.js]"]
end

subgraph group_navigation["Navigation components"]
  node_tabs["Tabs<br/>[tabs.js]"]
  node_menu["Menu<br/>[menu.js]"]
  node_list["Lists"]
  node_cards["Cards and chips"]
end

subgraph group_feedback["Feedback components"]
  node_dialog["Dialog"]
  node_snackbar["Snackbar<br/>[snackbar.js]"]
  node_progress["Progress<br/>[progress.js]"]
  node_spinner["Spinner<br/>[spinner.js]"]
  node_tooltip["Tooltip<br/>[tooltip.js]"]
  node_ripple["Ripple effect<br/>[ripple.js]"]
end

subgraph group_runtime["Component runtime"]
  node_component_handler["Component lifecycle"]
end

node_developer(("Website developer"))
node_site["Static website"]

node_developer -->|"adds to site"| node_foundation_styles
node_developer -->|"adds to site"| node_buttons
node_foundation_styles -->|"styles content"| node_site
node_buttons -->|"enhances content"| node_site

click node_foundation_styles "https://github.com/google/material-design-lite/blob/mdl-1.x/src/material-design-lite.scss"
click node_layout "https://github.com/google/material-design-lite/blob/mdl-1.x/src/layout/layout.js"
click node_grid "https://github.com/google/material-design-lite/tree/mdl-1.x/src/grid"
click node_typography "https://github.com/google/material-design-lite/tree/mdl-1.x/src/typography"
click node_animation "https://github.com/google/material-design-lite/tree/mdl-1.x/src/animation"
click node_buttons "https://github.com/google/material-design-lite/blob/mdl-1.x/src/button/button.js"
click node_checkbox "https://github.com/google/material-design-lite/blob/mdl-1.x/src/checkbox/checkbox.js"
click node_radio "https://github.com/google/material-design-lite/blob/mdl-1.x/src/radio/radio.js"
click node_switch "https://github.com/google/material-design-lite/blob/mdl-1.x/src/switch/switch.js"
click node_slider "https://github.com/google/material-design-lite/blob/mdl-1.x/src/slider/slider.js"
click node_textfield "https://github.com/google/material-design-lite/blob/mdl-1.x/src/textfield/textfield.js"
click node_icon_toggle "https://github.com/google/material-design-lite/blob/mdl-1.x/src/icon-toggle/icon-toggle.js"
click node_data_table "https://github.com/google/material-design-lite/blob/mdl-1.x/src/data-table/data-table.js"
click node_tabs "https://github.com/google/material-design-lite/blob/mdl-1.x/src/tabs/tabs.js"
click node_menu "https://github.com/google/material-design-lite/blob/mdl-1.x/src/menu/menu.js"
click node_list "https://github.com/google/material-design-lite/tree/mdl-1.x/src/list"
click node_cards "https://github.com/google/material-design-lite/tree/mdl-1.x/src/card"
click node_dialog "https://github.com/google/material-design-lite/tree/mdl-1.x/src/dialog"
click node_snackbar "https://github.com/google/material-design-lite/blob/mdl-1.x/src/snackbar/snackbar.js"
click node_progress "https://github.com/google/material-design-lite/blob/mdl-1.x/src/progress/progress.js"
click node_spinner "https://github.com/google/material-design-lite/blob/mdl-1.x/src/spinner/spinner.js"
click node_tooltip "https://github.com/google/material-design-lite/blob/mdl-1.x/src/tooltip/tooltip.js"
click node_ripple "https://github.com/google/material-design-lite/blob/mdl-1.x/src/ripple/ripple.js"
click node_component_handler "https://github.com/google/material-design-lite/blob/mdl-1.x/src/mdlComponentHandler.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_foundation_styles,node_layout,node_grid,node_typography,node_animation toneBlue
class node_buttons,node_checkbox,node_radio,node_switch,node_slider,node_textfield,node_icon_toggle,node_data_table toneAmber
class node_tabs,node_menu,node_list,node_cards toneMint
class node_dialog,node_snackbar,node_progress,node_spinner,node_tooltip,node_ripple toneRose
class node_component_handler,node_developer,node_site toneIndigo
```

## Components

### Styles and layout

- [Style foundation](https://github.com/google/material-design-lite/blob/mdl-1.x/src/material-design-lite.scss): `src/material-design-lite.scss`
- [Page layout](https://github.com/google/material-design-lite/blob/mdl-1.x/src/layout/layout.js): `src/layout/layout.js`
- [Responsive grid](https://github.com/google/material-design-lite/tree/mdl-1.x/src/grid): `src/grid`
- [Typography](https://github.com/google/material-design-lite/tree/mdl-1.x/src/typography): `src/typography`
- [Animation](https://github.com/google/material-design-lite/tree/mdl-1.x/src/animation): `src/animation`

### Input controls

- [Buttons](https://github.com/google/material-design-lite/blob/mdl-1.x/src/button/button.js): `src/button/button.js`
- [Checkboxes](https://github.com/google/material-design-lite/blob/mdl-1.x/src/checkbox/checkbox.js): `src/checkbox/checkbox.js`
- [Radio buttons](https://github.com/google/material-design-lite/blob/mdl-1.x/src/radio/radio.js): `src/radio/radio.js`
- [Switches](https://github.com/google/material-design-lite/blob/mdl-1.x/src/switch/switch.js): `src/switch/switch.js`
- [Slider](https://github.com/google/material-design-lite/blob/mdl-1.x/src/slider/slider.js): `src/slider/slider.js`
- [Text fields](https://github.com/google/material-design-lite/blob/mdl-1.x/src/textfield/textfield.js): `src/textfield/textfield.js`
- [Icon toggle](https://github.com/google/material-design-lite/blob/mdl-1.x/src/icon-toggle/icon-toggle.js): `src/icon-toggle/icon-toggle.js`
- [Data table](https://github.com/google/material-design-lite/blob/mdl-1.x/src/data-table/data-table.js): `src/data-table/data-table.js`

### Navigation components

- [Tabs](https://github.com/google/material-design-lite/blob/mdl-1.x/src/tabs/tabs.js): `src/tabs/tabs.js`
- [Menu](https://github.com/google/material-design-lite/blob/mdl-1.x/src/menu/menu.js): `src/menu/menu.js`
- [Lists](https://github.com/google/material-design-lite/tree/mdl-1.x/src/list): `src/list`
- [Cards and chips](https://github.com/google/material-design-lite/tree/mdl-1.x/src/card): `src/card`

### Feedback components

- [Dialog](https://github.com/google/material-design-lite/tree/mdl-1.x/src/dialog): `src/dialog`
- [Snackbar](https://github.com/google/material-design-lite/blob/mdl-1.x/src/snackbar/snackbar.js): `src/snackbar/snackbar.js`
- [Progress](https://github.com/google/material-design-lite/blob/mdl-1.x/src/progress/progress.js): `src/progress/progress.js`
- [Spinner](https://github.com/google/material-design-lite/blob/mdl-1.x/src/spinner/spinner.js): `src/spinner/spinner.js`
- [Tooltip](https://github.com/google/material-design-lite/blob/mdl-1.x/src/tooltip/tooltip.js): `src/tooltip/tooltip.js`
- [Ripple effect](https://github.com/google/material-design-lite/blob/mdl-1.x/src/ripple/ripple.js): `src/ripple/ripple.js`

### Component runtime

- [Component lifecycle](https://github.com/google/material-design-lite/blob/mdl-1.x/src/mdlComponentHandler.js): `src/mdlComponentHandler.js`

### Other components

- **Website developer**
- **Static website**

## Connections

- Website developer → Style foundation: adds to site (evidence: `README.md`)
- Website developer → Buttons: adds to site (evidence: `README.md`)
- Style foundation → Static website: styles content (evidence: `README.md`)
- Buttons → Static website: enhances content (evidence: `README.md`)
