Dahlia Koala for shadcn/ui

Dahlia Koala is a shadcn/ui theme built around a purple primary color (#8c4085) with green accents (#408c47). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the purple primary (#8c4085) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7fdsnow
#000000black
Foreground
#040104black
#fbf9fbsnow
Card
#fcf2fblavenderblush
#030303black
Card foreground
#000000black
#fdfcfdwhite
Popover
#fcf2fblavenderblush
#030303black
Popover foreground
#000000black
#fdfcfdwhite
Primary
#8c4085rebeccapurple
#8c4085rebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#408c47seagreen
#408c47seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e1efe2gainsboro
#101e11black
Muted foreground
#4a544bdarkslategray
#abb5acdarkgray
Accent
#408c47seagreen
#408c47seagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6e0b08maroon
#db160fred
Destructive foreground
#f9b0aelightpink
#ffffffwhite
Border
#f0ebefwhitesmoke
#1d161cblack
Input
#f0ebefwhitesmoke
#1d161cblack
Ring
#8c4085rebeccapurple
#8c4085rebeccapurple

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.29:1AAA
Primary button6.58:1AA
Secondary button4.16:1AA Large
Muted text6.63:1AA
Accent4.16:1AA Large
Destructive6.92:1AA
Dark mode
Text on background20.04:1AAA
Text on card20.20:1AAA
Primary button6.58:1AA
Secondary button4.16:1AA Large
Muted text8.17:1AAA
Accent4.16:1AA Large
Destructive5.06:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.011 328.177);
  --foreground: oklch(0.086 0.019 329.355);
  --muted: oklch(0.938 0.023 147.804);
  --muted-foreground: oklch(0.434 0.019 147.605);
  --popover: oklch(0.973 0.016 328.234);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.016 328.234);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.944 0.008 328.153);
  --input: oklch(0.944 0.008 328.153);
  --primary: oklch(0.496 0.136 330.646);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.574 0.127 145.295);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.574 0.127 145.295);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.344 0.131 28.797);
  --destructive-foreground: oklch(0.827 0.086 21.294);
  --ring: oklch(0.496 0.136 330.646);
  --chart-1: oklch(0.496 0.136 330.646);
  --chart-2: oklch(0.574 0.127 145.295);
  --chart-3: oklch(0.574 0.127 145.295);
  --chart-4: oklch(0.605 0.135 145.274);
  --chart-5: oklch(0.497 0.145 330.812);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.003 328.094);
  --muted: oklch(0.218 0.032 146.353);
  --muted-foreground: oklch(0.762 0.016 147.839);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.992 0.001 328.079);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 328.079);
  --border: oklch(0.211 0.017 328.86);
  --input: oklch(0.211 0.017 328.86);
  --primary: oklch(0.496 0.136 330.646);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.574 0.127 145.295);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.574 0.127 145.295);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.567 0.224 29.145);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.496 0.136 330.646);
  --chart-1: oklch(0.496 0.136 330.646);
  --chart-2: oklch(0.574 0.127 145.295);
  --chart-3: oklch(0.574 0.127 145.295);
  --chart-4: oklch(0.605 0.135 145.274);
  --chart-5: oklch(0.497 0.145 330.812);
}