Real for shadcn/ui

Real is a shadcn/ui theme built around a light teal primary color (#e9fcf9) with light red accents (#fce9ec). The light mode uses a neutral background (#fbfefe). Dark mode keeps the light teal primary (#e9fcf9) on a teal-tinted background (#05100e).

Color palette

TokenLightDark
Background
#fbfefewhite
#05100eblack
Foreground
#061311black
#fcfdfdwhite
Card
#f7fdfcmintcream
#061412black
Card foreground
#050f0eblack
#ffffffwhite
Popover
#f7fdfcmintcream
#061412black
Popover foreground
#050f0eblack
#ffffffwhite
Primary
#e9fcf9azure
#e9fcf9azure
Primary foreground
#0a423adarkslategray
#0a423adarkslategray
Secondary
#fce9eclinen
#fce9eclinen
Secondary foreground
#9a182cbrown
#9a182cbrown
Muted
#ecdfe1gainsboro
#201315black
Muted foreground
#664d51dimgray
#b2999drosybrown
Accent
#fce9eclinen
#fce9eclinen
Accent foreground
#9a182cbrown
#9a182cbrown
Destructive
#8d1207darkred
#e01c0bred
Destructive foreground
#fccec9pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e9fcf9azure
#e9fcf9azure

Contrast

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

Light mode
Text on background18.67:1AAA
Text on card18.88:1AAA
Primary button10.62:1AAA
Secondary button7.07:1AAA
Muted text5.90:1AA
Accent7.07:1AAA
Destructive6.65:1AA
Dark mode
Text on background18.99:1AAA
Text on card18.85:1AAA
Primary button10.62:1AAA
Secondary button7.07:1AAA
Muted text6.81:1AA
Accent7.07:1AAA
Destructive4.83:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 186.507);
  --foreground: oklch(0.175 0.02 183.722);
  --muted: oklch(0.914 0.015 7);
  --muted-foreground: oklch(0.447 0.034 8.503);
  --popover: oklch(0.989 0.007 186.418);
  --popover-foreground: oklch(0.159 0.017 184.488);
  --card: oklch(0.989 0.007 186.418);
  --card-foreground: oklch(0.159 0.017 184.488);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.975 0.02 186.074);
  --primary-foreground: oklch(0.343 0.057 180.131);
  --secondary: oklch(0.949 0.021 7.138);
  --secondary-foreground: oklch(0.447 0.163 20.044);
  --accent: oklch(0.949 0.021 7.138);
  --accent-foreground: oklch(0.447 0.163 20.044);
  --destructive: oklch(0.413 0.158 30.156);
  --destructive-foreground: oklch(0.89 0.054 24.269);
  --ring: oklch(0.975 0.02 186.074);
  --chart-1: oklch(0.975 0.02 186.074);
  --chart-2: oklch(0.949 0.021 7.138);
  --chart-3: oklch(0.949 0.021 7.138);
  --chart-4: oklch(0.98 0.008 6.803);
  --chart-5: oklch(0.976 0.021 186.053);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.16 0.018 184.384);
  --foreground: oklch(0.993 0.001 186.573);
  --muted: oklch(0.205 0.022 9.325);
  --muted-foreground: oklch(0.707 0.03 7.656);
  --popover: oklch(0.176 0.021 183.598);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.176 0.021 183.598);
  --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.975 0.02 186.074);
  --primary-foreground: oklch(0.343 0.057 180.131);
  --secondary: oklch(0.949 0.021 7.138);
  --secondary-foreground: oklch(0.447 0.163 20.044);
  --accent: oklch(0.949 0.021 7.138);
  --accent-foreground: oklch(0.447 0.163 20.044);
  --destructive: oklch(0.578 0.226 30.064);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.975 0.02 186.074);
  --chart-1: oklch(0.975 0.02 186.074);
  --chart-2: oklch(0.949 0.021 7.138);
  --chart-3: oklch(0.949 0.021 7.138);
  --chart-4: oklch(0.98 0.008 6.803);
  --chart-5: oklch(0.976 0.021 186.053);
}