MMeridian Design System
Getting started

Installation

Meridian is a stylesheet. There is no runtime, no build step and no JavaScript to initialize. You can be using it in under a minute.

The one-line version

<link rel="stylesheet" href="/css/meridian.css">

Everything after this is optional. Components are plain class names: .mrd-btn, .mrd-input, .mrd-card, .mrd-badge.

From npm

npm install @meridian/design-system

# import everything
import "@meridian/design-system/dist/meridian.css";

# or only the layers you need
import "@meridian/design-system/dist/tokens.css";
import "@meridian/design-system/dist/components.css";

Theming

All visual decisions are custom properties on :root. Override them after the import — no selector specificity fights, no !important:

:root {
  --mrd-accent: #1f6f5c;
  --mrd-radius-md: 6px;
  --mrd-density: compact;
}

Dark mode is driven by prefers-color-scheme. To force a theme regardless of the system setting, set data-theme="dark" or data-theme="light" on <html>.

Naming Every token is prefixed --mrd- and every component class is mrd-. The prefix exists so Meridian can sit inside an existing product without colliding with it.

Recommended page shell

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="/css/meridian.css">
  </head>
  <body class="mrd-app">
    <header class="mrd-topbar">…</header>
    <main class="mrd-main">…</main>
  </body>
</html>

Sizing and density

Three densities ship in the box. They adjust spacing and control heights together, so a compact table does not end up with roomy buttons:

DensityRow heightControl heightUse for
compact32px28pxData tables, dense grids
default36px32pxMost operational screens
comfortable44px38pxSettings, onboarding, mobile

What Meridian will not do