Surprised for shadcn/ui

Surprised is a shadcn/ui theme built around a light cyan primary color (#ddeef3) with light orange accents (#f3e2dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the light cyan primary (#ddeef3) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#ffffffwhite
#020303black
Foreground
#010304black
#f8fbfbghostwhite
Card
#ffffffwhite
#020303black
Card foreground
#010304black
#f8fbfbghostwhite
Popover
#ffffffwhite
#020303black
Popover foreground
#010304black
#f8fbfbghostwhite
Primary
#ddeef3lavender
#ddeef3lavender
Primary foreground
#0e232ablack
#0e232ablack
Secondary
#f3e2ddmistyrose
#f3e2ddmistyrose
Secondary foreground
#763c28saddlebrown
#763c28saddlebrown
Muted
#e4d7d2gainsboro
#2d1f1bblack
Muted foreground
#70615cdimgray
#a3948frosybrown
Accent
#f3e2ddmistyrose
#f3e2ddmistyrose
Accent foreground
#763c28saddlebrown
#763c28saddlebrown
Destructive
#9d3e0bsaddlebrown
#db570fchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ddeef3lavender
#ddeef3lavender

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.66:1AAA
Primary button13.58:1AAA
Secondary button6.86:1AA
Muted text4.20:1AA Large
Accent6.86:1AA
Destructive6.69:1AA
Dark mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button13.58:1AAA
Secondary button6.86:1AA
Muted text5.43:1AA
Accent6.86:1AA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.095 0.013 213.478);
  --muted: oklch(0.888 0.016 39.402);
  --muted-foreground: oklch(0.505 0.021 39.306);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.095 0.013 213.478);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.095 0.013 213.478);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.937 0.019 219.678);
  --primary-foreground: oklch(0.242 0.03 221.926);
  --secondary: oklch(0.926 0.02 39.384);
  --secondary-foreground: oklch(0.425 0.087 39.022);
  --accent: oklch(0.926 0.02 39.384);
  --accent-foreground: oklch(0.425 0.087 39.022);
  --destructive: oklch(0.489 0.139 42.985);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.937 0.019 219.678);
  --chart-1: oklch(0.937 0.019 219.678);
  --chart-2: oklch(0.926 0.02 39.384);
  --chart-3: oklch(0.926 0.02 39.384);
  --chart-4: oklch(0.951 0.013 39.423);
  --chart-5: oklch(0.938 0.021 219.69);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.006 216.381);
  --foreground: oklch(0.986 0.003 219.527);
  --muted: oklch(0.255 0.023 39.224);
  --muted-foreground: oklch(0.678 0.02 39.352);
  --popover: oklch(0.093 0.006 216.381);
  --popover-foreground: oklch(0.986 0.003 219.527);
  --card: oklch(0.093 0.006 216.381);
  --card-foreground: oklch(0.986 0.003 219.527);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.937 0.019 219.678);
  --primary-foreground: oklch(0.242 0.03 221.926);
  --secondary: oklch(0.926 0.02 39.384);
  --secondary-foreground: oklch(0.425 0.087 39.022);
  --accent: oklch(0.926 0.02 39.384);
  --accent-foreground: oklch(0.425 0.087 39.022);
  --destructive: oklch(0.621 0.181 42.346);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.937 0.019 219.678);
  --chart-1: oklch(0.937 0.019 219.678);
  --chart-2: oklch(0.926 0.02 39.384);
  --chart-3: oklch(0.926 0.02 39.384);
  --chart-4: oklch(0.951 0.013 39.423);
  --chart-5: oklch(0.938 0.021 219.69);
}