Unrealistic for shadcn/ui

Unrealistic is a shadcn/ui theme built around a near-white primary color (#fdf7fc) with near-white accents (#f7fdf8). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fdf7fc) on a purple-tinted background (#0c030a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c030ablack
Foreground
#040103black
#fbf8fbsnow
Card
#fcfcfcsnow
#10040eblack
Card foreground
#000000black
#fdfcfdwhite
Popover
#ffffffwhite
#0c030ablack
Popover foreground
#040103black
#fbf8fbsnow
Primary
#fdf7fcsnow
#fdf7fcsnow
Primary foreground
#a02287darkmagenta
#a02287darkmagenta
Secondary
#f7fdf8mintcream
#f7fdf8mintcream
Secondary foreground
#104c1cdarkgreen
#104c1cdarkgreen
Muted
#e2e9e3gainsboro
#161d17black
Muted foreground
#4d5b50darkslategray
#a4b2a7darkgray
Accent
#f7fdf8mintcream
#f7fdf8mintcream
Accent foreground
#104c1cdarkgreen
#104c1cdarkgreen
Destructive
#aa2008firebrick
#e52c0borangered
Destructive foreground
#feeae7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdf7fcsnow
#fdf7fcsnow

Contrast

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

Light mode
Text on background20.77:1AAA
Text on card20.54:1AAA
Primary button6.45:1AA
Secondary button9.82:1AAA
Muted text5.80:1AA
Accent9.82:1AAA
Destructive6.18:1AA
Dark mode
Text on background19.26:1AAA
Text on card19.60:1AAA
Primary button6.45:1AA
Secondary button9.82:1AAA
Muted text7.77:1AAA
Accent9.82:1AAA
Destructive4.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.086 0.018 332.901);
  --muted: oklch(0.927 0.011 151.831);
  --muted-foreground: oklch(0.456 0.024 151.184);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.086 0.018 332.901);
  --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.981 0.01 332.155);
  --primary-foreground: oklch(0.495 0.191 337.762);
  --secondary: oklch(0.988 0.01 151.856);
  --secondary-foreground: oklch(0.366 0.098 146.481);
  --accent: oklch(0.988 0.01 151.856);
  --accent-foreground: oklch(0.366 0.098 146.481);
  --destructive: oklch(0.48 0.176 31.887);
  --destructive-foreground: oklch(0.952 0.022 29.563);
  --ring: oklch(0.981 0.01 332.155);
  --chart-1: oklch(0.981 0.01 332.155);
  --chart-2: oklch(0.988 0.01 151.856);
  --chart-3: oklch(0.988 0.01 151.856);
  --chart-4: oklch(1.006 0.005 332.078);
  --chart-5: oklch(0.981 0.01 332.162);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.029 333.384);
  --foreground: oklch(0.983 0.004 332.07);
  --muted: oklch(0.222 0.015 150.923);
  --muted-foreground: oklch(0.749 0.021 151.57);
  --popover: oklch(0.123 0.029 333.384);
  --popover-foreground: oklch(0.983 0.004 332.07);
  --card: oklch(0.137 0.033 334.289);
  --card-foreground: oklch(0.992 0.002 332.038);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.981 0.01 332.155);
  --primary-foreground: oklch(0.495 0.191 337.762);
  --secondary: oklch(0.988 0.01 151.856);
  --secondary-foreground: oklch(0.366 0.098 146.481);
  --accent: oklch(0.988 0.01 151.856);
  --accent-foreground: oklch(0.366 0.098 146.481);
  --destructive: oklch(0.595 0.222 31.698);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.981 0.01 332.155);
  --chart-1: oklch(0.981 0.01 332.155);
  --chart-2: oklch(0.988 0.01 151.856);
  --chart-3: oklch(0.988 0.01 151.856);
  --chart-4: oklch(1.006 0.005 332.078);
  --chart-5: oklch(0.981 0.01 332.162);
}