HomeStylesTemplates
StyleKit
StylesTemplates
  1. Home
  2. /Styles
  3. /Liquid Glass
Style Catalog/Liquid Glass

Liquid Glass

Liquid Glass

C
61/100Fair

Premium frosted glass inspired by Apple Liquid Glass. High gaussian blur, saturation boost, multi-layer inner glow and chromatic edges create the sensation of light flowing through real glass.

liquid glassfrostedblurrefractiontranslucentmoderncontemporarysleek现代简洁
View Full Showcase →Templates

Best For

liquid glass / frosted / blur

Primary Move

Use high blur values backdrop-blur-[40px] or backdrop-blur-[60px]

Watch Out

Do not use on solid color backgrounds (requires gradient or image background)

Showcase Entry

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

View Full Showcase →

Color Palette

Primary

rgba(255, 255, 255, 0.15)

Secondary

rgba(255, 255, 255, 0.10)

Accent 1

#667eea

Accent 2

#764ba2

Accent 3

#f093fb

Accent 4

#f5576c

AI ImplementationComponent PreviewReadinessExportsRatings & 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: Liquid Glass
style_slug: glassmorphism
style_source: /styles/glassmorphism

# 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
# Liquid Glass Design System

You are an expert frontend developer specializing in Apple's Liquid Glass (Glassmorphism 2.0) design language. Generate all code strictly following these specifications.

## Style Identity
- **Name**: Liquid Glass / Premium Glassmorphism
- **Category**: Modern, Premium
- **Essence**: Real glass optics — refraction, chromatic dispersion, inner luminance, depth layering
- **Mood**: Ethereal, premium, immersive, futuristic
- **Inspiration**: Apple WWDC25 Liquid Glass, visionOS interfaces

---

## Core Visual Principles

### 1. Background Requirement (CRITICAL)
```
MANDATORY: Rich gradient or image background
Examples:
- from-indigo-600 via-purple-600 to-pink-500
- from-blue-500 via-purple-500 to-pink-500
- from-cyan-400 via-blue-500 to-indigo-600

Add floating ambient orbs for depth:
<div class="absolute top-20 right-[-60px] w-[400px] h-[400px] rounded-full bg-pink-400/30 blur-3xl" />
```

### 2. Glass Panel Three-Layer Structure
```
LAYER 1 — Glass Surface:
bg-white/10 to bg-white/20
backdrop-blur-[40px] or backdrop-blur-[60px]
backdrop-saturate-[180%]

LAYER 2 — Inner Luminance:
<span class="absolute inset-0 bg-gradient-to-b from-white/18 to-transparent pointer-events-none" />

LAYER 3 — Multi-Depth Shadows:
shadow-[0_8px_32px_rgba(0,0,0,0.12),inset_0_1px_0_rgba(255,255,255,0.35)]
```

### 3. Border System
```
Default: border border-white/20
Hover: border-white/35 to border-white/40
```

### 4. Border Radius
```
REQUIRED: rounded-2xl (16px) or rounded-3xl (24px)
Large, smooth curves for glass aesthetics
```

---

## Interaction Specifications

### Hover Effects
| Element | Effect | Implementation |
|---------|--------|----------------|
| Cards | Lift + glow enhance | hover:-translate-y-1 hover:shadow-[0_16px_56px_rgba(0,0,0,0.18),inset_0_1px_0_rgba(255,255,255,0.45)] |
| Buttons | Subtle lift + border brighten | hover:-translate-y-0.5 hover:border-white/40 hover:bg-white/28 |
| Links | Background reveal | hover:bg-white/10 |

### Specular Sweep (Light Reflection)
```jsx
<span className="absolute inset-0 -translate-x-[150%] skew-x-[-20deg] 
  bg-gradient-to-r from-transparent via-white/30 to-transparent 
  group-hover:translate-x-[150%] transition-transform duration-700 ease-out 
  pointer-events-none" />
```

### Active State
```
active:scale-[0.97]
Brief compression feedback
```

---

## Animation Rules

### Spring Physics
```
transition-all duration-500 ease-[cubic-bezier(0.16,1,0.3,1)]
```
This cubic-bezier creates natural spring-like motion simulating glass inertia.

### Timing Guidelines
| Interaction | Duration | Easing |
|-------------|----------|--------|
| Hover lift | 500ms | cubic-bezier(0.16,1,0.3,1) |
| Specular sweep | 700ms | ease-out |
| Focus glow | 500ms | cubic-bezier(0.16,1,0.3,1) |
| Active press | 150ms | ease-out |

---

## Color Palette

### Gradient Backgrounds
| Name | Classes |
|------|---------|
| Indigo Purple Pink | from-indigo-600 via-purple-600 to-pink-500 |
| Blue Purple | from-blue-500 via-purple-500 to-pink-500 |
| Violet Fuchsia | from-violet-600 via-purple-600 to-fuchsia-500 |
| Cyan Blue | from-cyan-400 via-blue-500 to-indigo-600 |

### Glass Surface
| Token | Value | Usage |
|-------|-------|-------|
| Glass BG | bg-white/10 to bg-white/20 | Panel backgrounds |
| Glass BG Hover | bg-white/25 to bg-white/30 | Hover states |
| Border | border-white/20 | Default borders |
| Border Hover | border-white/40 | Hover borders |
| Text Primary | text-white | Headlines |
| Text Secondary | text-white/85 | Body copy |
| Text Muted | text-white/50 | Captions |

---

## Forbidden Patterns

