Liquid Glass(液态玻璃)设计语言
这是 Apple 在 WWDC 2025 推出的新一代 UI 设计体系。
它不只是一个"毛玻璃效果"。
而是:
text
macOS / iOS / iPadOS / visionOS
统一的新设计系统
它本质是什么
简单说:
text
Aqua(拟物)
→ iOS7(扁平化)
→ Liquid Glass(动态玻璃)
这是苹果十年来最大的 UI 变革。
样式截图:


完整代码获取
部分代码:
css
<!DOCTYPE html>
<html lang="zh-Hans">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>macOS 26 Tahoe --- Liquid Glass Design System</title>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--ab: #0A84FF;
--ar: #FF453A;
--ag: #30D158;
--ao: #FF9F0A;
--ap: #BF5AF2;
--apple-gray: rgba(120,120,128,.65);
/* Liquid Glass core */
--glass-bg: rgba(255,255,255,0.70);
--glass-bg-deep: rgba(255,255,255,0.50);
--glass-bg-float: rgba(255,255,255,0.85);
--glass-border: rgba(255,255,255,0.85);
--glass-border-in: rgba(255,255,255,0.45);
--glass-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 1.5px 4px rgba(0,0,0,0.04);
--glass-shadow-float: 0 16px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
--glass-blur: blur(28px) saturate(1.8);
--glass-blur-sm: blur(16px) saturate(1.6);
/* Background */
--bg-gradient: linear-gradient(145deg, #f5faff 0%, #f0f5ff 25%, #faf0ff 55%, #fff5f8 80%, #fffbf5 100%);
--apple-text: #1c1c1e;
--apple-text2: rgba(28,28,30,.55);
--apple-sep: rgba(60,60,67,.12);
--r: 16px;
--r-sm: 10px;
--r-pill: 100px;
--r-lg: 22px;
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
:root {
--glass-bg: rgba(40,40,44,0.60);
--glass-bg-deep: rgba(28,28,32,0.70);
--glass-bg-float: rgba(50,50,56,0.72);
--glass-border: rgba(255,255,255,0.14);
--glass-border-in: rgba(255,255,255,0.08);
--glass-shadow: 0 8px 32px rgba(0,0,0,0.40), 0 1.5px 4px rgba(0,0,0,0.24);
--glass-shadow-float: 0 16px 48px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.30);
--bg-gradient: linear-gradient(145deg, #0a0a14 0%, #0f0820 30%, #18082a 60%, #0a0f1a 100%);
--apple-text: rgba(255,255,255,.95);
--apple-text2: rgba(255,255,255,.50);
--apple-sep: rgba(255,255,255,.10);
--ab: #0A84FF;
--ag: #30D158;
}
}
body {
min-height: 100vh;
background: var(--bg-gradient);
color: var(--apple-text);
padding: 52px 24px 72px;
max-width: 760px;
margin: 0 auto;
position: relative;
}
body::before, body::after {
content: '';
position: fixed;
border-radius: 50%;
pointer-events: none;
z-index: 0;
}
body::before {
width: 600px; height: 600px;
top: -150px; right: -150px;
background: radial-gradient(circle, rgba(191,90,242,.25) 0%, transparent 70%);
filter: blur(60px);
}
body::after {
width: 500px; height: 500px;
bottom: 100px; left: -100px;
background: radial-gradient(circle, rgba(10,132,255,.2) 0%, transparent 70%);
filter: blur(60px);
}
h2, .card, .glass-free { position: relative; z-index: 1; }
h2 {
font-size: 11px;
font-weight: 600;
color: var(--apple-text2);
text-transform: uppercase;
letter-spacing: .8px;
margin: 44px 0 10px;
padding: 0 6px;
}
h2:first-of-type { margin-top: 0; }
.card {
background: var(--glass-bg);
-webkit-backdrop-filter: var(--glass-blur);
backdrop-filter: var(--glass-blur);
border-radius: var(--r-lg);
border: 1px solid var(--glass-border);
box-shadow: var(--glass-shadow);
overflow: visible;
margin-bottom: 24px;
}
.card::before {
content: '';
position: absolute;
top: 0; left: 10%; right: 10%;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9) 30%, rgba(255,255,255,0.9) 70%, transparent);
border-radius: 1px;
pointer-events: none;
}
.card { position: relative; }
.section-label {
font-size: 12px;
color: var(--apple-text2);
padding: 10px 16px 8px;
border-bottom: 0.5px solid var(--apple-sep);
letter-spacing: .2px;
}
.pad { padding: 14px 16px; }
.row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 13px 16px;
}
.row + .row { border-top: 0.5px solid var(--apple-sep); }
.rl { font-size: 17px; }
.rs { font-size: 15px; color: var(--apple-text2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; }
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
border: none;
cursor: pointer;
font-family: inherit;
font-weight: 590;
transition: opacity .15s, transform .12s, box-shadow .15s;
user-select: none;
-webkit-tap-highlight-color: transparent;
position: relative;
}
.btn:active { opacity: .80; transform: scale(.96); }