Caramel for shadcn/ui

Caramel is a shadcn/ui theme built around a teal primary color (#5ddfa9) with pink accents (#df5d93). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#5ddfa9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefdwhite
#000000black
Foreground
#03110bblack
#f6f8f8whitesmoke
Card
#fbfefdwhite
#000000black
Card foreground
#03110bblack
#f6f8f8whitesmoke
Popover
#fbfefdwhite
#000000black
Popover foreground
#03110bblack
#f6f8f8whitesmoke
Primary
#5ddfa9mediumaquamarine
#5ddfa9mediumaquamarine
Primary foreground
#020906black
#020906black
Secondary
#df5d93palevioletred
#df5d93palevioletred
Secondary foreground
#090205black
#090205black
Muted
#e7d0d9gainsboro
#2f1822black
Muted foreground
#68505adimgray
#af97a1darkgray
Accent
#df5d93palevioletred
#df5d93palevioletred
Accent foreground
#090205black
#090205black
Destructive
#692107maroon
#ee4c11orangered
Destructive foreground
#f9bea9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5ddfa9mediumaquamarine
#5ddfa9mediumaquamarine

Contrast

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

Light mode
Text on background18.96:1AAA
Text on card18.96:1AAA
Primary button12.06:1AAA
Secondary button5.99:1AA
Muted text4.98:1AA
Accent5.99:1AA
Destructive7.10:1AAA
Dark mode
Text on background19.70:1AAA
Text on card19.70:1AAA
Primary button12.06:1AAA
Secondary button5.99:1AA
Muted text6.08:1AA
Accent5.99:1AA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 169.595);
  --foreground: oklch(0.163 0.026 166.824);
  --muted: oklch(0.878 0.029 350.582);
  --muted-foreground: oklch(0.459 0.035 351.716);
  --popover: oklch(0.994 0.003 169.595);
  --popover-foreground: oklch(0.163 0.026 166.824);
  --card: oklch(0.994 0.003 169.595);
  --card-foreground: oklch(0.163 0.026 166.824);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.817 0.139 162.968);
  --primary-foreground: oklch(0.125 0.018 169.97);
  --secondary: oklch(0.658 0.17 356.823);
  --secondary-foreground: oklch(0.104 0.024 349.223);
  --accent: oklch(0.658 0.17 356.823);
  --accent-foreground: oklch(0.104 0.024 349.223);
  --destructive: oklch(0.357 0.108 38.193);
  --destructive-foreground: oklch(0.851 0.074 40.883);
  --ring: oklch(0.817 0.139 162.968);
  --chart-1: oklch(0.817 0.139 162.968);
  --chart-2: oklch(0.658 0.17 356.823);
  --chart-3: oklch(0.658 0.17 356.823);
  --chart-4: oklch(0.681 0.158 355.912);
  --chart-5: oklch(0.823 0.144 162.676);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.978 0.002 169.607);
  --muted: oklch(0.245 0.041 354.034);
  --muted-foreground: oklch(0.701 0.031 350.888);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.978 0.002 169.607);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.978 0.002 169.607);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.817 0.139 162.968);
  --primary-foreground: oklch(0.125 0.018 169.97);
  --secondary: oklch(0.658 0.17 356.823);
  --secondary-foreground: oklch(0.104 0.024 349.223);
  --accent: oklch(0.658 0.17 356.823);
  --accent-foreground: oklch(0.104 0.024 349.223);
  --destructive: oklch(0.639 0.208 36.898);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.817 0.139 162.968);
  --chart-1: oklch(0.817 0.139 162.968);
  --chart-2: oklch(0.658 0.17 356.823);
  --chart-3: oklch(0.658 0.17 356.823);
  --chart-4: oklch(0.681 0.158 355.912);
  --chart-5: oklch(0.823 0.144 162.676);
}