Real for shadcn/ui

Real is a shadcn/ui theme built around a muted deep teal primary color (#25413f) with muted deep red accents (#412527). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep teal primary (#25413f) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#ffffffwhite
#020303black
Foreground
#031715black
#ffffffwhite
Card
#ffffffwhite
#020303black
Card foreground
#031715black
#ffffffwhite
Popover
#ffffffwhite
#020303black
Popover foreground
#031715black
#ffffffwhite
Primary
#25413fdarkslategray
#25413fdarkslategray
Primary foreground
#bedad8powderblue
#bedad8powderblue
Secondary
#412527darkslategray
#412527darkslategray
Secondary foreground
#dabec0thistle
#dabec0thistle
Muted
#eedddegainsboro
#221112black
Muted foreground
#694f51dimgray
#b09698rosybrown
Accent
#412527darkslategray
#412527darkslategray
Accent foreground
#dabec0thistle
#dabec0thistle
Destructive
#cd2e0efirebrick
#f15232tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#25413fdarkslategray
#25413fdarkslategray

Contrast

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

Light mode
Text on background18.46:1AAA
Text on card18.46:1AAA
Primary button7.43:1AAA
Secondary button7.97:1AAA
Muted text5.63:1AA
Accent7.97:1AAA
Destructive5.25:1AA
Dark mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button7.43:1AAA
Secondary button7.97:1AAA
Muted text6.62:1AA
Accent7.97:1AAA
Destructive3.51: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.185 0.027 188.09);
  --muted: oklch(0.911 0.02 11.724);
  --muted-foreground: oklch(0.455 0.035 12.948);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.185 0.027 188.09);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.185 0.027 188.09);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.353 0.035 188.934);
  --primary-foreground: oklch(0.868 0.03 190.474);
  --secondary: oklch(0.301 0.044 14.611);
  --secondary-foreground: oklch(0.826 0.033 12.12);
  --accent: oklch(0.301 0.044 14.611);
  --accent-foreground: oklch(0.826 0.033 12.12);
  --destructive: oklch(0.554 0.199 32.535);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.353 0.035 188.934);
  --chart-1: oklch(0.353 0.035 188.934);
  --chart-2: oklch(0.301 0.044 14.611);
  --chart-3: oklch(0.301 0.044 14.611);
  --chart-4: oklch(0.329 0.049 14.728);
  --chart-5: oklch(0.357 0.038 188.726);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.006 190.703);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.202 0.03 14.725);
  --muted-foreground: oklch(0.698 0.031 12.219);
  --popover: oklch(0.096 0.006 190.703);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.096 0.006 190.703);
  --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.035 188.934);
  --primary-foreground: oklch(0.868 0.03 190.474);
  --secondary: oklch(0.301 0.044 14.611);
  --secondary-foreground: oklch(0.826 0.033 12.12);
  --accent: oklch(0.301 0.044 14.611);
  --accent-foreground: oklch(0.826 0.033 12.12);
  --destructive: oklch(0.652 0.201 33.204);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.353 0.035 188.934);
  --chart-1: oklch(0.353 0.035 188.934);
  --chart-2: oklch(0.301 0.044 14.611);
  --chart-3: oklch(0.301 0.044 14.611);
  --chart-4: oklch(0.329 0.049 14.728);
  --chart-5: oklch(0.357 0.038 188.726);
}