View as Markdown

Design language · Light

Glass

A translucent window over the desktop: a heavy backdrop blur, a one-pixel rim, a coral accent and quick motion. Made for command surfaces.

No template starts in it: it’s made for command surfaces.

01Surfaces and ink

Canvas15.0:1 AAA#eef0f4
Sidebar14.2:1 AAA#e8eaef
Card16.6:1 AAA#fbfbfd
Subtle fill15.2:1 AAA#f0f1f5
HairlineNo text#e1e3e9
Accent5.9:1 AA#bb2d35
Ink15.0:1 AAA#1b1b1f
Muted ink6.0:1 AA#575a66
Success#13723a
Warning#a34a0b
Danger#c4302b
Info#1d4ed8

02Typography

Inter VariableInterface
JetBrains Mono VariableIDs, keys and code
NewsreaderEditorial
  • DisplayShip the whole idea30 · 600 · 36 / -0.6
  • Page titleQuarterly planning20 · 600 · 26 / -0.3
  • SectionUpcoming work16 · 600 · 22 / -0.1
  • Card titleBilling and invoices14 · 600 · 20
  • BodyPlain words, short lines, a steady rhythm.14 · 400 · 20
  • ControlSave changes14 · 500 · 20
  • MetaUpdated 2 minutes ago12 · 500 · 16
  • Figure$1,284,920.4026 · 600 · 32 / -0.4
  • Codeinv_2Kx9 · 0x4f2a12 · 400 · 18
Regular 400
Medium 500
Semibold 600
Bold 700

03Signature

  • Search filesCommandReturn
  • CalendarApplication
  • Clipboard historyCommand
  • Quick noteCommand
  • System settingsApplication
ResultsOpenReturnActionsCommand K

04Elevation and shadow

Controls0 1px 2px rgb(20 20 30 / 0.06)
Cards0 0 0 1px rgb(255 255 255 / 0.6), 0 1px 3px rgb(20 20 30 / 0.08)
Floating0 0 0 1px rgb(255 255 255 / 0.65), 0 4px 14px rgb(20 20 30 / 0.12)
Menus0 0 0 1px rgb(255 255 255 / 0.7), 0 10px 30px rgb(20 20 30 / 0.16)blur 40px · 74% fill
Modals0 0 0 1px rgb(255 255 255 / 0.8), 0 24px 60px rgb(20 20 30 / 0.25)blur 40px · 74% fill

05Geometry and density

Tag 4
Control 8
Card 10
Popover 12
Modal 16
Pill ∞
xs
sm
md
lg
xl
xxl
Sidebar220px
Row40px
Control32px
Header52px
Content960px
Prose750px
Hairline1px
Stroke1px

06Iconography

AppsSearchCalculatorClipboardWindowsSettings

16px icons, 1.5px stroke

07Motion

cubic-bezier(0.22, 1, 0.36, 1)

  • Hover80ms
  • Menu120ms
  • Modal180ms
  • Drawer260ms

Use Glass

Apply the StyleX themes to your app’s root, or copy the roles as CSS variables or JSON for anything else.

import { glass, glassScheme } from "./ui/uicontext/components/themes.stylex.ts"// every group glass sets, and the scheme it starts inh.div.attrs(sx(...glass, glassScheme)).children(app)