StealThis .dev

Material Design

Google's design language — elevation through shadows, bold color, responsive animations, and a structured 8px grid.

Open in Lab
html css javascript
Targets: JS HTML

Code

Material Design

Material Design, introduced by Google at I/O 2014, is a comprehensive design system rooted in a single powerful metaphor: the interface behaves like sheets of physical paper stacked in a lit environment. Paper casts shadows. Paper has surface color. Paper sits at a specific elevation, and that elevation is communicated through a precise, mathematically defined shadow system. Interactions leave ripples — physical traces of contact that confirm every touch or click.

The system is built on a strict 8dp baseline grid that governs spacing, component sizing, and layout margins. Typography follows a typescale derived from Roboto — Google’s geometric humanist sans-serif — with tightly defined role names (Display, Headline, Title, Body, Label) and corresponding sizes, weights, and line heights. Color is guided by the Material color system: a primary hue, a secondary/accent hue, and a surface/background color, each with light/dark variants for on-color text.

Animation in Material is purposeful and physics-informed: elements don’t simply appear or fade — they move along arcs, accelerate from rest, and decelerate to a stop. The ripple effect (a radial ink spread on touch) is the system’s signature micro-interaction, providing tactile feedback on every interactive surface.

Key characteristics

  • Elevation expressed via layered box-shadow — 5 defined elevation levels
  • Primary color #6200EE (Material Purple), secondary #03DAC6 (Teal)
  • Roboto font family throughout
  • Strict 8dp spacing grid — all padding/margin in multiples of 8px
  • Buttons: border-radius: 4px, uppercase text, letter-spacing: 0.08em
  • Ripple effect on interactive elements via injected <span> + CSS animation
  • Material outlined text field with floating label on focus/fill
  • Chips: #E0E0E0 pill with dark text, border-radius: 16px

When to use

  • Android apps and web apps targeting Android/Google ecosystem users
  • Productivity tools, admin panels, and dashboards following Google’s design language
  • Projects requiring a proven, accessible, and well-documented component system
  • Any context where familiar, trustworthy UI patterns reduce friction