---
protocol: "DESIGN.md"
version: "1.0"
kind: "ui-style"
slug: "frosted-glass"
name: "Glass"
name_zh: "毛玻璃态"
group: "expressive"
primary_tone: "dark"
default_radius: "16px"
surface_effect: "frosted-glass"
scenarios: ["ai-workspace", "landing", "commerce"]
---

# Glass (毛玻璃态) — UI Style Protocol

Optical spatial glass surfaces with high-vibrancy backdrop diffusion, crisp 1px specular top rim highlights, and real-world Arctic aurora depth.

## 1. Visual Physics & Surface Signature
- **Default Radius**: `16px` (16px Spatial Capsule)
- **Border Contract**: `1px solid rgba(255,255,255,.18)`
- **Elevation & Shadow**: `inset 0 1px #fff3, 0 16px 32px`
- **Surface Material**: `frosted-glass`

## 2. Dual-Mode Color Tokens

### Dark Mode Tokens
- **Canvas**: `#090E1A`
- **Surface**: `#121A2E`
- **Elevated**: `#1B2642`
- **Border**: `#2B3B63`
- **Primary Ink**: `#F0F6FF`
- **Muted Ink**: `#94A7C6`
- **Accent**: `#38BDF8` (Foreground `#061320`)

### Light Mode Tokens
- **Canvas**: `#EDF4FF`
- **Surface**: `#FFFFFF`
- **Elevated**: `#E0ECFF`
- **Border**: `#C3D6F7`
- **Primary Ink**: `#0B1528`
- **Muted Ink**: `#475B7A`
- **Accent**: `#0369A1` (Foreground `#FFFFFF`)

## 3. Typography Pairing
- **Display Font**: Inter (tracking `-0.02em`)
- **Body Font**: Inter
- **Monospace / Metrics**: JetBrains Mono (`font-variant-numeric: tabular-nums`)

## 4. Implementation Guardrails
- **DO**: Float single-pass blurred windows (blur 16–24px, saturate 165%) over rich photographic or aurora depth with a 1px specular top rim.
- **DO**: Modulate glass background tint opacity so foreground text maintains >= 4.5:1 contrast across bright and dark zones.
- **DON'T**: Never stack more than two backdrop-filter layers, which causes muddy edges and frame drops.
- **DON'T**: Avoid flat gray semi-transparent boxes over plain solid backgrounds—glass needs light behind it to refract.
