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>.
--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:
| Density | Row height | Control height | Use for |
|---|---|---|---|
compact | 32px | 28px | Data tables, dense grids |
default | 36px | 32px | Most operational screens |
comfortable | 44px | 38px | Settings, onboarding, mobile |
What Meridian will not do
- Reset your page. No global reset beyond
box-sizingand margin cleanup on headings and paragraphs. - Ship icons or fonts. Type uses the system stack by default; bring your own if you need a specific voice.
- Handle state. Components render states through classes (
is-active,is-invalid,is-disabled); how that state is produced is your application's problem.