Material Design 2
Google's 2014-2020 system: paper surfaces at shadow elevations, a bold primary colour, Roboto, FABs and ink ripples.
Try it
Ground
#fafafa
Surface
#ffffff
Text
#212121
Accent
#6200ee
- Type
- sans
- Radius
- 4px
- Material
- box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)
This screen uses only the look's tokens. Click, type and toggle it. The libraries below are what your agent installs to build the real thing.
What your agent builds it with
Component kits
Material UIGoogle's Material Design as an installable React kit, themed through Emotion, with MUI X grids and pickers beside it.a React app that should look like Google Material Design
Material 3 / Material You: Material UI still ships Material Design 2; use vuetify on Vue or konsta for mobile web
Primitives
React Aria ComponentsAdobe's unstyled React components with the deepest accessibility, i18n and touch handling.an app that must pass a formal accessibility audit (government, health, finance, enterprise procurement)
a marketing landing page: the extra semantics buy nothing, use shadcn-ui with magic-ui
Feedback
SonnerOpinionated toast component with stacking, swipe to dismiss and promise toasts; ports for Vue, Svelte, Solid and Angular.confirming a background action finished away from where it started (Saved, Invite sent)
form validation errors: show them inline next to the field
Command menus
cmdkFast, unstyled React command menu with built-in fuzzy filtering.a Cmd+K palette in a SaaS app: jump to page, run action, switch workspace
you want nested scopes, breadcrumbs and tuned motion out of the box: use kobra's command-menu
Icons
Material SymbolsGoogle's Material icons as variable fonts (Outlined, Rounded, Sharp) with fill, weight, grade and optical-size axes.a Material Design or Material 3 (Material You) app: the icon set Google's own components use
a shadcn/ui, Apple-like or neutral product: Material glyphs read as Google, use lucide
Charts
RechartsComposable SVG charts for React; the engine behind shadcn/ui charts.standard line, area, bar and pie charts in a React dashboard
more than ~5,000 points or real-time streams: SVG slows down, use uplot or echarts
Tables
TanStack TableHeadless table logic: sorting, filtering, pagination, selection and grouping, rendered with your own markup.a sortable, filterable data table styled by your own kit (shadcn-ui's Data Table is built on it)
a spreadsheet-like grid with cell editing and keyboard navigation out of the box: use ag-grid
Editors
TiptapHeadless rich-text editor framework on ProseMirror, with 100+ MIT extensions.a rich text editor for comments, posts or descriptions with bold, lists, links and mentions
a flowchart or node editor: use xyflow
The plan your agent reads
For “landing page with a signup form, a pricing table and toasts” in Material Design 2: the plan tool's answer, word for word
look: Material Design 2 (material-design, corporate family)
framework: react (assumed; pass framework)
build with every line below: run its install, build its part with it (usage under it), then adapt it to the rules below. A hand-written stand-in for a listed part (a <details> for an Accordion) is a miss
component-kit (its parts for this page) -> mui: Google's Material Design as an installable React kit, themed through Emotion, with MUI X grids and pickers beside it. (look's own kit) | npm i @mui/material @emotion/react @emotion/styled | use its Button, Card, Badge, Table, Text Field | else: mantine, boardui
feedback (toasts) -> sonner: progress of an async task the user can walk away from (toast.promise) | npm i sonner | else: skullet, shadcn-ui
import { Toaster, toast } from 'sonner'
<Toaster position="bottom-right" />
<button onClick={() => toast('Invite sent', { action: { label: 'Undo', onClick: undoInvite } })}>Invite</button>
icons (every icon on the page: one size and stroke, set once) -> material-symbols: Google's Material icons as variable fonts (Outlined, Rounded, Sharp) with fill, weight, grade and optical-size axes. (look's pick) | npm i material-symbols | else: lucide
import 'material-symbols/rounded.css'
<span className="material-symbols-rounded" aria-hidden="true">home</span>
/* selected */
.active .material-symbols-rounded { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
done when: every package above is imported where its part is, and no listed part is hand-written
vs: Not material-you: a fixed brand palette, 4px corners and shadows, not dynamic tonal colour and pill shapes. Not flat-design: elevation and shadow carry hierarchy. Not corporate: a named system with its own components and motion.
type: Roboto (or the brand face) on the Material 2 scale: H1 96 light, H4 34, H6 20 medium, body 16 and 14, buttons 14 medium uppercase with 1.25px tracking, captions 12. 8dp grid with 16px mobile and 24px desktop margins. Icons from Material Symbols (via iconify's material-symbols set).
colour: One primary and one secondary with light and dark variants (baseline #6200ee and #03dac6), white surfaces on #fafafa, text at 87%, 60% and 38% black for high, medium and disabled. Elevation by shadow: cards 1-2dp, app bar 4dp, FAB 6dp, dialogs 24dp.
motion: Standard curve cubic-bezier(.4,0,.2,1): 150-200ms for small components, 250-300ms for screens; ripple from the touch point on press; container transform from a card into its detail view.
avoid: every surface at the same elevation; uppercase anywhere but buttons and overlines; Material You pill shapes mixed with 4px corners; ripples on things you cannot press; more than one FAB per screen
refs: name a real one first: the user's, else search Mobbin, Refero or Inspo (free) if connected, else Material Design 2 m2.material.io, MUI mui.com or a DESIGN.md from styles.refero.design or devault.design, and say how to connect one (get references)
brief first: build every part it names before styling; the first screen shows the main content working, not an empty hero; at desktop width fill it (columns, a side panel), never a phone-width column in empty space
never, whatever the look: text under 4.5:1 contrast (on glass, over its lightest backdrop); a headline clipped or split mid-word at 390px; a font named, not loadedRules
- Type
- Roboto (or the brand face) on the Material 2 scale: H1 96 light, H4 34, H6 20 medium, body 16 and 14, buttons 14 medium uppercase with 1.25px tracking, captions 12. 8dp grid with 16px mobile and 24px desktop margins. Icons from Material Symbols (via iconify's material-symbols set).
- Colour
- One primary and one secondary with light and dark variants (baseline #6200ee and #03dac6), white surfaces on #fafafa, text at 87%, 60% and 38% black for high, medium and disabled. Elevation by shadow: cards 1-2dp, app bar 4dp, FAB 6dp, dialogs 24dp.
- Motion
- Standard curve cubic-bezier(.4,0,.2,1): 150-200ms for small components, 250-300ms for screens; ripple from the touch point on press; container transform from a card into its detail view.
Goes wrong when
- every surface at the same elevation
- uppercase anywhere but buttons and overlines
- Material You pill shapes mixed with 4px corners
- ripples on things you cannot press
- more than one FAB per screen
Not to be confused with
- Material Youa fixed brand palette, 4px corners and shadows, not dynamic tonal colour and pill shapes.
- Flat designelevation and shadow carry hierarchy.
- Corporate / dashboarda named system with its own components and motion.
Also in Corporate / dashboard
Brief words that land here
material design · material ui · material 2 · md2 · google material · floating action button







