View as Markdown

Design language · Light

Slate

White cards on a cool gray canvas (a neutral one in the dark), a vivid violet, slate-tinted shadows and big tabular figures.

The SaaS dashboard template starts in it.

01Surfaces and ink

Canvas16.2:1 AAA#f5f7fb
Sidebar17.4:1 AAA#ffffff
Card17.4:1 AAA#ffffff
Subtle fill15.5:1 AAA#eef2f8
HairlineNo text#e3e8f0
Accent6.2:1 AA#5a45e0
Ink16.2:1 AAA#0e1a2e
Muted ink6.3:1 AA#4f5b72
Success#13723a
Warning#a34a0b
Danger#c4302b
Info#1d4ed8

02Typography

Inter VariableInterface
JetBrains Mono VariableIDs, keys and code
NewsreaderEditorial
  • DisplayShip the whole idea34 · 600 · 40 / -0.9
  • Page titleQuarterly planning24 · 600 · 32 / -0.5
  • SectionUpcoming work18 · 600 · 26 / -0.2
  • Card titleBilling and invoices15 · 600 · 22
  • BodyPlain words, short lines, a steady rhythm.14 · 400 · 20
  • ControlSave changes14 · 500 · 20
  • MetaUpdated 2 minutes ago12 · 500 · 16
  • Figure$1,284,920.4036 · 600 · 44 / -1
  • Codeinv_2Kx9 · 0x4f2a13 · 400 · 20
Regular 400
Medium 500
Semibold 600
Bold 700

03Signature

Available balance

$48,210.55

+4.2% this month

Arrives in 1–2 business days.

04Elevation and shadow

Controls0 1px 1px rgb(0 0 0 / 0.06)
Cards0 0 0 1px rgb(50 50 93 / 0.05), 0 2px 5px rgb(50 50 93 / 0.09), 0 1px 1px rgb(0 0 0 / 0.04)
Floating0 0 0 1px rgb(50 50 93 / 0.06), 0 4px 10px rgb(50 50 93 / 0.1)
Menus0 0 0 1px rgb(50 50 93 / 0.06), 0 7px 14px rgb(50 50 93 / 0.1), 0 3px 6px rgb(0 0 0 / 0.07)
Modals0 0 0 1px rgb(50 50 93 / 0.06), 0 30px 60px rgb(50 50 93 / 0.22), 0 18px 36px rgb(0 0 0 / 0.1)

05Geometry and density

Tag 4
Control 6
Card 10
Popover 10
Modal 12
Pill ∞
xs
sm
md
lg
xl
xxl
Sidebar232px
Row40px
Control36px
Header60px
Content1200px
Prose680px
Hairline1px
Stroke1px

06Iconography

CardPayoutInvoiceRefundCustomerRevenue

16px icons, 1.75px stroke

07Motion

cubic-bezier(0.25, 1, 0.5, 1)

  • Hover120ms
  • Menu180ms
  • Modal240ms
  • Drawer320ms

Use Slate

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

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