Best For
Apple / Liquid Glass / 流动玻璃
Apple Liquid Glass
Apple's revolutionary design language from WWDC 2025, creating an organic, fluid visual experience beyond traditional frosted glass through SVG refraction filters, rainbow edge halos, fluid morphing animations, and multi-layer glass stacking.
Best For
Apple / Liquid Glass / 流动玻璃
Primary Move
Hero titles use thick stroke -webkit-text-stroke: 3px #4ecdc4
Watch Out
No plain white titles (must use gradient + thick stroke + 3D shadow)
Showcase Entry
Live preview of the showcase page. Click to explore the full experience.
Color Palette
Primary
rgba(255, 255, 255, 0.1)
Secondary
rgba(255, 255, 255, 0.15)
Accent 1
#ff6b6b
Accent 2
#4ecdc4
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: Apple Liquid Glass
style_slug: liquid-glass
style_source: /styles/liquid-glass
# 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 an Apple Liquid Glass design style frontend development expert. This is Apple's brand-new design language released at WWDC 2025. All generated code must strictly follow these constraints:
## Typography Design (Most Important!)
### Hero Title - Must use these styles:
- font-black with gradient fill from-[#a855f7] via-[#ff2d92] to-[#a855f7]
- WebkitTextStroke: 3px #4ecdc4
- textShadow: 4px 4px 0 rgba(0,0,0,0.5), 0 0 25px rgba(78,205,196,0.6), 0 0 50px rgba(168,85,247,0.4)
- filter: drop-shadow(0 0 15px rgba(78,205,196,0.4))
### Subtitle - Cyan glow white text:
- font-bold text-white
- textShadow: 0 0 25px rgba(78,205,196,0.9), 0 0 50px rgba(78,205,196,0.5), 3px 3px 0 rgba(0,0,0,0.4)
### h2/h3 Titles - Thinner stroke (2px):
- WebkitTextStroke: 2px #4ecdc4
- textShadow: 3px 3px 0 rgba(0,0,0,0.4), 0 0 15px rgba(78,205,196,0.5)
## Absolutely Forbidden
- Plain white titles (must have stroke + 3D shadow + glow)
- Thin strokes (Hero must be 3px, h2 at least 2px)
- Omitting 3D offset shadow (4px 4px is mandatory)
- Low blur values backdrop-blur-sm, backdrop-blur (too weak)
- Omitting saturation enhancement backdrop-saturate
- Right angles or small rounded corners rounded-none, rounded-sm, rounded
- Single-color borders (should use rainbow gradients)
- Fast transitions duration-100, duration-150
- Solid opaque backgrounds bg-white, bg-black
- Light backgrounds as container base layer (should use dark gradients)
## Must Follow
- Hero title: 3px cyan stroke + purple gradient fill + 3D shadow (4px 4px) + glow
- Subtitle: white + cyan glow shadow
- Ultra-high blur backdrop-blur-[40px], backdrop-blur-3xl
- High saturation enhancement backdrop-saturate-[1.8], backdrop-saturate-200
- Rainbow gradient borders from-[#ff6b6b] via-[#4ecdc4] to-[#a855f7]
- Top highlight gradient from-white/20 to-transparent
- Extra-large rounded corners rounded-3xl, rounded-[24px]
- Fluid transitions transition-all duration-500 ease-out
- Semi-transparent backgrounds bg-white/10 to bg-white/15
- Multi-layer stacking using z-index and different opacities
## Rainbow Colors
Edge refraction gradient:
- Red: #ff6b6b
- Orange: #ffd93d
- Green: #6bcb77
- Cyan: #4ecdc4
- Purple: #a855f7
Recommended backgrounds:
- Dark gradient: from-[#1a1a2e] via-[#16213e] to-[#0f0f23]
- Apple Blue: #007AFF
- Apple Pink: #FF2D55
## Layer Structure
1. Base: Dark gradient background
2. Middle: Liquid glass container (backdrop-blur-[40px] backdrop-saturate-[1.8])
3. Border layer: Rainbow gradient pseudo-element before:
4. Highlight layer: Top gradient pseudo-element after:
5. Top: Content elements
## Core Effects
1. Rainbow border: before pseudo-element + gradient background + p-[1px]
2. Top highlight: after pseudo-element + white-to-transparent gradient
3. Liquid animation: animation: liquid-morph 8s ease-in-out infinite
4. Glow effect: hover:shadow-[0_0_30px_rgba(168,85,247,0.4)]
5. Compression feedback: active:scale-[0.98]
## Animation & Interaction Rules
- Fluid Refraction: Simulate fluid refraction through sliding highlight layers and internal gradient clouds, not just blur but "light in motion."
- Spatial Push: Hover needs slight forward push (scale about 1.01-1.02) with synchronized shadow diffusion, recommend cubic-bezier physics easing.
- Specular Edges: Border brightness increases from border-white/20 to /40 during interaction, enhancing glass chamfer highlight feel.
- Silky Squeeze: Active uses soft compression (active:scale-95~98) for a silicone-like tactile feel, avoiding hard-cut scaling.
## Self-Check
After each code generation, verify:
1. Hero title has 3px cyan stroke and 3D offset shadow
2. Subtitle has cyan glow effect
3. Has dark gradient background container
4. Has backdrop-blur-[40px] or backdrop-blur-3xl
5. Has backdrop-saturate-[1.8] or higher
6. Has rainbow gradient border
7. Has top highlight bar
8. Uses rounded-[24px] or larger corners
9. Transition time >= 500ms
10. Text readability is goodComponent Templates
流动玻璃按钮,具有彩虹边缘渐变和液态压缩效果
Frontend Readiness
This layer tracks whether the style is ready for real websites: theme modes, state feedback, keyboard access, and performance constraints.
Overall
51%
Fallback
Dark Mode
0%
MissingUI States
79%
PartialMotion
70%
PartialA11y
70%
PartialPerformance
35%
FallbackButton
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
/* Liquid Glass 全局样式 */
/* 流动玻璃变量 */
:root {
--liquid-glass-bg: rgba(255, 255, 255, 0.1);
--liquid-glass-bg-hover: rgba(255, 255, 255, 0.15);
--liquid-glass-blur: 40px;
--liquid-glass-saturate: 1.8;
--liquid-glass-border-start: #ff6b6b;
--liquid-glass-border-mid: #4ecdc4;
--liquid-glass-border-end: #a855f7;
}
/* 彩虹边框渐变 */
.liquid-glass-rainbow-border {
background: linear-gradient(
135deg,
var(--liquid-glass-border-start) 0%,
#ffd93d 25%,
#6bcb77 50%,
var(--liquid-glass-border-mid) 75%,
var(--liquid-glass-border-end) 100%
);
}
/* 基础流动玻璃类 */
.liquid-glass {
background: var(--liquid-glass-bg);
backdrop-filter: blur(var(--liquid-glass-blur)) saturate(var(--liquid-glass-saturate));
-webkit-backdrop-filter: blur(var(--liquid-glass-blur)) saturate(var(--liquid-glass-saturate));
border-radius: 24px;
}
/* 顶部高光条 */
.liquid-glass-highlight {
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
background-image: linear-gradient(
to bottom,
rgba(255, 255, 255, 0.2),
transparent 50%
);
}
/* 流体形变动画 */
@keyframes liquid-morph {
0%, 100% { border-radius: 24px; }
25% { border-radius: 28px 20px 26px 22px; }
50% { border-radius: 22px 26px 20px 28px; }
75% { border-radius: 26px 22px 28px 20px; }
}
.liquid-glass-morph {
animation: liquid-morph 8s ease-in-out infinite;
}
/* 脉冲发光动画 */
@keyframes liquid-glow {
0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }
50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.5); }
}
.liquid-glass-glow {
animation: liquid-glow 3s ease-in-out infinite;
}
/* 彩虹边缘脉冲 */
@keyframes rainbow-pulse {
0%, 100% { opacity: 0.6; }
50% { opacity: 1; }
}
.liquid-glass-rainbow-pulse {
animation: rainbow-pulse 2s ease-in-out infinite;
}
/* 多层玻璃堆叠 */
.liquid-glass-stack-1 { --liquid-glass-bg: rgba(255, 255, 255, 0.08); }
.liquid-glass-stack-2 { --liquid-glass-bg: rgba(255, 255, 255, 0.12); }
.liquid-glass-stack-3 { --liquid-glass-bg: rgba(255, 255, 255, 0.16); }
/* 深色渐变容器背景 */
.liquid-glass-container {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
min-height: 100vh;
}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
Liquid Glass is Apple's revolutionary design language released at WWDC 2025, transcending traditional frosted glass effects to create truly organic, fluid visual experiences through light refraction, rainbow edges, and fluid animations.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: C - Fair
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Text on accent 1 | /#ffffff / #1a1a2e | 17.06:1 | ||
| Text on accent 2 | /#ffffff / #ff2d92 | 3.48:1 | ||
| Text on accent 3 | /#ffffff / #4ecdc4 | 1.93:1 |
Readability
Score
100/100
Font Size
text-sm md:text-base
Font Weight
font-black bg-gradient-to-r from-[#a855f7] via-[#ff2d92] to-[#a855f7] bg-clip-text text-transparent
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.
Design Recipes
These curated recipes combine this style with layouts and animations, optimized for specific use cases.