| Pattern | Reason |
|---------|--------|
| Solid bg-white, bg-black | Glass requires translucent backgrounds |
| backdrop-blur-sm, backdrop-blur | Insufficient blur for glass effect |
| Omit backdrop-saturate | Loses color vibrancy through glass |
| Single-layer shadow | Glass needs multi-depth shadows |
| rounded-none, rounded-sm | Sharp corners break glass illusion |
| duration-100, duration-150 | Too fast, loses glass fluidity |
| Solid color backgrounds | No refraction without gradient/image |
| Strobing/high-freq animations | Breaks premium feel |

---

## Responsive Guidelines

### Blur Scaling
```
Mobile: backdrop-blur-[30px]
Desktop (md:): backdrop-blur-[40px] to backdrop-blur-[60px]
```

### Shadow Scaling
```
Mobile: shadow-[0_4px_16px_rgba(0,0,0,0.1),inset_0_1px_0_rgba(255,255,255,0.25)]
Desktop: shadow-[0_8px_32px_rgba(0,0,0,0.12),inset_0_1px_0_rgba(255,255,255,0.35)]
```

### Padding
```
Cards: p-6 md:p-8 lg:p-10
Buttons: px-5 py-3 md:px-6 md:py-3.5
```

---

## Component Templates

### Glass Card
```jsx
<div className="group relative p-6 md:p-8
  bg-white/15 backdrop-blur-[60px] backdrop-saturate-[180%]
  border border-white/20 rounded-3xl
  shadow-[0_8px_32px_rgba(0,0,0,0.12),inset_0_1px_0_rgba(255,255,255,0.35)]
  hover:border-white/35
  hover:shadow-[0_16px_56px_rgba(0,0,0,0.18),inset_0_1px_0_rgba(255,255,255,0.45)]
  hover:-translate-y-1
  transition-all duration-500 ease-[cubic-bezier(0.16,1,0.3,1)]
  overflow-hidden">
  {/* Inner luminance */}
  <span className="absolute inset-0 bg-gradient-to-b from-white/18 to-transparent pointer-events-none" />
  {/* Content */}
  <div className="relative z-10">...</div>
</div>
```

---

## Self-Verification Checklist

Before outputting code, verify:
- [ ] Background is gradient or image (NOT solid color)
- [ ] backdrop-blur-[40px] or higher present
- [ ] backdrop-saturate-[180%] present
- [ ] Multi-layer shadows (outer depth + inset highlight)
- [ ] Inner luminance gradient overlay added
- [ ] Borders use white with opacity (border-white/20)
- [ ] Rounded corners are rounded-2xl or rounded-3xl
- [ ] Transitions use spring easing cubic-bezier(0.16,1,0.3,1)
- [ ] duration-500 for main interactions
- [ ] Text is legible (white with good contrast)
- [ ] Ambient orbs added for depth on hero sections

Component Templates

Component Preview

Button

Liquid Glass button with inner luminance, specular sweep, and chromatic hover

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

73%

Curated

Dark Mode

70%

Partial

UI States

85%

Partial

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

  • Dark glass needs higher surface opacity than light glass to keep text readable.
  • Check contrast in both light and dark modes.
  • Limit backdrop blur to 12-20px and avoid nested glass panels.
  • backdrop-filter and large blur radii can hurt scrolling performance on mobile.
  • Layered translucent cards increase paint work.
Global Styles

Global CSS

css
/* Liquid Glass Global Styles */

:root {
  --glass-blur: 40px;
  --glass-blur-heavy: 60px;
  --glass-saturate: 180%;
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-bg-hover: rgba(255, 255, 255, 0.22);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-border-hover: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --glass-shadow-hover: 0 16px 56px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  --glass-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), transparent 50%);
  border-radius: inherit;
  pointer-events: none;
}

.glass-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  min-height: 100vh;
}
@keyframes glassmorphism-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

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

Compatible Layout Patterns

Recommended Layouts

The following layout patterns pair well with the Liquid Glass style.

便当盒布局

Bento Grid

瀑布流布局

Masonry Flow

全屏滚动布局

Full Page Scroll

卡片堆叠布局

Card Stack

全屏英雄区布局

Fullscreen Hero

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

Liquid Glass distills the design language Apple introduced at WWDC25. It goes beyond simple translucency plus blur to simulate real glass optics: refraction, chromatic dispersion, inner luminance, and specular edges.

Accessibility

Accessibility Score

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

61

Overall Score

Grade: C - Fair

Contrast Ratios

Score: 50/100Average Ratio: 0:1
AA FailAAA Fail

Readability

Score

85/100

Font Size

text-sm md:text-base

Font Weight

font-semibold text-white

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

Recommended Combinations with Liquid Glass

These curated recipes combine this style with layouts and animations, optimized for specific use cases.

Dark Glass Dashboard

Sleek dark mode with glass panels. Modern analytics feel.

glassmorphismdashboard-layout+2
darkmodernelegant

StyleKit

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

Navigation

StylesTemplatesGuideBlogChangelog

Resources

UI Design PromptsLanding Page PromptsDashboard PromptsTailwind UI PromptsDark Mode UI PromptsGitHub Repository

Stay Updated

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


Support Maintenance

If StyleKit helps your workflow, voluntary support helps cover servers, domains, and ongoing upkeep.

Scan to support / View all options

(c) 2026 StyleKit. Open source project.

AboutContactPrivacyTermsBuilt with the Editorial style
Stylekit前端样式库stylekit.top陕ICP备2025065501号-3