HomeStylesTemplates
StyleKit
StylesTemplates
  1. Home
  2. /Styles
  3. /Material Design
Style Catalog/Material Design

Material Design

材料设计

D
57/100Poor

Google's design system based on the metaphor of paper and ink, emphasizing hierarchy, motion, bold colors, and responsive interactions -- the standard for modern mobile design.

Material DesignMaterial UIGoogle design systemelevation shadowsripple effectfloating action buttonmaterial componentsAndroid uicard layoutmotion designmobile app design
View Full Showcase →Templates

Best For

Material Design / Material UI / Google design system

Primary Move

Use elevation shadow system to express hierarchy

Watch Out

Do NOT use inconsistent shadow depths

Showcase Entry

Live preview of the showcase page. Click to explore the full experience.

View Full Showcase →

Color Palette

Primary

#6200ee

Secondary

#03dac6

Accent 1

#ff0266

Accent 2

#ffde03

Accent 3

#00c853

Accent 4

#c12700

AI ImplementationComponent PreviewReadinessFAQExportsRatings & Feedback

AI Implementation

Copy the Hard Prompt first, then use the spec when needed

Use the Hard Prompt by default to generate UI. Use the Design Spec to understand, modify, and review the style. Use the Creative Brief for early exploration.

Hard Prompt

Use this by default: copy it, append the concrete requirement, and let AI generate consistent production UI.

When to use

  • -When AI should generate UI directly
  • -When repeated outputs must stay consistent
  • -When style drift is the main risk

How to use

  • -Copy the full prompt
  • -Append the concrete requirement
  • -Review against forbidden rules and UI states
STYLEKIT_STYLE_REFERENCE
style_name: Material Design
style_slug: material-design
style_source: /styles/material-design

# Hard Prompt

## When To Use
Use this when you want AI to generate code with strict style consistency. It is the safest default for production UI.

## How To Use
- Copy the full prompt into ChatGPT, Claude, Cursor, or another coding assistant.
- Append the concrete product/page requirement after the prompt.
- After generation, check the forbidden rules and interaction states before accepting the output.

Strictly follow the style rules below and maintain consistency. No style drift allowed.

## Requirements

- Prioritize style consistency first, then creative extension.
- When conflicts arise, treat prohibitions as the highest priority.
- Self-check before output: verify colors, typography, spacing, and interactions still match this style.

## Style Rules

You are a Material Design frontend development expert. All generated code must strictly follow these constraints:

## Absolute Prohibitions

- Using inconsistent shadow depths
- Using overly soft muted color schemes
- Omitting interaction feedback effects
- Breaking the 8dp grid system

## Must Follow

