Apple’s design system, as shadcn components.

iOS 26, macOS 26 and apple.com: every switch, corner and type size measured from the real thing, then rebuilt on Base UI with Hugeicons. Three idioms, one stylesheet. Copy, paste, own the code.

npx shadcn@latest add @applecn/apple

Liquid Glass bars, the 63 × 28 switch with its oval knob, 26 pt grouped lists, 34 pt alerts.

Settings

Connectivity
  • Airplane Mode
Display & Brightness
  • Appearance
  • Text Size
  • Bold Text

Measured, not eyeballed.

The iOS and macOS values were read from UIKit and AppKit on device; the web from apple.com’s own stylesheet. Every number in the tokens names its source.

  • 63 × 28 pt

    The switch, with a 37 × 24 oval knob inset 2 that stretches while pressed.

    UIKit, iOS 26.5

  • 6 pt track

    The slider, whose thumb is the same 37 × 24 pill as the switch knob.

    UIKit, iOS 26.5

  • Delete Note?

    34 pt corners

    The alert: 320 wide, glass, capsule actions inset 16 and 8 apart.

    UIAlertController, iOS 26.5

  • 24 pt, r 6

    The push button: a rounded rectangle up to regular, a capsule from large.

    AppKit, macOS 26.6

  • 36 px pill

    apple.com’s button: 14 px text, 9 × 16 padding, a 980 px radius, #0071e3.

    apple.com stylesheet

  • Wi-FiBluetooth

    26 pt corners

    The inset grouped list: 52 pt rows, 15 × 16 padding, 17 pt semibold headers.

    UITableView, iOS 26.5

Tokens first. The stylesheet is generated.

Colour, type, geometry, shape, motion, elevation and materials live as typed data. A build renders them to CSS; a test fails when the file drifts from the data.

Colour
  • red

  • orange

  • yellow

  • green

  • mint

  • teal

  • cyan

  • blue

  • indigo

  • purple

  • pink

  • brown

The twelve system colours in light, dark and accessible variants, the six grays, and every semantic role from label to separator.

Typography
  • Large Title34/41
  • Title 128/34
  • Title 222/28
  • Headline17/22
  • Body17/22
  • Footnote13/18

Eleven text styles at every Dynamic Type size, the macOS scale, and apple.com’s ladder with its tracking.

Add it to any shadcn project.

The theme item carries every token; components install with their dependencies. Works with the shadcn CLI and with coding agents.

npx shadcn@latest add @applecn/apple
View on GitHub