样式库 Style Library

Duowenwen Glass v2

多问问 玻璃 v2
Weblight + darkglassairyfriendlycalm

柔和蓝光场上的 Liquid Glass,大圆角、胶囊导航,只有一个蓝。

Apple-style liquid glass over a soft blue light field, with big radii, pill nav and a single blue accent.

Web sample · default
Night

Palette

Type

标题 Display 永正文 Body — 好的界面不抢内容 1234567890Previews use your installed fonts; webfonts are not bundled.
Display-apple-system, BlinkMacSystemFont, "PingFang SC", "SF Pro Display", "Noto Sans SC", sans-serif
Body-apple-system, BlinkMacSystemFont, "PingFang SC", "SF Pro Text", "Helvetica Neue", "Noto Sans SC", "Microsoft YaHei", sans-serif
heroclamp(44px, 7.2vw, 88px) / 1.06, 650, -0.02em
hero subclamp(17px, 1.6vw, 21px)
sectionclamp(28px, 3.2vw, 40px)
body17px / 1.8
button15px / 600

System fonts only, no webfont.

Shape & surface

radius · control14px
radius · card28px
radius · panel36px
radius · pill999px
shadowinset 0 1px 0 rgb(255 255 255 / .7), 0 0 0 1px rgb(11 16 32 / .07)
glass24px blur · rgb(255 255 255 / .62)

backdrop-filter: blur(24px) saturate(180%). Border is a 150deg gradient edge (white .95 → .25 → .95) for a specular rim. Solid fallback for no backdrop-filter and prefers-reduced-transparency.

Motion

  • Colour, background and filter transitions 0.2s ease.
  • Buttons press with :active scale(.98).
  • prefers-reduced-motion disables all transitions.

Do / Don't

Do

  • Get depth from translucency and edge light, not shadows.
  • Use pill nav and large radii consistently (28 card / 36 panel).
  • Keep one blue accent for actions.

Don't

  • Don't add hard borders or drop shadows.
  • Don't use the faint colour for text under 18px; it fails contrast.
  • Don't forget the night variant for the ambient blobs.

Used in

Sources

  • lingbrook-guild worktree lingbrook-dww-design: src/app/sites/duowenwen/glass.css

Updated 2026-10-13

Export

/* Duowenwen Glass v2 / 多问问 玻璃 v2 — Apple-style liquid glass over a soft blue light field, with big radii, pill nav and a single blue accent. */
:root {
  --duowenwen-glass-v2-bg: #f5f7fb;
  --duowenwen-glass-v2-surface: rgb(255 255 255 / .62);
  --duowenwen-glass-v2-ink: #0b1020;
  --duowenwen-glass-v2-muted: #4a5367;
  --duowenwen-glass-v2-accent: #3352e8;
  --duowenwen-glass-v2-accent-ink: #ffffff;
  --duowenwen-glass-v2-line: rgb(11 16 32 / .10);
  --duowenwen-glass-v2-highlight: #2f4fe0;

  --duowenwen-glass-v2-pal-bg: #f5f7fb;
  --duowenwen-glass-v2-pal-ink: #0b1020;
  --duowenwen-glass-v2-pal-muted: #4a5367;
  --duowenwen-glass-v2-pal-faint: #6b7385;
  --duowenwen-glass-v2-pal-glass-solid: #fbfcfe;
  --duowenwen-glass-v2-pal-accent-text: #2f4fe0;
  --duowenwen-glass-v2-pal-accent-fill: #3352e8;
  --duowenwen-glass-v2-pal-accent-press: #2a45cc;
  --duowenwen-glass-v2-pal-blob-blue: #4d6bfe;
  --duowenwen-glass-v2-pal-blob-sky: #63c7ff;
  --duowenwen-glass-v2-pal-blob-violet: #a78bfa;
  --duowenwen-glass-v2-pal-night-bg: #07090f;
  --duowenwen-glass-v2-pal-night-solid: #151a28;
  --duowenwen-glass-v2-pal-night-accent: #9aacff;

  --duowenwen-glass-v2-font-display: -apple-system, BlinkMacSystemFont, "PingFang SC", "SF Pro Display", "Noto Sans SC", sans-serif;
  --duowenwen-glass-v2-font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "SF Pro Text", "Helvetica Neue", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --duowenwen-glass-v2-text-hero: clamp(44px, 7.2vw, 88px) / 1.06, 650, -0.02em;
  --duowenwen-glass-v2-text-hero-sub: clamp(17px, 1.6vw, 21px);
  --duowenwen-glass-v2-text-section: clamp(28px, 3.2vw, 40px);
  --duowenwen-glass-v2-text-body: 17px / 1.8;
  --duowenwen-glass-v2-text-button: 15px / 600;

  --duowenwen-glass-v2-radius-control: 14px;
  --duowenwen-glass-v2-radius-card: 28px;
  --duowenwen-glass-v2-radius-panel: 36px;
  --duowenwen-glass-v2-radius-pill: 999px;
  --duowenwen-glass-v2-glass-blur: 24px;
  --duowenwen-glass-v2-glass-fill: rgb(255 255 255 / .62);
  --duowenwen-glass-v2-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 0 0 1px rgb(11 16 32 / .07);
}

/* Night */
@media (prefers-color-scheme: dark) {
  :root {
    --duowenwen-glass-v2-bg: #07090f;
    --duowenwen-glass-v2-surface: rgb(28 33 50 / .58);
    --duowenwen-glass-v2-ink: #f1f3f9;
    --duowenwen-glass-v2-muted: #aeb5c7;
    --duowenwen-glass-v2-accent: #3352e8;
    --duowenwen-glass-v2-accent-ink: #ffffff;
    --duowenwen-glass-v2-line: rgb(255 255 255 / .10);
    --duowenwen-glass-v2-highlight: #9aacff;
  }
}

Compare