Unrealistic for shadcn/ui

Unrealistic is a shadcn/ui theme built around a muted violet primary color (#63497e) with muted green accents (#647e49). The light mode uses a neutral background (#faf7fd). Dark mode keeps the muted violet primary (#63497e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#faf7fdghostwhite
#000000black
Foreground
#0c0415black
#fcfcfdwhite
Card
#faf7fdghostwhite
#000000black
Card foreground
#0c0415black
#fcfcfdwhite
Popover
#faf7fdghostwhite
#000000black
Popover foreground
#0c0415black
#fcfcfdwhite
Primary
#63497edarkslateblue
#63497edarkslateblue
Primary foreground
#fcfcfdwhite
#fcfcfdwhite
Secondary
#647e49darkolivegreen
#647e49darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f2f5efwhitesmoke
#0d100ablack
Muted foreground
#5c6553dimgray
#a4ac9adarkgray
Accent
#647e49darkolivegreen
#647e49darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b13a0bfirebrick
#f04f0forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#63497edarkslateblue
#63497edarkslateblue

Contrast

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

Light mode
Text on background18.94:1AAA
Text on card18.94:1AAA
Primary button7.39:1AAA
Secondary button4.52:1AA
Muted text5.55:1AA
Accent4.52:1AA
Destructive6.00:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button7.39:1AAA
Secondary button4.52:1AA
Muted text8.18:1AAA
Accent4.52:1AA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.008 307.691);
  --foreground: oklch(0.136 0.041 305.905);
  --muted: oklch(0.967 0.008 127.89);
  --muted-foreground: oklch(0.493 0.03 128.536);
  --popover: oklch(0.98 0.008 307.691);
  --popover-foreground: oklch(0.136 0.041 305.905);
  --card: oklch(0.98 0.008 307.691);
  --card-foreground: oklch(0.136 0.041 305.905);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.455 0.09 305.372);
  --primary-foreground: oklch(0.991 0.002 307.766);
  --secondary: oklch(0.56 0.083 129.778);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.56 0.083 129.778);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.517 0.163 38.117);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.455 0.09 305.372);
  --chart-1: oklch(0.455 0.09 305.372);
  --chart-2: oklch(0.56 0.083 129.778);
  --chart-3: oklch(0.56 0.083 129.778);
  --chart-4: oklch(0.591 0.089 129.795);
  --chart-5: oklch(0.451 0.099 305.047);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 307.77);
  --muted: oklch(0.166 0.013 128.73);
  --muted-foreground: oklch(0.733 0.028 128.24);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.002 307.77);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.002 307.77);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.455 0.09 305.372);
  --primary-foreground: oklch(0.991 0.002 307.766);
  --secondary: oklch(0.56 0.083 129.778);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.56 0.083 129.778);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.645 0.207 37.69);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.455 0.09 305.372);
  --chart-1: oklch(0.455 0.09 305.372);
  --chart-2: oklch(0.56 0.083 129.778);
  --chart-3: oklch(0.56 0.083 129.778);
  --chart-4: oklch(0.591 0.089 129.795);
  --chart-5: oklch(0.451 0.099 305.047);
}