A design language on one sheet, drawn from its tokens, from type and color to motion.
- 15.2 kB JS 11.2 kB CSS gzipped
- No serious axe issues
- Server-rendered, hydrates
- 44px touch targets
- Right-to-left
- 8 tests
Design language · Light
Sunburst
Neo-brutal and playful. Cream and butter yellows, black ink, two-pixel strokes, hard ink offsets and a grotesk with its mono.
01Surfaces and ink
Canvas17.3:1 AAA#fff8e3
Sidebar15.8:1 AAA#ffeeb0
Card18.0:1 AAA#fffdf5
Subtle fill16.3:1 AAA#fff1c4
HairlineNo text#141414
Accent12.7:1 AAA#ffd21f
Ink17.3:1 AAA#141414
Muted ink9.2:1 AAA#4a4331
Success#b6f04a
Warning#ff9f43
Danger#ff7eb6
Info#62dbe8
02Typography
Space GroteskInterface
Space MonoIDs, keys and code
NewsreaderEditorial
- DisplayShip the whole idea40 · 700 · 44 / -1.2
- Page titleQuarterly planning26 · 700 · 32 / -0.6
- SectionUpcoming work20 · 700 · 26 / -0.3
- Card titleBilling and invoices16 · 700 · 22
- BodyPlain words, short lines, a steady rhythm.14 · 400 · 20
- ControlSave changes14 · 600 · 20
- MetaUpdated 2 minutes ago12 · 400 · 16
- Figure$1,284,920.4032 · 700 · 38 / -0.8
- Codeinv_2Kx9 · 0x4f2a13 · 400 · 20
Regular 400
Medium 500
Semibold 600
Bold 700
03Signature
AgentResearchWaiting on you
Draft the spring launch brief
- Read last quarter’s notes
- Pull signups by week
- Write the first draft
- Send it to the launch channel
The agent wants to post the brief to #launch, where 14 people will see it.
04Elevation and shadow
Controls2px 2px 0 0 rgb(20 20 20 / 1)
Cards0 0 0 2px rgb(20 20 20 / 1), 2px 2px 0 2px rgb(20 20 20 / 1)
Floating0 0 0 2px rgb(20 20 20 / 1), 3px 3px 0 2px rgb(20 20 20 / 1)
Menus0 0 0 2px rgb(20 20 20 / 1), 4px 4px 0 2px rgb(20 20 20 / 1)
Modals0 0 0 2px rgb(20 20 20 / 1), 6px 6px 0 2px rgb(20 20 20 / 1)
05Geometry and density
Tag 4
Control 8
Card 10
Popover 12
Modal 12
Pill ∞
xs
sm
md
lg
xl
xxl
Sidebar240px
Row40px
Control36px
Header56px
Content1120px
Prose680px
Hairline2px
Stroke2px
06Iconography
AppAgentChatLanesRunShell
16px icons, 2.5px stroke
07Motion
cubic-bezier(0.3, 1.3, 0.5, 1)
- Hover120ms
- Menu180ms
- Modal240ms
- Drawer300ms
import type { Html } from "effect/ui/html"import { ThemeSignature } from "./ui/uicontext/components/ThemeSignature.ts"import { ThemeSpec } from "./ui/uicontext/components/ThemeSpec.ts"import { sunburst } from "./ui/uicontext/components/themes.stylex.ts"import { themeValues } from "./ui/uicontext/components/themeValues.ts"// a whole design language on one sheet, drawn from its tokens, with its signature piece workingexport const SunburstSheet = <M>(h: Html.H<M>) => ThemeSpec(h, { values: themeValues.sunburst, mode: "light", theme: sunburst, signature: ThemeSignature(h, { key: "sunburst", props: { signature: themeValues.sunburst.signature } }), })When to use
A design language on one sheet, drawn from its tokens, from type and color to motion. Use Themes instead when you want the tokens themselves, not a sheet that shows them.
Usage
import { ThemeSignature } from "./ui/uicontext/components/ThemeSignature.ts"import { ThemeSpec } from "./ui/uicontext/components/ThemeSpec.ts"import { carbon } from "./ui/uicontext/components/themes.stylex.ts"import { themeValues } from "./ui/uicontext/components/themeValues.ts"export const CarbonSheet = <M>(h: Html.H<M>) => ThemeSpec(h, { values: themeValues.carbon, mode: "dark", theme: carbon, signature: ThemeSignature(h, { key: "carbon", props: { signature: "query-panel" } }), })API reference
ThemeSpecView function
Options
| Name | Type | Description |
|---|---|---|
valuesrequired | ThemeValues | The theme's values, for the numbers the sheet prints |
moderequired | "light" | "dark" | Which scheme to show: the sheet sets it, and prints that scheme's colors |
theme | Style[] | The theme's StyleX themes; leave out when an ancestor sets the variables |
signature | View.Input | The piece of UI that captures the language |
note | string | A line under the summary, such as which template starts in it |
headingLevel | 1 | 2 | — |
ThemeSignatureComponent
Props
| Name | Type | Description |
|---|---|---|
signaturerequired | Signature | — |
Installation
pnpm dlx shadcn@latest add checkfu/uicontext/theme-spec