Real for shadcn/ui

Real is a shadcn/ui theme built around a neutral gray primary color (#525252) with muted light red accents (#d8caca). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#525252) on a red-tinted background (#0e0707).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0707black
Foreground
#040101black
#fdfcfcsnow
Card
#fcfcfcsnow
#110808black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#0e0707black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#525252darkslategray
#525252darkslategray
Primary foreground
#ebebeblinen
#ebebeblinen
Secondary
#e2dfdfgainsboro
#302121darkslategray
Secondary foreground
#4c4343darkslategray
#cdb7b7silver
Muted
#e2dfdfgainsboro
#201d1dblack
Muted foreground
#5a4e4edimgray
#b1a5a5darkgray
Accent
#d8cacalightgrey
#422929darkslategray
Accent foreground
#412f2fdarkslategray
#dac3c3thistle
Destructive
#d20b04red
#fa0d05red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#525252darkslategray
#525252darkslategray

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.54:1AAA
Primary button6.59:1AA
Secondary button7.21:1AAA
Muted text6.01:1AA
Accent7.89:1AAA
Destructive5.54:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.74:1AAA
Primary button6.59:1AA
Secondary button8.05:1AAA
Muted text7.00:1AAA
Accent7.96:1AAA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.082 0.014 20.688);
  --muted: oklch(0.906 0.003 17.219);
  --muted-foreground: oklch(0.437 0.016 17.771);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.082 0.014 20.688);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.437 0 180);
  --primary-foreground: oklch(0.939 0 180);
  --secondary: oklch(0.905 0.004 17.231);
  --secondary-foreground: oklch(0.392 0.012 17.663);
  --accent: oklch(0.85 0.016 17.481);
  --accent-foreground: oklch(0.326 0.026 18.601);
  --destructive: oklch(0.545 0.22 29.396);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.437 0 180);
  --chart-1: oklch(0.437 0 180);
  --chart-2: oklch(0.905 0.004 17.231);
  --chart-3: oklch(0.85 0.016 17.481);
  --chart-4: oklch(0.929 0.003 17.211);
  --chart-5: oklch(0.433 0.006 17.407);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.014 19.072);
  --foreground: oklch(0.992 0.001 17.174);
  --muted: oklch(0.235 0.005 17.495);
  --muted-foreground: oklch(0.732 0.014 17.47);
  --popover: oklch(0.137 0.014 19.072);
  --popover-foreground: oklch(0.992 0.001 17.174);
  --card: oklch(0.149 0.017 19.244);
  --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.437 0 180);
  --primary-foreground: oklch(0.939 0 180);
  --secondary: oklch(0.268 0.023 18.68);
  --secondary-foreground: oklch(0.797 0.025 17.694);
  --accent: oklch(0.312 0.039 19.489);
  --accent-foreground: oklch(0.836 0.026 17.691);
  --destructive: oklch(0.621 0.251 29.372);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.437 0 180);
  --chart-1: oklch(0.437 0 180);
  --chart-2: oklch(0.268 0.023 18.68);
  --chart-3: oklch(0.312 0.039 19.489);
  --chart-4: oklch(0.297 0.026 18.757);
  --chart-5: oklch(0.433 0.006 17.407);
}