Skip to content
OverviewMarkdown

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:

npm install @freshgemui/monoplinth

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

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

Import components and typed token constants from the package root:

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

Foundation guides

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

Component guides

Machine-readable endpoints

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