Kid for shadcn/ui

Kid is a shadcn/ui theme built around a violet primary color (#a474be) with teal accents (#74bea4). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#a474be) on a neutral background (#060307).

Color palette

TokenLightDark
Background
#fdfbfewhite
#060307black
Foreground
#0c0411black
#faf9fasnow
Card
#fdfbfewhite
#060307black
Card foreground
#0c0411black
#faf9fasnow
Popover
#fdfbfewhite
#060307black
Popover foreground
#0c0411black
#faf9fasnow
Primary
#a474bemediumpurple
#a474bemediumpurple
Primary foreground
#000000black
#000000black
Secondary
#bea474darkkhaki
#bea474darkkhaki
Secondary foreground
#000000black
#000000black
Muted
#e9dfcegainsboro
#312816black
Muted foreground
#63615fdimgray
#a09f9cdarkgray
Accent
#74bea4mediumaquamarine
#74bea4mediumaquamarine
Accent foreground
#000000black
#000000black
Destructive
#9d1510firebrick
#ec4c46tomato
Destructive foreground
#fce4e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a474bemediumpurple
#a474bemediumpurple

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button5.83:1AA
Secondary button8.74:1AAA
Muted text4.67:1AA
Accent9.62:1AAA
Destructive6.80:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.55:1AAA
Primary button5.83:1AA
Secondary button8.74:1AAA
Muted text5.50:1AA
Accent9.62:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 314.193);
  --foreground: oklch(0.13 0.035 314.529);
  --muted: oklch(0.907 0.025 83.057);
  --muted-foreground: oklch(0.495 0.004 83.063);
  --popover: oklch(0.99 0.005 314.193);
  --popover-foreground: oklch(0.13 0.035 314.529);
  --card: oklch(0.99 0.005 314.193);
  --card-foreground: oklch(0.13 0.035 314.529);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.636 0.119 313.137);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.73 0.071 82.559);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.745 0.083 169.695);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.447 0.17 28.708);
  --destructive-foreground: oklch(0.938 0.026 20.013);
  --ring: oklch(0.636 0.119 313.137);
  --chart-1: oklch(0.636 0.119 313.137);
  --chart-2: oklch(0.73 0.071 82.559);
  --chart-3: oklch(0.745 0.083 169.695);
  --chart-4: oklch(0.751 0.065 82.692);
  --chart-5: oklch(0.633 0.128 313.029);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.019 315.749);
  --foreground: oklch(0.984 0.002 314.211);
  --muted: oklch(0.281 0.032 82.264);
  --muted-foreground: oklch(0.702 0.004 83.06);
  --popover: oklch(0.106 0.019 315.749);
  --popover-foreground: oklch(0.984 0.002 314.211);
  --card: oklch(0.106 0.019 315.749);
  --card-foreground: oklch(0.984 0.002 314.211);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.636 0.119 313.137);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.73 0.071 82.559);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.745 0.083 169.695);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.639 0.197 26.346);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.636 0.119 313.137);
  --chart-1: oklch(0.636 0.119 313.137);
  --chart-2: oklch(0.73 0.071 82.559);
  --chart-3: oklch(0.745 0.083 169.695);
  --chart-4: oklch(0.751 0.065 82.692);
  --chart-5: oklch(0.633 0.128 313.029);
}