Rectangular for shadcn/ui

Rectangular is a shadcn/ui theme built around a muted cyan primary color (#819ca2) with muted red accents (#a28781). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the muted cyan primary (#819ca2) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#010304black
Foreground
#040e10black
#f6f8f8whitesmoke
Card
#f5f9faghostwhite
#030708black
Card foreground
#030a0cblack
#f9fafbghostwhite
Popover
#f5f9faghostwhite
#030708black
Popover foreground
#030a0cblack
#f9fafbghostwhite
Primary
#819ca2lightslategray
#819ca2lightslategray
Primary foreground
#000000black
#000000black
Secondary
#a28781rosybrown
#a28781rosybrown
Secondary foreground
#000000black
#000000black
Muted
#f4f1f0whitesmoke
#0f0b0bblack
Muted foreground
#666260dimgray
#9f9a99darkgray
Accent
#a28781rosybrown
#a28781rosybrown
Accent foreground
#000000black
#000000black
Destructive
#932301darkred
#e93701orangered
Destructive foreground
#ffd4c7peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#819ca2lightslategray
#819ca2lightslategray

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.78:1AAA
Text on card18.82:1AAA
Primary button7.19:1AAA
Secondary button6.31:1AA
Muted text5.36:1AA
Accent6.31:1AA
Destructive6.23:1AA
Dark mode
Text on background19.35:1AAA
Text on card19.40:1AAA
Primary button7.19:1AAA
Secondary button6.31:1AA
Muted text7.03:1AAA
Accent6.31:1AA
Destructive4.17:1AA Large

CSS variables

Paste this into your globals.css to use Rectangular in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 212.664);
  --foreground: oklch(0.154 0.017 211.612);
  --muted: oklch(0.96 0.004 32.661);
  --muted-foreground: oklch(0.499 0.006 32.665);
  --popover: oklch(0.979 0.005 212.665);
  --popover-foreground: oklch(0.139 0.015 209.645);
  --card: oklch(0.979 0.005 212.665);
  --card-foreground: oklch(0.139 0.015 209.645);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.673 0.031 212.827);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.646 0.034 32.771);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.646 0.034 32.771);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.437 0.153 35.018);
  --destructive-foreground: oklch(0.903 0.051 37.594);
  --ring: oklch(0.673 0.031 212.827);
  --chart-1: oklch(0.673 0.031 212.827);
  --chart-2: oklch(0.646 0.034 32.771);
  --chart-3: oklch(0.646 0.034 32.771);
  --chart-4: oklch(0.672 0.031 32.746);
  --chart-5: oklch(0.677 0.037 212.895);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.009 209.198);
  --foreground: oklch(0.978 0.002 212.663);
  --muted: oklch(0.156 0.006 32.726);
  --muted-foreground: oklch(0.689 0.006 32.662);
  --popover: oklch(0.12 0.011 209.198);
  --popover-foreground: oklch(0.985 0.001 212.662);
  --card: oklch(0.12 0.011 209.198);
  --card-foreground: oklch(0.985 0.001 212.662);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.673 0.031 212.827);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.646 0.034 32.771);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.646 0.034 32.771);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.612 0.219 34.024);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.673 0.031 212.827);
  --chart-1: oklch(0.673 0.031 212.827);
  --chart-2: oklch(0.646 0.034 32.771);
  --chart-3: oklch(0.646 0.034 32.771);
  --chart-4: oklch(0.672 0.031 32.746);
  --chart-5: oklch(0.677 0.037 212.895);
}