Sunny for shadcn/ui

Sunny is a shadcn/ui theme built around a vivid light teal primary color (#97f7e4) with neutral gray accents (#e0e1e1). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid light teal primary (#97f7e4) on a teal-tinted background (#030c0a).

Color palette

TokenLightDark
Background
#fbfefdwhite
#030c0ablack
Foreground
#040c0ablack
#fcfdfdwhite
Card
#f8fcfbmintcream
#05100eblack
Card foreground
#020807black
#ffffffwhite
Popover
#fbfefdwhite
#030c0ablack
Popover foreground
#040c0ablack
#fcfdfdwhite
Primary
#97f7e4paleturquoise
#97f7e4paleturquoise
Primary foreground
#075545darkslategray
#075545darkslategray
Secondary
#e0e1e1gainsboro
#182522black
Secondary foreground
#464948darkslategray
#a9c6c0silver
Muted
#d7eae6gainsboro
#152824black
Muted foreground
#4a4a4adarkslategray
#b5b5b5silver
Accent
#e0e1e1gainsboro
#182522black
Accent foreground
#464948darkslategray
#a9c6c0silver
Destructive
#d24c04chocolate
#fa610forangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#97f7e4paleturquoise
#97f7e4paleturquoise

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.51:1AAA
Primary button6.96:1AA
Secondary button6.94:1AA
Muted text7.08:1AAA
Accent6.94:1AA
Destructive4.39:1AA Large
Dark mode
Text on background19.42:1AAA
Text on card19.35:1AAA
Primary button6.96:1AA
Secondary button8.70:1AAA
Muted text7.51:1AAA
Accent8.70:1AAA
Destructive6.79:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 183.12);
  --foreground: oklch(0.143 0.016 182.503);
  --muted: oklch(0.922 0.021 182.561);
  --muted-foreground: oklch(0.409 0 190.305);
  --popover: oklch(0.994 0.002 183.12);
  --popover-foreground: oklch(0.143 0.016 182.503);
  --card: oklch(0.988 0.005 183.055);
  --card-foreground: oklch(0.124 0.014 183.035);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.91 0.095 179.862);
  --primary-foreground: oklch(0.402 0.074 174.217);
  --secondary: oklch(0.909 0.001 183.143);
  --secondary-foreground: oklch(0.402 0.004 182.92);
  --accent: oklch(0.909 0.001 183.143);
  --accent-foreground: oklch(0.402 0.004 182.92);
  --destructive: oklch(0.593 0.181 40.909);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.91 0.095 179.862);
  --chart-1: oklch(0.91 0.095 179.862);
  --chart-2: oklch(0.909 0.001 183.143);
  --chart-3: oklch(0.909 0.001 183.143);
  --chart-4: oklch(0.932 0.001 183.154);
  --chart-5: oklch(0.914 0.098 179.751);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.016 182.464);
  --foreground: oklch(0.993 0.002 183.14);
  --muted: oklch(0.259 0.026 180.022);
  --muted-foreground: oklch(0.773 0 180);
  --popover: oklch(0.143 0.016 182.464);
  --popover-foreground: oklch(0.993 0.002 183.14);
  --card: oklch(0.16 0.019 180.822);
  --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.91 0.095 179.862);
  --primary-foreground: oklch(0.402 0.074 174.217);
  --secondary: oklch(0.251 0.018 181.103);
  --secondary-foreground: oklch(0.803 0.032 182.065);
  --accent: oklch(0.251 0.018 181.103);
  --accent-foreground: oklch(0.803 0.032 182.065);
  --destructive: oklch(0.683 0.202 41.84);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.91 0.095 179.862);
  --chart-1: oklch(0.91 0.095 179.862);
  --chart-2: oklch(0.251 0.018 181.103);
  --chart-3: oklch(0.251 0.018 181.103);
  --chart-4: oklch(0.286 0.021 180.969);
  --chart-5: oklch(0.914 0.098 179.751);
}