Right for shadcn/ui

Right is a shadcn/ui theme built around a deep red primary color (#701018) with deep indigo accents (#101870). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#701018) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#120304black
#fdfcfcsnow
Card
#fcfcfcsnow
#030303black
Card foreground
#0d0203black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#0d0203black
#ffffffwhite
Primary
#701018maroon
#701018maroon
Primary foreground
#f5bcc1lightpink
#f5bcc1lightpink
Secondary
#187010darkgreen
#187010darkgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5ece4gainsboro
#141b13black
Muted foreground
#435341darkslategray
#aebeacdarkgray
Accent
#101870midnightblue
#101870midnightblue
Accent foreground
#bcc1f5lightsteelblue
#bcc1f5lightsteelblue
Destructive
#7d0b03maroon
#f51505red
Destructive foreground
#fdb9b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#701018maroon
#701018maroon

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card20.00:1AAA
Primary button7.25:1AAA
Secondary button6.27:1AA
Muted text6.82:1AA
Accent8.73:1AAA
Destructive6.65:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button7.25:1AAA
Secondary button6.27:1AA
Muted text9.02:1AAA
Accent8.73:1AAA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.128 0.034 15.098);
  --muted: oklch(0.935 0.012 143.074);
  --muted-foreground: oklch(0.422 0.035 142.735);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.115 0.03 14.307);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.115 0.03 14.307);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.353 0.128 23.261);
  --primary-foreground: oklch(0.848 0.066 12.992);
  --secondary: oklch(0.475 0.15 141.961);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.281 0.147 268.849);
  --accent-foreground: oklch(0.825 0.074 280.582);
  --destructive: oklch(0.376 0.147 30.158);
  --destructive-foreground: oklch(0.848 0.08 23.513);
  --ring: oklch(0.353 0.128 23.261);
  --chart-1: oklch(0.353 0.128 23.261);
  --chart-2: oklch(0.475 0.15 141.961);
  --chart-3: oklch(0.281 0.147 268.849);
  --chart-4: oklch(0.515 0.163 141.97);
  --chart-5: oklch(0.356 0.132 23.784);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 11.27);
  --muted: oklch(0.211 0.017 142.741);
  --muted-foreground: oklch(0.784 0.031 142.951);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.353 0.128 23.261);
  --primary-foreground: oklch(0.848 0.066 12.992);
  --secondary: oklch(0.475 0.15 141.961);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.281 0.147 268.849);
  --accent-foreground: oklch(0.825 0.074 280.582);
  --destructive: oklch(0.614 0.245 29.759);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.353 0.128 23.261);
  --chart-1: oklch(0.353 0.128 23.261);
  --chart-2: oklch(0.475 0.15 141.961);
  --chart-3: oklch(0.281 0.147 268.849);
  --chart-4: oklch(0.515 0.163 141.97);
  --chart-5: oklch(0.356 0.132 23.784);
}