- Elevation shadows shadow-[0_1px_3px_rgba(0,0,0,0.12),0_1px_2px_rgba(0,0,0,0.24)]
- Primary color bg-[#6200ee] text-white
- Accent color bg-[#03dac6]
- Rounded cards rounded-xl
- Uppercase button text uppercase tracking-wider

## Color Palette

- Primary: #6200ee (purple)
- Primary variant: #3700b3
- Secondary: #03dac6 (cyan)
- Background: #fafafa
- Surface: #ffffff
- Error: #b00020

## Spacing

- Based on 8dp grid
- p-2 (8px), p-4 (16px), p-6 (24px), p-8 (32px)

## Animation & Interaction Rules

- Elevation Physics: Hover lifts from low to high elevation shadow, optionally paired with slight -translate-y-1 to enhance Z-axis feel.
- Pseudo-Ripple: Active state must include at least active:scale-[0.98] or brightness press feedback, simulating touch ripple prelude.
- Deceleration Curve: Interaction transitions prefer ease-[cubic-bezier(0.4,0,0.2,1)], duration 200-300ms.
- Input Float: On input focus, label must smoothly float up and shrink, with border highlight transitioning in sync.

## Absolute Bans (Match and Refuse)

If any of the following patterns appear, it is a style violation — rewrite without exception.

- use inconsistent shadow depths
- use overly soft color schemes
- omit interaction feedback
- break the 8dp grid system
- omit active:scale-[0.98] on buttons (Material Pseudo-Ripple is core to tactile authenticity)
- use non-Material standard easing curves (must use cubic-bezier(0.4,0,0.2,1))
- keep card shadows unchanged on hover (elevation change is a Material physics rule, cannot be omitted)

## Self-Check (Verify Before Shipping)

If any item fails, the style has drifted — fix before shipping.

- [ ] No purple-to-blue gradients
- [ ] No overused fonts (Inter, Roboto, Geist, Fraunces, Plus Jakarta Sans)
- [ ] No nested cards (cards inside cards)
- [ ] No gray text on colored backgrounds
- [ ] Body text contrast meets WCAG AA (>= 4.5:1)
- [ ] No bounce or elastic easing curves
- [ ] Animations have a prefers-reduced-motion fallback
- [ ] Body text line length capped at 65-75 characters
- [ ] No side-stripe accent borders (border-left/right > 1px)
- [ ] No gradient text (background-clip: text)
- [ ] No glassmorphism used as the default surface treatment
- [ ] No tiny uppercase tracked eyebrow labels above every section heading
- [ ] do NOT use inconsistent shadow depths
- [ ] do NOT use overly soft color schemes
- [ ] do NOT omit interaction feedback
- [ ] do NOT break the 8dp grid system
- [ ] do NOT omit active:scale-[0.98] on buttons (Material Pseudo-Ripple is core to tactile authenticity)

Component Templates

Component Preview

按钮

Material 风格按钮,强调海拔反馈与下压触感

Frontend Readiness

Dark Mode, States, Motion, and Accessibility

This layer tracks whether the style is ready for real websites: theme modes, state feedback, keyboard access, and performance constraints.

Overall

76%

Curated

Dark Mode

70%

Partial

UI States

100%

Complete

Motion

70%

Partial

A11y

70%

Partial

Performance

70%

Partial

Key State Coverage

light / dark
HoverFocus VisibleDisabledLoadingEmptyErrorSuccess

Button

Default / Hover / Focus Visible / Active / Disabled

Input

Default / Hover / Focus Visible / Disabled / Error

Card

Default / Hover / Focus Visible / Loading / Skeleton

Form

Default / Focus Visible / Disabled / Loading / Error

Implementation Notes

  • Use tonal surfaces and state layers; do not simply invert light theme elevations.
  • Check contrast in both light and dark modes.
  • Keep generated pages image-aware: explicit dimensions, lazy loading below the fold, and no layout shift.

FAQ

Material Design — Frequently Asked Questions

01What is the Material Design design style?
Google's design system based on the metaphor of paper and ink, emphasizing hierarchy, motion, bold colors, and responsive interactions -- the standard for modern mobile design. Its core principle: Material Design is a design language launched by Google in 2014, comparing digital interfaces to paper and ink with physical properties.
02What colors does Material Design use?
Material Design uses #6200ee as its primary color and #03dac6 as its secondary color, with accent colors #ff0266, #ffde03, #00c853, #c12700. Every hex value can be copied from the palette on this page.
03How do I apply Material Design correctly?
Key practices: Use elevation shadow system to express hierarchy. Apply ripple effects as click feedback. Use bold vivid colors.
04What are common mistakes with Material Design?
Avoid: Do NOT use inconsistent shadow depths. Do NOT use overly soft color schemes. Do NOT omit interaction feedback.
05How do I prompt AI to generate Material Design UI?
Copy the ready-made AI prompt on this page — it bundles the design tokens and component rules — and paste it into ChatGPT, Claude, Cursor, or v0. Effective prompts include the keywords: Material Design, Material UI, Google design system, elevation shadows.
Global Styles

Global CSS

css
/* Material Design 全局样式 */

:root {
  --md-primary: #6200ee;
  --md-primary-variant: #3700b3;
  --md-secondary: #03dac6;
  --md-secondary-variant: #018786;
  --md-background: #fafafa;
  --md-surface: #ffffff;
  --md-error: #b00020;
}

/* 海拔阴影系统 */
.md-elevation-1 {
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.md-elevation-2 {
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.md-elevation-3 {
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

.md-elevation-4 {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

/* 涟漪效果基础 */
.md-ripple {
  position: relative;
  overflow: hidden;
}

/* 浮动标签输入框 */
.md-text-field {
  background: #f5f5f5;
  border-radius: 4px 4px 0 0;
  border-bottom: 2px solid #9e9e9e;
}

.md-text-field:focus {
  border-bottom-color: var(--md-primary);
}
@keyframes material-design-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes material-design-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.material-design-card {
  position: relative;
  overflow: hidden;
}

.material-design-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(135deg, rgba(98, 0, 238, 0.05), transparent);
  pointer-events: none;
}

.material-design-card:hover::before {
  opacity: 1;
}

.material-design-gradient {
  background: linear-gradient(135deg, #6200ee, #ff0266);
}

.material-design-gradient-text {
  background: linear-gradient(135deg, #6200ee, #ff0266);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.material-design-frosted {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(98, 0, 238, 0.08);
}

.material-design-accent-corner {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}

.material-design-animate-in {
  animation: material-design-fade-in 0.5s ease-out both;
}

Compatible Layout Patterns

Recommended Layouts

The following layout patterns pair well with the Material Design style.

Dashboard Layout

仪表盘布局

IDE Integration

IDE Configuration Export

Download configuration files for AI coding assistants to generate code in this style.

Style Pack

Export Style Pack

Get complete machine-readable style assets including design tokens, Tailwind presets, CSS variables, and shadcn/ui themes.

Metadata

Style metadata including version information

Design Tokens

Compatible with Figma / Style Dictionary / Tokens Studio

Tailwind Preset

Tailwind CSS theme preset, import directly in config

Global CSS

CSS variables and base styles

shadcn Theme

shadcn/ui theme configuration

CSS Variables

Pure CSS variables, works with any project

SKILL.md

Loadable skill pack for Cursor / Claude Code / VS Code

Design Philosophy

Material Design is a design language launched by Google in 2014, comparing digital interfaces to paper and ink with physical properties.

Accessibility

Accessibility Score

WCAG 2.1 compliance analysis based on color contrast and typography readability.

57

Overall Score

Grade: D - Poor

Contrast Ratios

Score: 45/100Average Ratio: 5.57:1
AA FailAAA Fail
ContextColorsRatioAAAAA
Text on background
/#212121 / #ffffff
16.1:1
Secondary text on background
/#757575 / #ffffff
4.61:1
Muted text on background
/#9e9e9e / #ffffff
2.68:1
Text on secondary background
/#212121 / #f5f5f5
14.77:1
Secondary text on secondary
/#757575 / #f5f5f5
4.23:1
Button primary
/#ffffff / #6200ee
7.63:1
Text on accent 1
/#212121 / #6200ee
2.11:1
Alt text on accent 1
/#757575 / #6200ee
1.65:1
Text on accent 2
/#212121 / #03dac6
9.08:1
Alt text on accent 2
/#757575 / #03dac6
2.6:1
Text on accent 3
/#212121 / #018786
3.69:1
Alt text on accent 3
/#757575 / #018786
1.06:1
Text on accent 4
/#212121 / #bb86fc
6.08:1
Alt text on accent 4
/#757575 / #bb86fc
1.74:1

Readability

Score

85/100

Font Size

text-sm md:text-base

Font Weight

font-sans font-medium tracking-tight

Line Height

default

Scoring is based on WCAG 2.1 standards. AA requires 4.5:1 contrast for normal text, 3:1 for large text; AAA requires 7:1 for normal text, 4.5:1 for large text.

StyleKit

A curated web design style library to help AI generate better-looking websites.

FeedbackSupport Maintenance
Explore+
StylesTemplatesAnimationsResource LibraryPromptsCollections
Learn+
FoundationsGuideRecipesChangelogBlog
Trust+
AboutContactPrivacyTermsSupport UsRefunds

(c) 2026 StyleKit. Open source project.

闄旾CP澶?025065501鍙?3

Colophon/SK — 2026

Built with the Editorial style

01FeedbackTell us what could work better02Support MaintenanceIf StyleKit helps your workflow, voluntary support helps cover servers, domains, and ongoing upkeep.

StyleKit

A curated web design style library to help AI generate better-looking websites.

GitHub Repository

Explore

StylesTemplatesAnimationsResource LibraryPromptsCollections

Learn

FoundationsGuideRecipesChangelogBlog

Dispatch

Get notified when new styles, templates and tools ship.

Stay Updated

By subscribing, you agree to our Privacy Policy and Terms.

(c) 2026 StyleKit. Open source project.

AboutContactPrivacyTermsSupport UsRefunds/陕ICP备2025065501号-3

StyleKit