How google/material-design-lite works
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: material-design-lite.scss Style foundation · button.js Buttons
Components 26
Styles and layout
- Style foundation
src/material-design-lite.scss - Page layout
src/layout/layout.js - Responsive grid
src/grid - Typography
src/typography - Animation
src/animation
Input controls
- Buttons
src/button/button.js - Checkboxes
src/checkbox/checkbox.js - Radio buttons
src/radio/radio.js - Switches
src/switch/switch.js - Slider
src/slider/slider.js - Text fields
src/textfield/textfield.js - Icon toggle
src/icon-toggle/icon-toggle.js - Data table
src/data-table/data-table.js
Navigation components
- Tabs
src/tabs/tabs.js - Menu
src/menu/menu.js - Lists
src/list - Cards and chips
src/card
Feedback components
Component runtime
- Component lifecycle
src/mdlComponentHandler.js
Other components
- Website developer
- Static website
Connections 4
- Website developer → Style foundation: adds to site
README.md - Website developer → Buttons: adds to site
README.md - Style foundation → Static website: styles content
README.md - Buttons → Static website: enhances content
README.md