Meridian
esc
  • Actions

  • Navigate

navigate selectesc close

Meridian/Kit · Figma library

Kit · Figma library

The same tokens, on the canvas.

Generated from 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.
Foundations page: the Color roles board in Light and in Dark, swatch by swatch
preview/foundations.pngFull size
Components page: Button, IconButton, Badge, Status, KindTag, Input, Select and Checkbox sets with their variants
preview/components.pngFull size

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

Variable collections in variables.json
CollectionModesVariablesTypesExample
PrimitivesValue2525 colourgraphite/g0 → ramp.g0
ColorLight / Dark4443 colour, 1 string · 19 aliasedbg/canvas → colors.bg
SpaceValue1616 numberspace/s1 → space.s1
RadiusValue77 numberradius/xs → radius.xs
TypeValue2320 number, 3 stringfont-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 styles in styles.json
Text styleFontSize / lineTrackingStyleX
Display XLInter Semi Bold64/64-4.5%type.displayXl
DisplayInter Semi Bold44/46-3.5%type.display
H1Inter Semi Bold28/32-2.5%type.title1
H2Inter Semi Bold20/26-1.8%type.title2
H3Inter Semi Bold16/22-1.2%type.title3
BodyInter Regular14/21-0.6%type.body
Body smallInter Regular13/20-0.4%type.bodySm
Body small strongInter Medium13/20-0.4%type.bodySm
CaptionInter Regular12/160%type.caption
LabelGeist Mono Medium11/163%type.label
MonoGeist Mono Regular12.5/200%type.code
Mono smallGeist Mono Regular11/160%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

Component sets in the library and the JSX Dev Mode shows for each
SetVariantsPropertiesDev Mode JSX
Button36size (2), state (3), variant (6)<Button variant="primary" size="md" icon={<Plus />}>Deploy</Button>
IconButton6size (2), variant (3)<Button iconOnly aria-label="More" variant="ghost" icon={<MoreHorizontal />} />
Badge7tone (7)<Badge tone="good">Passed</Badge>
Status5state (5)<Status state="good">Live</Status>
KindTag6kind (6)<KindTag kind="postgres" />
Input4state (4)<Field label="Name" hint="Lowercase letters, numbers and dashes."><Input defaultValue="production" /></Field>
Select3state (3)<Select mono defaultValue="us-east-1"><option>us-east-1</option></Select>
Checkbox3checked (3)<Checkbox label="Failed deployments" description="Email the team" defaultChecked />
Radio2checked (2)<RadioGroup label="Deploy strategy" options={[{ value: "rolling", label: "Rolling" }]} />
Switch2checked (2)<Switch label="Auto-deploy from main" defaultChecked />
SegmentedItem2selected (2)<Segmented value={range} onChange={setRange} options={["24h", "7d", "30d"]} />
Segmented3selected (3)<Segmented label="Range" value="7d" options={["24h", "7d", "30d", "90d"]} />
Tab2current (2)<Tabs label="Views" value="canvas" onChange={setView} tabs={[{ value: "canvas", label: "Canvas", panel }]} />
Tabs1size (1)<Tabs label="Views" value="canvas" tabs={tabs} />
RouteTab2current (2)<RouteTabs label="Project" items={[{ href: "/overview", label: "Overview", current: true }]} />
Card3variant (3)<Card variant="raised" title="Details" description="Production deployment" footer="Updated 4m ago">…</Card>
Meter2level (2)<Meter label="Memory" value={147} max={1024} detail="147 MB / 1 GB" />
Banner4tone (4)<Banner tone="warn" title="Certificate expires in 6 days.">DNS for api.example.com isn’t pointing here.</Banner>
Toast3tone (3)const toast = useToast(); toast({ tone: "good", title: "Deployment started", description: "Building 4be1c0a from main.", action: { label: "View", onClick } })
MenuItem6state (3), tone (2)<MenuItem icon={<RefreshCw />} shortcut="⌘C" onSelect={copy}>Copy deployment ID</MenuItem>
Menu1size (1)<Menu trigger={<Button icon={<MoreHorizontal />}>Actions</Button>} items={items} />
Tooltip2shortcut (2)<Tooltip content="Copy ID" shortcut="⌘C"><IconButton … /></Tooltip>
Dialog1size (1)<ConfirmDialog open title="Delete api-gateway?" confirmLabel="Delete project" tone="danger" onConfirm={remove} />
TableHeaderCell2align (2)<DataTable columns={[{ key: "status", header: "Status" }]} rows={rows} />
TableCell10type (5), state (2)<Table>…<td>…</td></Table>
Breadcrumbs1size (1)<Breadcrumbs items={[{ label: "Acme", href: "/" }, { label: "api-gateway", badge: "production" }, { label: "Overview" }]} />
AppHeader1size (1)<AppHeader brand={<LogoMark />} breadcrumbs={crumbs} tabs={tabs} actions={<UserMenu />} />
StagedBar1size (1)<StagedBar added={1} changed={3} onDiscard={discard} onReview={review} />
Kbd2size (2)<Kbd>⌘K</Kbd>
Avatar5size (5)<Avatar name="Carson Hale" size={28} />
CodeBlock1size (1)<Terminal title="Terminal" lines={["$ meridian deploy --env=production", "→ Building image … ✓ 38s"]} />
DiffRow3change (3)<DiffList items={[{ key: "size", kind: "changed", from: "small", to: "medium" }]} />
LogoMark2size (2)<LogoMark size={24} title="Meridian" />
Logo2size (2)<Logo size={24} />

Three routes into Figma

Route a

Run the builder plugin

  1. In Figma desktop, Plugins → Development → Import plugin from manifest… and pick kit/figma/plugin/manifest.json.
  2. 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)”.
  3. 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.

variables.json · schema
{ "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