Roundabout for shadcn/ui

Roundabout is a shadcn/ui theme built around a deep red primary color (#552b20) with deep indigo accents (#2b2055). The light mode uses a neutral background (#fefcfb). Dark mode keeps the deep red primary (#552b20) on a neutral background (#070403).

Color palette

TokenLightDark
Background
#fefcfbsnow
#070403black
Foreground
#120603black
#ffffffwhite
Card
#fefcfbsnow
#070403black
Card foreground
#120603black
#ffffffwhite
Popover
#fefcfbsnow
#070403black
Popover foreground
#120603black
#ffffffwhite
Primary
#552b20saddlebrown
#552b20saddlebrown
Primary foreground
#e7c8c0pink
#e7c8c0pink
Secondary
#20552bdarkslategray
#20552bdarkslategray
Secondary foreground
#c0e7c8lightgrey
#c0e7c8lightgrey
Muted
#e9ecealavender
#131614black
Muted foreground
#4e504fdarkslategray
#afb1afdarkgray
Accent
#2b2055midnightblue
#2b2055midnightblue
Accent foreground
#c8c0e7thistle
#c8c0e7thistle
Destructive
#640f02maroon
#fa3314orangered
Destructive foreground
#fda89blightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#552b20saddlebrown
#552b20saddlebrown

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button7.66:1AAA
Secondary button6.46:1AA
Muted text6.83:1AA
Accent8.42:1AAA
Destructive6.98:1AA
Dark mode
Text on background20.43:1AAA
Text on card20.43:1AAA
Primary button7.66:1AAA
Secondary button6.46:1AA
Muted text8.45:1AAA
Accent8.42:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 34.313);
  --foreground: oklch(0.139 0.026 42.439);
  --muted: oklch(0.94 0.004 151.937);
  --muted-foreground: oklch(0.429 0.003 151.904);
  --popover: oklch(0.992 0.002 34.313);
  --popover-foreground: oklch(0.139 0.026 42.439);
  --card: oklch(0.992 0.002 34.313);
  --card-foreground: oklch(0.139 0.026 42.439);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.342 0.065 35.032);
  --primary-foreground: oklch(0.857 0.037 34.32);
  --secondary: oklch(0.402 0.089 147.801);
  --secondary-foreground: oklch(0.892 0.059 150.97);
  --accent: oklch(0.289 0.092 288.504);
  --accent-foreground: oklch(0.827 0.055 294.342);
  --destructive: oklch(0.327 0.12 32.235);
  --destructive-foreground: oklch(0.812 0.103 29.092);
  --ring: oklch(0.342 0.065 35.032);
  --chart-1: oklch(0.342 0.065 35.032);
  --chart-2: oklch(0.402 0.089 147.801);
  --chart-3: oklch(0.289 0.092 288.504);
  --chart-4: oklch(0.438 0.099 147.715);
  --chart-5: oklch(0.342 0.07 35.091);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.009 38.551);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.195 0.006 151.51);
  --muted-foreground: oklch(0.758 0.003 151.956);
  --popover: oklch(0.112 0.009 38.551);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.112 0.009 38.551);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.342 0.065 35.032);
  --primary-foreground: oklch(0.857 0.037 34.32);
  --secondary: oklch(0.402 0.089 147.801);
  --secondary-foreground: oklch(0.892 0.059 150.97);
  --accent: oklch(0.289 0.092 288.504);
  --accent-foreground: oklch(0.827 0.055 294.342);
  --destructive: oklch(0.638 0.236 31.425);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.342 0.065 35.032);
  --chart-1: oklch(0.342 0.065 35.032);
  --chart-2: oklch(0.402 0.089 147.801);
  --chart-3: oklch(0.289 0.092 288.504);
  --chart-4: oklch(0.438 0.099 147.715);
  --chart-5: oklch(0.342 0.07 35.091);
}