Best For
liquid glass / Apple Liquid Glass / transparent material
液态玻璃
Rate this styleClear glass floats above the content, bending detail near a fine white rim. Floating navigation, search, and controls compress on press, stretch with the gesture, and spring back on release.
Best For
liquid glass / Apple Liquid Glass / transparent material
Primary Move
Place floating navigation and key controls in the glass layer; keep reading and long lists on solid surfaces.
Watch Out
Avoid neon headlines, painted rainbow borders, glowing outlines, and exaggerated RGB separation; very subtle optical dispersion is allowed.
design.md
One document describes the colour roles, type rules, spacing and component construction behind this style. Copy or download it into Claude Code or Codex.
Glass lets the scene through, bends it softly at the rim, and springs back to touch.
Theme: mixed
Liquid Glass combines a clear scene, a thin neutral surface, a fine directional rim highlight, and measured refraction. Reserve it for floating navigation, search, playback controls, and temporary menus; keep body copy and information cards steady and easy to read. Compatible environments must enable SVG backdrop displacement by default, with visible curvature at the rim and an undistorted center. White transparency plus blur is only a fallback, not the complete material. A curved optical profile and very subtle dispersion may be used. Keep labels legible on both light and dark backdrops. A press compresses briefly, a drag stretches slightly, and release settles over roughly 420ms.
Reference URL: <https://developer.apple.com/design/human-interface-guidelines/materials>
| Name | Value | Token | Role |
|---|---|---|---|
| Paper | #F3F2ED | --color-paper | A quiet, low-contrast canvas that keeps floating glass and text clear. |
| Graphite Ink | #202929 | --color-ink | The primary text color for headings, body copy, and controls on light surfaces. |
| Deep Sea Scene | #25414A | --color-glass-scene | Photographic, tonal, or lined content that glass can reveal and refract; dark floating layers use white text here. |
| Salt Mist | #E4EFEB | --color-glass-mist | A muted blue-green used as the quiet base of a tinted material, never as a glow. |
| Glancing Light | #FFFFFF | --color-glass-glint | A one-pixel highlight along the lit edge that reveals the surface curvature. |
| Sage Focus | #557B79 | --color-focus | Focus rings and a few state cues on light controls, with enough contrast to stay visible. |
| Role | Family | Weight | Size | Line Height | Letter Spacing | Token |
|---|---|---|---|---|---|---|
| display | — | 500 | 56px | 1.05 | -0.045em | --text-display |
| heading-lg | — | 500 | 40px | 1.12 | -0.035em | --text-heading-lg |
| heading | — | 600 | 28px | 1.2 | — | --text-heading |
| subheading | — | 500 | 20px | 1.35 | — | --text-subheading |
| body-lg | — | 400 | 16px | 1.55 | — | --text-body-lg |
| body | — | 400 | 14px | 1.5 | — | --text-body |
| label | — | 500 | 12px | 1.35 | 0.025em | --text-label |
Base unit: 8px Density: comfortable
| Name | Value | Token |
|---|---|---|
| 4 | 4px | --spacing-4 |
| 8 | 8px | --spacing-8 |
| 12 | 12px | --spacing-12 |
| 16 | 16px | --spacing-16 |
| 24 | 24px | --spacing-24 |
| 32 | 32px | --spacing-32 |
| 48 | 48px | --spacing-48 |
| 64 | 64px | --spacing-64 |
| 88 | 88px | --spacing-88 |
| Element | Value |
|---|---|
| buttons and navigation | 999px |
| search and segmented controls | 999px |
| cards | 24px |
| menus and sheets | 28px |
Role: Primary navigation and scene switching
A 56–64px capsule dock with at least a 44px hit area. Place it over a colorful photograph or content: the clear state uses low tint, real backdrop displacement enabled by default, and a one-pixel directional glint. Keep the center flat and refraction within an approximately 8–24px curved rim; subtle dispersion is allowed. Use white icons and labels on dark scenes; add a neutral tint on bright scenes so labels stay visible. The selected pill slides with drag, compresses to 0.96 on press, widens slightly while dragging, then springs home in about 420ms. Give keyboard focus a crisp two-pixel ring.
Role: A light action over a photo or media
A capsule at least 44px tall, with a low-tint surface, real edge refraction, and a fine top glint; use soft blur only as a fallback. Prefer white labels over dark scenes; switch to dark labels and a neutral tint over bright imagery. Compress lightly to 0.96 over about 110ms on press and return with a roughly 420ms spring. Respect reduced-motion preferences. Do not use the clear state when there is no visible content beneath it.
Role: Short menus and temporary choices
A 22–28px corner radius and a more opaque warm-white or sage-tinted layer carry short labels, choices, and icons. Keep backdrop blur moderate, shadows soft, and the top glint fine. Menu text stays ink-colored. Put long explanations and complex settings on a stable solid panel.
Role: Search over photography and color
A rounded capsule at least 44px tall, with a tinted refracting outer surface, a flat center, and blur only as an unsupported-browser fallback. Search text and results use dark ink; keep placeholder contrast readable. The rim highlight remains still. Show keyboard focus with a separate high-contrast sage ring, not a glow.
Role: Explanatory copy, data, and long-form content
Use a stable warm-white solid surface, a 22–24px radius, and 24px padding. At most, add a low-contrast neutral divider and soft outer shadow. Keep refraction off so scrolling backdrops cannot compete with reading.
| Level | Name | Value | Purpose |
|---|---|---|---|
| 0 | Paper canvas | #F3F2ED | Stable reading and content surface |
| 1 | Clear glass | rgba(255, 255, 255, 0.12) | Floating controls on a rich, darker scene |
| 2 | Tinted glass | rgba(239, 245, 242, 0.86) | Menus and short labels over a bright or detailed scene |
| 3 | Solid content | #FCFCFA | Long-form copy, data, and controls requiring steady contrast |
0 8px 24px rgba(19, 37, 41, 0.12), inset 0 1px 0 rgba(255,255,255,0.72)0 16px 40px rgba(19, 37, 41, 0.18), inset 0 1px 0 rgba(255,255,255,0.78)Give clear glass real detail to reveal: photography, quiet contour lines, tonal shifts, or a geometric grid. Place the texture beneath floating controls so straight lines and fine detail shift slightly at the rim while the center stays calm. Avoid rainbow gradients, neon type, and blank single-color grounds that rely on blur alone.
Organize the page on warm paper, with a detailed photograph, contours, or a grid as the preview stage, checking both bright and dark backdrops. Keep a clear hierarchy from stable content to floating controls: navigation and short menus may hover, while the information itself stays on a solid legible surface. Center the scene and dock on desktop; on narrow screens retain the same touch-sized capsule and leave room for system safe areas.
QUICK COLOR REFERENCE:
#202929#F3F2ED#25414Argba(255, 255, 255, 0.12)rgba(255, 255, 255, 0.72)#557B79EXAMPLE COMPONENT PROMPTS:
apple-style) — Shares system type, restrained hierarchy, and whitespace; Liquid Glass adds edge refraction and touch response.macos-vibrancy) — Also lets content show through controls; Liquid Glass adds clearer optical curvature at the edge and elastic touch feedback.On compatible engines, navigation, buttons, search, and overlays must use a real backdrop-refraction renderer with visible edge bending; backdrop-blur alone is insufficient. StyleKit uses components/liquid-glass/liquid-glass.tsx with lib/liquid-glass/optics.ts: a Snell curved-rim profile, analytic rounded-rectangle normals, a neutral center, size-bounded displacement, subtle optional dispersion, and a pointer-directed rim highlight. CSS recipes describe the fallback and must be paired with that renderer. Verify with the same-position Glass/Frost comparison and a grid; cancellation restores the drag start and keyboard controls offer equivalent actions. Pinned references: rdev https://github.com/rdev/liquid-glass-react/tree/ac48eab18d1f7f444ae30002d240cae29c863a21; glassy https://github.com/9und30/glassy-liquid/tree/2361eb1f03979703db988180028ccc6d5fc23fe5; shuding https://github.com/shuding/liquid-glass/tree/a2d2e847f793430e3409a52927af815a23f4d372. All are MIT; retain full notices when copying or adapting. StyleKit includes the glassy MIT notice for its adapted optical profile. Generic blur support does not establish SVG backdrop support in Safari/Firefox: use an explicit scene renderer when refraction there is required, otherwise label the fallback.
:root {
/* Colors */
--color-paper: #F3F2ED;
--color-ink: #202929;
--color-glass-scene: #25414A;
--color-glass-mist: #E4EFEB;
--color-glass-glint: #FFFFFF;
--color-focus: #557B79;
/* Typography — Font Families */
--font-sans: 'System UI', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
/* Typography — Scale */
--text-display: 56px;
--leading-display: 1.05;
--tracking-display: -0.045em;
--text-heading-lg: 40px;
--leading-heading-lg: 1.12;
--tracking-heading-lg: -0.035em;
--text-heading: 28px;
--leading-heading: 1.2;
--text-subheading: 20px;
--leading-subheading: 1.35;
--text-body-lg: 16px;
--leading-body-lg: 1.55;
--text-body: 14px;
--leading-body: 1.5;
--text-label: 12px;
--leading-label: 1.35;
--tracking-label: 0.025em;
/* Typography — Weights */
--font-weight-regular: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
/* Spacing */
--spacing-unit: 8px;
--spacing-4: 4px;
--spacing-8: 8px;
--spacing-12: 12px;
--spacing-16: 16px;
--spacing-24: 24px;
--spacing-32: 32px;
--spacing-48: 48px;
--spacing-64: 64px;
--spacing-88: 88px;
/* Layout */
--page-max-width: 1120px;
--section-gap: 88px;
--card-padding: 24px;
--element-gap: 16px;
--density: comfortable;
/* Border Radius */
--radius-buttons-and-navigation: 999px;
--radius-search-and-segmented-controls: 999px;
--radius-cards: 24px;
--radius-menus-and-sheets: 28px;
/* Surfaces */
--surface-paper-canvas: #F3F2ED;
--surface-clear-glass: rgba(255, 255, 255, 0.12);
--surface-tinted-glass: rgba(239, 245, 242, 0.86);
--surface-solid-content: #FCFCFA;
}
Component Templates
A tinted capsule over a dark scene with a fine rim and tactile press.
Pointer Interactions
Pointer interactions tailored to this style — same cursor, completely different character. Move around the stage to feel it.
Frosted alternative. Live refraction is available in Chrome and Edge.
Move your pointer or tap to place the lens. Focus it to use the arrow keys; Home or Enter centers it. Touch swipes scroll normally.
FAQ
/* Liquid Glass fallback skin. Live rim refraction requires the shared LiquidGlass renderer. Use .liquid-system on the owning region. */
.liquid-system {
--liquid-paper: #f3f2ed;
--liquid-ink: #202929;
--liquid-muted: #4c5d57;
--liquid-scene: #25414a;
--liquid-glint: rgb(255 255 255 / 62%);
--liquid-rim: rgb(255 255 255 / 25%);
--liquid-clear-fill: rgb(15 25 32 / 21%);
--liquid-tinted-fill: rgb(17 29 37 / 88%);
--liquid-opaque: #20343b;
--liquid-on-glass: #fff;
--liquid-selection: rgb(255 255 255 / 18%);
--liquid-placeholder: #d5e0e0;
--liquid-focus: #c7e4e5;
--liquid-focus-on-paper: #557b79;
--liquid-panel-radius: 24px;
--liquid-press: 110ms;
--liquid-release: 420ms cubic-bezier(.26, 1.55, .52, 1);
color: var(--liquid-ink);
background: var(--liquid-paper);
font-family: system-ui, sans-serif;
}
.liquid-system [data-liquid-tone="light"] {
--liquid-clear-fill: rgb(243 242 237 / 68%);
--liquid-tinted-fill: rgb(243 242 237 / 92%);
--liquid-opaque: #f3f2ed;
--liquid-on-glass: #202929;
--liquid-selection: rgb(32 41 41 / 12%);
--liquid-placeholder: #4c5d57;
--liquid-focus: var(--liquid-focus-on-paper);
}
.liquid-scene {
display: grid;
justify-items: start;
align-content: center;
min-block-size: 18rem;
gap: 1rem;
padding: clamp(1.5rem, 5vw, 4rem);
border-radius: var(--liquid-panel-radius);
color: #fff;
background:
repeating-linear-gradient(163deg, transparent 0 19px, rgb(221 239 234 / 16%) 20px 21px),
linear-gradient(140deg, #18262e, var(--liquid-scene) 62%, #486d72);
}
.liquid-kicker {
margin: 0;
font-size: .75rem;
font-weight: 600;
letter-spacing: .08em;
}
.liquid-glass {
--liquid-fill: var(--liquid-clear-fill);
--liquid-blur: blur(4px);
position: relative;
box-sizing: border-box;
border: 1px solid var(--liquid-rim);
border-radius: var(--liquid-panel-radius);
color: var(--liquid-on-glass);
background-color: var(--liquid-opaque);
box-shadow: inset 0 1px 0 var(--liquid-glint), 0 8px 24px -18px rgb(8 24 38 / 55%);
}
.liquid-glass--tinted {
--liquid-fill: var(--liquid-tinted-fill);
--liquid-blur: blur(12px);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
.liquid-glass {
background-color: var(--liquid-fill);
-webkit-backdrop-filter: var(--liquid-blur);
backdrop-filter: var(--liquid-blur);
}
}
/* Only opt in after verifying SVG backdrop support and attaching a live lens map. */
.liquid-glass[data-liquid-optics="svg"] {
backdrop-filter: var(--liquid-refraction-filter, var(--liquid-blur));
}
.liquid-content {
padding: clamp(1rem, 3vw, 2rem);
border: 1px solid #d9e0db;
border-radius: var(--liquid-panel-radius);
background: #fff;
color: var(--liquid-ink);
}
.liquid-dock {
display: inline-flex;
flex-wrap: wrap;
gap: 4px;
max-inline-size: 100%;
padding: 5px;
border-radius: 999px;
}
.liquid-button,
.liquid-input {
box-sizing: border-box;
min-block-size: 44px;
border-radius: 999px;
padding: .625rem 1rem;
font: inherit;
}
.liquid-button {
display: inline-flex;
align-items: center;
justify-content: center;
color: inherit;
text-decoration: none;
cursor: pointer;
}
.liquid-button[aria-current]:not([aria-current="false"]),
.liquid-button[aria-pressed="true"] {
background: var(--liquid-selection);
box-shadow: inset 0 1px 0 var(--liquid-glint);
}
.liquid-pressable {
transition: transform var(--liquid-release);
}
.liquid-pressable:active:not(:disabled) {
transform: scale(.97, .92);
transition-duration: var(--liquid-press);
}
.liquid-button:disabled {
opacity: .55;
cursor: not-allowed;
}
.liquid-field {
display: grid;
gap: .375rem;
}
.liquid-input {
inline-size: 100%;
}
.liquid-input::placeholder {
color: var(--liquid-placeholder);
opacity: 1;
}
.liquid-content :focus-visible {
outline: 2px solid var(--liquid-focus-on-paper);
outline-offset: 3px;
}
.liquid-button:focus-visible,
.liquid-input:focus-visible {
outline: 2px solid var(--liquid-focus);
outline-offset: 3px;
}
.liquid-system[data-liquid-transparency="reduce"] .liquid-glass {
-webkit-backdrop-filter: none;
backdrop-filter: none;
background-color: var(--liquid-opaque);
}
@media (prefers-reduced-transparency: reduce) {
.liquid-system .liquid-glass {
-webkit-backdrop-filter: none;
backdrop-filter: none;
background-color: var(--liquid-opaque);
}
}
@media (prefers-reduced-motion: reduce) {
.liquid-system .liquid-pressable {
transition: none;
}
.liquid-system .liquid-pressable:active {
transform: none;
}
}
@media (forced-colors: active) {
.liquid-system .liquid-glass {
border: 1px solid ButtonText;
color: ButtonText;
background: ButtonFace;
-webkit-backdrop-filter: none;
backdrop-filter: none;
box-shadow: none;
}
.liquid-button[aria-current]:not([aria-current="false"]),
.liquid-button[aria-pressed="true"] {
outline: 1px solid Highlight;
outline-offset: -2px;
}
.liquid-button:focus-visible,
.liquid-input:focus-visible {
outline-color: Highlight;
}
}Related Styles
Explore these styles for ready-made tokens and components.
Liquid Glass and Fluent Design sit closest to each other. The table below gives the real differences in color, use case, and tags, so the choice between them is made on facts.
| Attribute | Liquid Glass | Fluent Design |
|---|---|---|
| Primary color | #f3f2ed | #0078d4 |
| Secondary color | #202929 | #106ebe |
| Best for | liquid glass / Apple Liquid Glass / transparent material | Fluent Design / Microsoft Fluent / acrylic material |
| Unique tags | — | — |
Glass is the control layer. Lay out sharp content first, then float the navigation, search, and controls that people need above it. Glass borrows color from the scene, and a fine glint gives the rim depth. Bend the backdrop near the edge and keep its original texture recognizable in the center.
Design Recipes
These curated recipes combine this style with layouts and animations, optimized for specific use cases.
09:41 · GLACIER LAGOON · CLEAR SKIES