Realistic for shadcn/ui

Realistic is a shadcn/ui theme built around a muted light blue primary color (#b6c2cd) with muted light orange accents (#cdc2b6). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted light blue primary (#b6c2cd) on a blue-tinted background (#040a10).

Color palette

TokenLightDark
Background
#fbfcfewhite
#040a10black
Foreground
#010304black
#ffffffwhite
Card
#fbfcfewhite
#040a10black
Card foreground
#010304black
#ffffffwhite
Popover
#fbfcfewhite
#040a10black
Popover foreground
#010304black
#ffffffwhite
Primary
#b6c2cdsilver
#b6c2cdsilver
Primary foreground
#212931darkslategray
#212931darkslategray
Secondary
#cdc2b6silver
#cdc2b6silver
Secondary foreground
#312921darkslategray
#312921darkslategray
Muted
#e0d9d2gainsboro
#2d261fdarkslategray
Muted foreground
#474543darkslategray
#bcbab8silver
Accent
#cdc2b6silver
#cdc2b6silver
Accent foreground
#312921darkslategray
#312921darkslategray
Destructive
#b03411firebrick
#d13d15firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b6c2cdsilver
#b6c2cdsilver

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button8.11:1AAA
Secondary button8.15:1AAA
Muted text6.81:1AA
Accent8.15:1AAA
Destructive6.26:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button8.11:1AAA
Secondary button8.15:1AAA
Muted text7.68:1AAA
Accent8.15:1AAA
Destructive4.77:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 247.849);
  --foreground: oklch(0.088 0.012 238.316);
  --muted: oklch(0.888 0.012 67.671);
  --muted-foreground: oklch(0.391 0.004 67.696);
  --popover: oklch(0.992 0.003 247.849);
  --popover-foreground: oklch(0.088 0.012 238.316);
  --card: oklch(0.992 0.003 247.849);
  --card-foreground: oklch(0.088 0.012 238.316);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.808 0.021 248.086);
  --primary-foreground: oklch(0.276 0.018 248.484);
  --secondary: oklch(0.82 0.021 67.533);
  --secondary-foreground: oklch(0.286 0.018 67.01);
  --accent: oklch(0.82 0.021 67.533);
  --accent-foreground: oklch(0.286 0.018 67.01);
  --destructive: oklch(0.509 0.166 35.119);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.808 0.021 248.086);
  --chart-1: oklch(0.808 0.021 248.086);
  --chart-2: oklch(0.82 0.021 67.533);
  --chart-3: oklch(0.82 0.021 67.533);
  --chart-4: oklch(0.843 0.018 67.58);
  --chart-5: oklch(0.807 0.024 248.127);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.018 243.545);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.275 0.016 67.076);
  --muted-foreground: oklch(0.79 0.004 67.77);
  --popover: oklch(0.141 0.018 243.545);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.141 0.018 243.545);
  --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.808 0.021 248.086);
  --primary-foreground: oklch(0.276 0.018 248.484);
  --secondary: oklch(0.82 0.021 67.533);
  --secondary-foreground: oklch(0.286 0.018 67.01);
  --accent: oklch(0.82 0.021 67.533);
  --accent-foreground: oklch(0.286 0.018 67.01);
  --destructive: oklch(0.575 0.19 34.983);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.808 0.021 248.086);
  --chart-1: oklch(0.808 0.021 248.086);
  --chart-2: oklch(0.82 0.021 67.533);
  --chart-3: oklch(0.82 0.021 67.533);
  --chart-4: oklch(0.843 0.018 67.58);
  --chart-5: oklch(0.807 0.024 248.127);
}