Best For
Material Design / Material UI / Google design system
材料设计
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.
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
AI Implementation
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.
Use this by default: copy it, append the concrete requirement, and let AI generate consistent production UI.
When to use
How to use
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
Material 风格按钮,强调海拔反馈与下压触感
Frontend Readiness
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%
PartialUI States
100%
CompleteMotion
70%
PartialA11y
70%
PartialPerformance
70%
PartialButton
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
FAQ
/* 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
The following layout patterns pair well with the Material Design style.
IDE Integration
Download configuration files for AI coding assistants to generate code in this style.
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
Material Design is a design language launched by Google in 2014, comparing digital interfaces to paper and ink with physical properties.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: D - Poor
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| 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.