Style boundaries
Monoplinth leaves out a small set of visual, layout, icon, and copy patterns so its monochrome, architectural look stays consistent. Many products use these patterns well, and this page lists what Monoplinth uses instead.
Patterns Monoplinth leaves out
| Category | Monoplinth leaves out | Monoplinth uses instead |
|---|---|---|
| Gradients and glassmorphism | Gradient blobs, gradient text, backdrop-blur-*, frosted glass, glowing orbs | 60-30-10 solid surfaces; 1px dark-mode borders (--obsidian-6, --obsidian-7); light-mode shadows (--shadow-sm to --shadow-xl) |
| Template hero layouts | Centered "Build faster" hero with three equal stock-icon cards | Grid-aligned architectural layout across 4 cols (320px+), 8 cols (768px+), 12 cols (1024px+) |
| Emoji and decorative icons | Emoji as UI icons and non-functional spark or decoration icons | Lucide icons (2px stroke, absoluteStrokeWidth) at 16px, 20px, 24px |
| Marketing superlatives | Marketing superlatives (seamless, unleash, elevate, supercharge) and non-factual sentences | One verifiable fact or enforceable rule per sentence |
| Bouncy and looping motion | Bounce/elastic easing and auto-looping animations over 5000ms without pause (WCAG 2.2.2) | Restrained easings (--ease-standard, --ease-enter, --ease-exit) respecting prefers-reduced-motion |
Depth comes from solid surface steps, dark-mode hairlines, and light-mode shadows rather than gradients or backdrop blur. Layouts align to the architectural grid, and icons appear only where they carry functional meaning.
Copy and token checks
| Rule | Requirement | Valid example |
|---|---|---|
| Headings | Sentence case on every heading level; capitalize only the first word and proper nouns. | Modes and themes |
| Sentences | Every sentence states one verifiable fact or one enforceable rule. | Body text stays at 16px across viewports. |
| Numeric units | Attach the unit directly to the number with no intervening space. | 16px, 262ms, 90rem, 68ch |
| Excluded words | Verified by an automated Vitest scan across every MDX file outside inline and fenced code. | seamless, unleash, elevate, supercharge |
Automated tests flag the listed marketing superlatives across all documentation pages. Every sentence must state a verifiable fact or an enforceable rule.
Usage
Replace decorative effects with solid semantic surfaces, crisp border steps, and factual copy:
<article className="rounded-lg border border-border bg-card p-6 shadow-sm">
<h2 className="font-display text-h4 text-foreground">
Measured surface hierarchy
</h2>
<p className="mt-2 font-sans text-body text-muted-foreground">
Cards use step 3 (--card) over step 1 (--background) with a 1px border in
dark mode and a low-alpha Obsidian shadow in light mode.
</p>
</article>.architectural-card {
background-color: var(--card);
color: var(--card-foreground);
border: var(--border-width-1) solid var(--border);
border-radius: var(--card-radius);
box-shadow: var(--shadow-sm);
}Do and don't
Accessibility
- Translucent glassmorphism and multi-stop gradients produce unpredictable background luminance when scrolled over varied content, which can fail WCAG 1.4.3 (
4.5:1) text contrast. Solid semantic surfaces guarantee deterministic contrast at every scroll position. - Functional icons always include
aria-hidden="true"when paired with visible text, or an explicitaria-labelon icon-only controls (ModeToggle,MobileNav). - Motion avoids bounce and elastic curves, respects
prefers-reduced-motion, and avoids auto-looping animations longer than5000mswithout a pause control (WCAG 2.2.2).
Rationale
Many template-driven interfaces share the same purple-to-cyan gradients, blurred cards, and promotional adjectives. Monoplinth checks for these patterns in code review, Tailwind configuration, and automated Vitest scans so its monochrome, architectural identity stays consistent.