Meridian/Kit · Figma library
Kit · Figma library
The same tokens, on the canvas.
palette.stylex.ts, so design and code can't drift. Every fill, stroke, padding and radius is bound to a variable, and every component links to its React import.

Variables: 115 in 5 collections. Color has Light and Dark modes aliased to the Graphite and Cobalt primitives. Each variable's code syntax is its StyleX name, such as colors.surface.
Styles: 12 text styles (Inter, Geist Mono) and 10 effect styles, including the hairline ring.
Components: 34 sets, 136 variants. Dev Mode shows the JSX.
Three routes: run the builder plugin in any empty Figma file, import variables.json or the Tokens Studio file, or open the .fig.
Variables · 115 in 5 collections
| Collection | Modes | Variables | Types | Example |
|---|---|---|---|---|
| Primitives | Value | 25 | 25 colour | graphite/g0 → ramp.g0 |
| Color | Light / Dark | 44 | 43 colour, 1 string · 19 aliased | bg/canvas → colors.bg |
| Space | Value | 16 | 16 number | space/s1 → space.s1 |
| Radius | Value | 7 | 7 number | radius/xs → radius.xs |
| Type | Value | 23 | 20 number, 3 string | font-size/display-xl → type.displayXl.fontSize |
Color · Light and Dark
43 colour variables, each aliased to a primitive or holding a literal, in the mode you pick.
- bg/canvascolors.bg: rgb(252 252 251)
- bg/surfacecolors.surface: rgb(255 255 255)
- bg/subtlecolors.subtle: rgb(247 247 245)
- bg/mutedcolors.muted: rgb(240 239 236)
- border/defaultcolors.border: rgb(230 229 225)
- border/strongcolors.borderStrong: rgb(211 210 205)
- text/primarycolors.text: rgb(17 17 16)
- text/secondarycolors.text2: rgb(91 90 86)
- text/tertiarycolors.text3: rgb(114 113 108)
- text/faintcolors.text4: rgb(166 165 159)
- accent/defaultcolors.accent: rgb(46 99 240)
- accent/hovercolors.accentHover: rgb(33 80 214)
- accent/softcolors.accentSoft: rgb(238 243 255)
- accent/on-accentcolors.accentFg: rgb(255 255 255)
- focus/ringcolors.focus: rgb(94 136 251)
- ink/defaultcolors.ink: rgb(17 17 16)
- ink/hovercolors.inkHover: rgb(42 42 40)
- ink/on-inkcolors.inkFg: rgb(255 255 255)
- status/goodcolors.good: rgb(31 157 92)
- status/good-softcolors.goodSoft: rgb(233 247 239)
- status/good-fgcolors.goodFg: rgb(24 125 73)
- status/warncolors.warn: rgb(201 124 6)
- status/warn-softcolors.warnSoft: rgb(253 244 227)
- status/warn-fgcolors.warnFg: rgb(156 95 4)
- status/badcolors.bad: rgb(220 62 66)
- status/bad-softcolors.badSoft: rgb(253 236 236)
- status/bad-fgcolors.badFg: rgb(185 40 44)
- status/bad-ringcolors.badRing: rgb(220 62 66 / 0.3)
- special/defaultcolors.special: rgb(124 58 237)
- special/softcolors.specialSoft: rgb(245 243 255)
- special/fgcolors.specialFg: rgb(109 40 217)
- code/bgcolors.codeBg: rgb(17 17 16)
- code/fgcolors.codeFg: rgb(217 216 211)
- kind/service-bgkinds.serviceBg: rgb(238 242 255)
- kind/service-fgkinds.serviceFg: rgb(55 48 163)
- kind/worker-bgkinds.workerBg: rgb(255 247 237)
- kind/worker-fgkinds.workerFg: rgb(154 52 18)
- kind/cron-bgkinds.cronBg: rgb(240 253 250)
- kind/cron-fgkinds.cronFg: rgb(17 94 89)
- kind/postgres-bgkinds.postgresBg: rgb(253 244 255)
- kind/postgres-fgkinds.postgresFg: rgb(134 25 143)
- kind/redis-bgkinds.redisBg: rgb(236 254 255)
- kind/redis-fgkinds.redisFg: rgb(21 94 117)
Styles · 12 text, 10 effect
| Text style | Font | Size / line | Tracking | StyleX |
|---|---|---|---|---|
| Display XL | Inter Semi Bold | 64/64 | -4.5% | type.displayXl |
| Display | Inter Semi Bold | 44/46 | -3.5% | type.display |
| H1 | Inter Semi Bold | 28/32 | -2.5% | type.title1 |
| H2 | Inter Semi Bold | 20/26 | -1.8% | type.title2 |
| H3 | Inter Semi Bold | 16/22 | -1.2% | type.title3 |
| Body | Inter Regular | 14/21 | -0.6% | type.body |
| Body small | Inter Regular | 13/20 | -0.4% | type.bodySm |
| Body small strong | Inter Medium | 13/20 | -0.4% | type.bodySm |
| Caption | Inter Regular | 12/16 | 0% | type.caption |
| Label | Geist Mono Medium | 11/16 | 3% | type.label |
| Mono | Geist Mono Regular | 12.5/20 | 0% | type.code |
| Mono small | Geist Mono Regular | 11/16 | 0% | type.mono |
Effect styles
Dark shadows are different values, not a mode, so each elevation has a Shadow dark/* twin.
- Shadow/xsshadows.xs · 0 1px 0 rgba(17,17,16,.04)
- Shadow dark/xsshadows.xs (dark) · 0 0 0 1px rgba(255,255,255,.04)
- Shadow/smshadows.sm · 0 1px 2px rgba(17,17,16,.06), 0 0 0 1px rgba(17,17,16,.05)
- Shadow dark/smshadows.sm (dark) · 0 0 0 1px rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.4)
- Shadow/mdshadows.md · 0 1px 1px rgba(17,17,16,.03), 0 2px 4px rgba(17,17,16,.04), 0 8px 16px -4px rgba(17,17,16,.06), 0 0 0 1px rgba(17,17,16,.05)
- Shadow dark/mdshadows.md (dark) · 0 0 0 1px rgba(255,255,255,.07), 0 8px 24px -6px rgba(0,0,0,.6)
- Shadow/lgshadows.lg · 0 2px 2px rgba(17,17,16,.03), 0 8px 12px rgba(17,17,16,.04), 0 24px 48px -12px rgba(17,17,16,.14), 0 0 0 1px rgba(17,17,16,.06)
- Shadow dark/lgshadows.lg (dark) · 0 0 0 1px rgba(255,255,255,.08), 0 24px 64px -12px rgba(0,0,0,.8)
- Shadow/modalshadows.modal · 0 0 0 1px rgba(17,17,16,.07), 0 32px 80px -16px rgba(17,17,16,.28), 0 12px 24px -8px rgba(17,17,16,.08)
- Shadow dark/modalshadows.modal (dark) · 0 0 0 1px rgba(255,255,255,.08), 0 32px 80px -16px rgba(0,0,0,.85)
Components · 34 sets, 136 variants
| Set | Variants | Properties | Dev Mode JSX |
|---|---|---|---|
| Button | 36 | size (2), state (3), variant (6) | <Button variant="primary" size="md" icon={<Plus />}>Deploy</Button> |
| IconButton | 6 | size (2), variant (3) | <Button iconOnly aria-label="More" variant="ghost" icon={<MoreHorizontal />} /> |
| Badge | 7 | tone (7) | <Badge tone="good">Passed</Badge> |
| Status | 5 | state (5) | <Status state="good">Live</Status> |
| KindTag | 6 | kind (6) | <KindTag kind="postgres" /> |
| Input | 4 | state (4) | <Field label="Name" hint="Lowercase letters, numbers and dashes."><Input defaultValue="production" /></Field> |
| Select | 3 | state (3) | <Select mono defaultValue="us-east-1"><option>us-east-1</option></Select> |
| Checkbox | 3 | checked (3) | <Checkbox label="Failed deployments" description="Email the team" defaultChecked /> |
| Radio | 2 | checked (2) | <RadioGroup label="Deploy strategy" options={[{ value: "rolling", label: "Rolling" }]} /> |
| Switch | 2 | checked (2) | <Switch label="Auto-deploy from main" defaultChecked /> |
| SegmentedItem | 2 | selected (2) | <Segmented value={range} onChange={setRange} options={["24h", "7d", "30d"]} /> |
| Segmented | 3 | selected (3) | <Segmented label="Range" value="7d" options={["24h", "7d", "30d", "90d"]} /> |
| Tab | 2 | current (2) | <Tabs label="Views" value="canvas" onChange={setView} tabs={[{ value: "canvas", label: "Canvas", panel }]} /> |
| Tabs | 1 | size (1) | <Tabs label="Views" value="canvas" tabs={tabs} /> |
| RouteTab | 2 | current (2) | <RouteTabs label="Project" items={[{ href: "/overview", label: "Overview", current: true }]} /> |
| Card | 3 | variant (3) | <Card variant="raised" title="Details" description="Production deployment" footer="Updated 4m ago">…</Card> |
| Meter | 2 | level (2) | <Meter label="Memory" value={147} max={1024} detail="147 MB / 1 GB" /> |
| Banner | 4 | tone (4) | <Banner tone="warn" title="Certificate expires in 6 days.">DNS for api.example.com isn’t pointing here.</Banner> |
| Toast | 3 | tone (3) | const toast = useToast(); toast({ tone: "good", title: "Deployment started", description: "Building 4be1c0a from main.", action: { label: "View", onClick } }) |
| MenuItem | 6 | state (3), tone (2) | <MenuItem icon={<RefreshCw />} shortcut="⌘C" onSelect={copy}>Copy deployment ID</MenuItem> |
| Menu | 1 | size (1) | <Menu trigger={<Button icon={<MoreHorizontal />}>Actions</Button>} items={items} /> |
| Tooltip | 2 | shortcut (2) | <Tooltip content="Copy ID" shortcut="⌘C"><IconButton … /></Tooltip> |
| Dialog | 1 | size (1) | <ConfirmDialog open title="Delete api-gateway?" confirmLabel="Delete project" tone="danger" onConfirm={remove} /> |
| TableHeaderCell | 2 | align (2) | <DataTable columns={[{ key: "status", header: "Status" }]} rows={rows} /> |
| TableCell | 10 | type (5), state (2) | <Table>…<td>…</td></Table> |
| Breadcrumbs | 1 | size (1) | <Breadcrumbs items={[{ label: "Acme", href: "/" }, { label: "api-gateway", badge: "production" }, { label: "Overview" }]} /> |
| AppHeader | 1 | size (1) | <AppHeader brand={<LogoMark />} breadcrumbs={crumbs} tabs={tabs} actions={<UserMenu />} /> |
| StagedBar | 1 | size (1) | <StagedBar added={1} changed={3} onDiscard={discard} onReview={review} /> |
| Kbd | 2 | size (2) | <Kbd>⌘K</Kbd> |
| Avatar | 5 | size (5) | <Avatar name="Carson Hale" size={28} /> |
| CodeBlock | 1 | size (1) | <Terminal title="Terminal" lines={["$ meridian deploy --env=production", "→ Building image … ✓ 38s"]} /> |
| DiffRow | 3 | change (3) | <DiffList items={[{ key: "size", kind: "changed", from: "small", to: "medium" }]} /> |
| LogoMark | 2 | size (2) | <LogoMark size={24} title="Meridian" /> |
| Logo | 2 | size (2) | <Logo size={24} /> |
Three routes into Figma
Route a
Run the builder plugin
- In Figma desktop, Plugins → Development → Import plugin from manifest… and pick
kit/figma/plugin/manifest.json. - In a new, empty design file, run Meridian Library Builder. It finishes with a toast: “115 variables, 12 text + 10 effect styles, 34 component sets (136 variants)”.
- Publish it as a team library (Assets → Libraries → Publish).
The full-fidelity route: bound variables, shared styles, Code Connect. Needs Inter; mono text uses Geist Mono or the first installed fallback. The plugin has no network access and only creates things.
Route b
Import variables only
Tokens Studio: load tokens-studio.json, choose the Meridian / Light or Dark theme, then Export to Figma with themes as modes.
Variables importers or the REST API: use variables.figma-rest.json, or feed variables.json to any tool that reads collections → modes → variables. Colours are { r, g, b, a } in 0–1; floats are px.
Tokens only: no components.
Route c
Open the .fig
Drag Meridian-Library.fig into Figma (Import): the Cover, Foundations and Components pages and all 34 component sets, with their properties, descriptions and the Dark preview.
Built by FigCraft, whose .fig export is experimental: layers keep resolved Light values but lose their variable bindings, shared styles and Code Connect links. Use it to look around, or to hand to someone without plugin access.
{ "collections": [ { "name": "Color", "modes": ["Light", "Dark"], "variables": [
{ "name": "bg/canvas", "type": "COLOR",
"valuesByMode": { "Light": { "alias": { "collection": "Primitives", "name": "graphite/g25" } }, "Dark": { … } },
"scopes": ["FRAME_FILL", "SHAPE_FILL", "STROKE_COLOR", "TEXT_FILL"],
"codeSyntax": { "WEB": "colors.bg" }, "description": "#FCFCFB / #0A0A09" } ] } ] }
Files
Meridian Design Language48