Skip to content

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

CategoryMonoplinth leaves outMonoplinth uses instead
Gradients and glassmorphismGradient blobs, gradient text, backdrop-blur-*, frosted glass, glowing orbs60-30-10 solid surfaces; 1px dark-mode borders (--obsidian-6, --obsidian-7); light-mode shadows (--shadow-sm to --shadow-xl)
Template hero layoutsCentered "Build faster" hero with three equal stock-icon cardsGrid-aligned architectural layout across 4 cols (320px+), 8 cols (768px+), 12 cols (1024px+)
Emoji and decorative iconsEmoji as UI icons and non-functional spark or decoration iconsLucide icons (2px stroke, absoluteStrokeWidth) at 16px, 20px, 24px
Marketing superlativesMarketing superlatives (seamless, unleash, elevate, supercharge) and non-factual sentencesOne verifiable fact or enforceable rule per sentence
Bouncy and looping motionBounce/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

RuleRequirementValid example
HeadingsSentence case on every heading level; capitalize only the first word and proper nouns.Modes and themes
SentencesEvery sentence states one verifiable fact or one enforceable rule.Body text stays at 16px across viewports.
Numeric unitsAttach the unit directly to the number with no intervening space.16px, 262ms, 90rem, 68ch
Excluded wordsVerified 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

Do: Use solid surfaces, 2px functional icons, and factual copy
Separate layers with bg-background, bg-muted, and bg-card; render Lucide icons with strokeWidth={2} and absoluteStrokeWidth only on interactive or status elements; state exact token measurements.
Don't: Avoid gradients, backdrop blur, emoji icons, and filler adjectives
Skip bg-gradient-to-*, backdrop-blur, glowing drop-shadows, decorative spark icons, emoji bullets, and the listed marketing superlatives.

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 explicit aria-label on icon-only controls (ModeToggle, MobileNav).
  • Motion avoids bounce and elastic curves, respects prefers-reduced-motion, and avoids auto-looping animations longer than 5000ms without 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.