Bake for shadcn/ui

Bake is a shadcn/ui theme built around a pink primary color (#a14a62) with teal accents (#4aa188). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#a14a62) on a neutral background (#070304).

Color palette

TokenLightDark
Background
#ffffffwhite
#070304black
Foreground
#150409black
#ffffffwhite
Card
#fcfcfcsnow
#0a0507black
Card foreground
#110307black
#ffffffwhite
Popover
#fcfcfcsnow
#0a0507black
Popover foreground
#110307black
#ffffffwhite
Primary
#a14a62indianred
#a14a62indianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4aa188cadetblue
#4aa188cadetblue
Secondary foreground
#000000black
#000000black
Muted
#eceeeewhitesmoke
#111312black
Muted foreground
#4a5e59darkslategray
#a1b5afdarkgray
Accent
#4aa188cadetblue
#4aa188cadetblue
Accent foreground
#000000black
#000000black
Destructive
#8f1c0adarkred
#f0472dtomato
Destructive foreground
#fcd5cfbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a14a62indianred
#a14a62indianred

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.75:1AAA
Primary button5.73:1AA
Secondary button6.72:1AA
Muted text5.95:1AA
Accent6.72:1AA
Destructive6.65:1AA
Dark mode
Text on background20.47:1AAA
Text on card20.22:1AAA
Primary button5.73:1AA
Secondary button6.72:1AA
Muted text8.65:1AAA
Accent6.72:1AA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.035 1.198);
  --muted: oklch(0.948 0.003 177.628);
  --muted-foreground: oklch(0.464 0.026 175.96);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.132 0.031 359.356);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.132 0.031 359.356);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.526 0.118 4.133);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.647 0.092 172.223);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.647 0.092 172.223);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.424 0.153 31.549);
  --destructive-foreground: oklch(0.905 0.044 28.259);
  --ring: oklch(0.526 0.118 4.133);
  --chart-1: oklch(0.526 0.118 4.133);
  --chart-2: oklch(0.647 0.092 172.223);
  --chart-3: oklch(0.647 0.092 172.223);
  --chart-4: oklch(0.678 0.097 172.188);
  --chart-5: oklch(0.526 0.126 4.738);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.01 357.594);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.184 0.004 177.038);
  --muted-foreground: oklch(0.756 0.024 176.775);
  --popover: oklch(0.126 0.012 357.594);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.012 357.594);
  --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.526 0.118 4.133);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.647 0.092 172.223);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.647 0.092 172.223);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.64 0.21 31.635);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.526 0.118 4.133);
  --chart-1: oklch(0.526 0.118 4.133);
  --chart-2: oklch(0.647 0.092 172.223);
  --chart-3: oklch(0.647 0.092 172.223);
  --chart-4: oklch(0.678 0.097 172.188);
  --chart-5: oklch(0.526 0.126 4.738);
}