# Monoplinth

Monoplinth is a numbers-driven React design system by FreshGemUI. An Obsidian to Alabaster 12-step monochrome base carries 90% of the interface, with one brand hue on top.

## Install and import

Install `@freshgemui/monoplinth` alongside React 19 and Tailwind CSS v4:

```bash
npm install @freshgemui/monoplinth
```

Import Tailwind CSS and the Monoplinth token bridge in your root stylesheet:

```css
@import "tailwindcss";
@import "@freshgemui/monoplinth/tokens/theme.css";
@source "../node_modules/@freshgemui/monoplinth/dist";
```

Import components and typed token constants from the package root:

```tsx
import { Card, CardContent, COLOR_SCALES } from "@freshgemui/monoplinth";
```

## Foundation guides

- [Principles](/docs/principles) — the five rules governing scales, monochrome balance, structure, accessibility, and copy.
- [Tokens](/docs/tokens) — the three-tier architecture connecting primitive scales to semantic roles and component contracts.
- [Color](/docs/color) — the 60-30-10 rule, 12-step Radix-style roles, literal dark and light HSL ramps, and measured WCAG contrast tables.
- [Modes & themes](/docs/modes-and-themes) — dark mode default, `.light` mode switching, `data-theme` brand selection, and the blocking no-flash head script.
- [Spacing](/docs/spacing) — the 12-step 4px spacing scale for components (4–48px) and sections (64–128px).
- [Sizing](/docs/sizing) — five sizing steps (16–48px) and four paired control height tiers (`xs` to `lg`).
- [Radius](/docs/radius) — seven corner-radius steps (`0px` to `9999px`) and concentric nested radius math.
- [Borders](/docs/borders) — three pixel border widths (`1px`, `2px`, `4px`) for hairlines, active selection, and accent rules.
- [Elevation](/docs/elevation) — four elevation tiers rendering shadows in light mode and `1px` neutral borders in dark mode.
- [Layout](/docs/layout) — fluid `320px` to `1920px` scaling across `4 · 8 · 12` columns with `1440px` page and `68ch` prose caps.
- [Typography](/docs/typography) — Sora and JetBrains Mono type scales with fixed `16px` body copy and fluid `√φ` headings.
- [Iconography](/docs/iconography) — Lucide icons at `16px`, `20px`, and `24px` with constant `2px` `absoluteStrokeWidth`.
- [Image ratios](/docs/image-ratios) — five locked aspect ratios (`1:1 · 4:3 · 16:9 · 4:5 · 9:16`).
- [Motion](/docs/motion) — five `φ`-derived durations (`100–686ms`) and three restrained cubic-bezier curves.
- [States](/docs/states) — step-shifted interactive states, `2px` focus rings, and six named `z-index` layers (`0–50`).
- [Voice](/docs/voice) — sentence-case headings, factual sentences, unit formatting, and word-list checks.
- [Style boundaries](/docs/style-boundaries) — visual, layout, icon, and copy patterns Monoplinth leaves out, with the tokens it uses instead.

## Component guides

- [Button](/docs/components/button) · [Input](/docs/components/input) · [Textarea](/docs/components/textarea) · [Field](/docs/components/field) · [Select](/docs/components/select) · [Checkbox](/docs/components/checkbox) · [Radio](/docs/components/radio) · [Switch](/docs/components/switch)
- [Card](/docs/components/card) · [Badge](/docs/components/badge) · [Alert](/docs/components/alert) · [Separator](/docs/components/separator) · [Tabs](/docs/components/tabs) · [Accordion](/docs/components/accordion)
- [Dialog](/docs/components/dialog) · [Sheet](/docs/components/sheet) · [Popover](/docs/components/popover) · [Tooltip](/docs/components/tooltip) · [Dropdown](/docs/components/dropdown) · [Toast](/docs/components/toast)

## Machine-readable endpoints

- [/llms.txt](/llms.txt) — concise llmstxt.org index linking every documentation Markdown twin.
- [/llms-full.txt](/llms-full.txt) — complete documentation corpus concatenated in navigation order with expanded token tables.
- [/tokens.json](/tokens.json) — W3C Design Tokens Community Group (DTCG) token manifest across dark and light modes and all four brand themes.
