View as Markdown

Design language · Dark

Midnight

Dark-native and dense. Near-black surfaces, half-pixel lines, indigo focus and a variable sans with its own weight steps.

The Task manager template starts in it.

01Surfaces and ink

Canvas16.8:1 AAA#0b0c0f
Sidebar17.1:1 AAA#08090b
Card16.1:1 AAA#111216
Subtle fill14.6:1 AAA#1b1c22
HairlineNo text#202128
Accent7.4:1 AAA#8f97ff
Ink16.8:1 AAA#eceef3
Muted ink7.4:1 AAA#9c9faa
Success#4ade80
Warning#fb923c
Danger#f87171
Info#60a5fa

02Typography

Inter VariableInterface
JetBrains Mono VariableIDs, keys and code
NewsreaderEditorial
  • DisplayShip the whole idea32 · 680 · 38 / -1.1
  • Page titleQuarterly planning22 · 590 · 28 / -0.6
  • SectionUpcoming work17 · 590 · 24 / -0.3
  • Card titleBilling and invoices15 · 590 · 20 / -0.15
  • BodyPlain words, short lines, a steady rhythm.13 · 450 · 20 / -0.1
  • ControlSave changes13 · 510 · 18 / -0.1
  • MetaUpdated 2 minutes ago12 · 510 · 16
  • Figure$1,284,920.4028 · 590 · 34 / -0.8
  • Codeinv_2Kx9 · 0x4f2a12 · 450 · 18
Regular 450
Medium 510
Semibold 590
Bold 680

03Signature

Escape
  • Create issueC
  • Assign to…A
  • Change statusS
  • Open cycleG C
  • Search projectsCommand P

↑↓ to move, ↵ to pick

04Elevation and shadow

Controls0 1px 2px rgb(0 0 0 / 0.4)
Cards0 0 0 1px rgb(255 255 255 / 0.06), 0 1px 2px rgb(0 0 0 / 0.4)
Floating0 0 0 1px rgb(255 255 255 / 0.07), 0 2px 8px rgb(0 0 0 / 0.45)
Menus0 0 0 1px rgb(255 255 255 / 0.08), 0 4px 16px rgb(0 0 0 / 0.5)blur 16px · 86% fill
Modals0 0 0 1px rgb(255 255 255 / 0.1), 0 16px 48px rgb(0 0 0 / 0.6)blur 16px · 86% fill

05Geometry and density

Tag 4
Control 6
Card 8
Popover 10
Modal 12
Pill ∞
xs
sm
md
lg
xl
xxl
Sidebar244px
Row36px
Control30px
Header48px
Content1080px
Prose680px
Hairline0.5px
Stroke1px

06Iconography

BacklogTodoIn progressDoneUrgentCycle

16px icons, 1.5px stroke

07Motion

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

  • Hover100ms
  • Menu150ms
  • Modal250ms
  • Drawer320ms

Use Midnight

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

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