Dory for shadcn/ui

Dory is a shadcn/ui theme built around a muted light green primary color (#e4e9dd) with muted light pink accents (#e9dde4). The light mode uses a neutral background (#fafdf7). Dark mode keeps the muted light green primary (#e4e9dd) on a green-tinted background (#0b1005).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#0b1005black
Foreground
#030401black
#ffffffwhite
Card
#f8fcf3whitesmoke
#0e1306black
Card foreground
#000000black
#ffffffwhite
Popover
#fafdf7mintcream
#0b1005black
Popover foreground
#030401black
#ffffffwhite
Primary
#e4e9ddgainsboro
#e4e9ddgainsboro
Primary foreground
#4c593bdarkolivegreen
#4c593bdarkolivegreen
Secondary
#dde4e9gainsboro
#dde4e9gainsboro
Secondary foreground
#3b4c59darkslategray
#3b4c59darkslategray
Muted
#cddde9gainsboro
#162632darkslategray
Muted foreground
#505d68dimgray
#97a5afdarkgray
Accent
#e9dde4gainsboro
#e9dde4gainsboro
Accent foreground
#593b4cdarkslategray
#593b4cdarkslategray
Destructive
#bd220afirebrick
#f44d34tomato
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e4e9ddgainsboro
#e4e9ddgainsboro

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card20.18:1AAA
Primary button6.05:1AA
Secondary button6.90:1AA
Muted text4.87:1AA
Accent7.40:1AAA
Destructive6.02:1AA
Dark mode
Text on background19.31:1AAA
Text on card18.80:1AAA
Primary button6.05:1AA
Secondary button6.90:1AA
Muted text6.15:1AA
Accent7.40:1AAA
Destructive3.51:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.008 125.852);
  --foreground: oklch(0.101 0.015 124.91);
  --muted: oklch(0.89 0.024 240.656);
  --muted-foreground: oklch(0.472 0.024 241.008);
  --popover: oklch(0.99 0.008 125.852);
  --popover-foreground: oklch(0.101 0.015 124.91);
  --card: oklch(0.985 0.013 125.91);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.926 0.016 125.969);
  --primary-foreground: oklch(0.443 0.049 127.315);
  --secondary: oklch(0.915 0.01 240.427);
  --secondary-foreground: oklch(0.407 0.03 241.408);
  --accent: oklch(0.909 0.015 342.195);
  --accent-foreground: oklch(0.393 0.049 344.577);
  --destructive: oklch(0.515 0.192 31.35);
  --destructive-foreground: oklch(0.99 0.004 27.955);
  --ring: oklch(0.926 0.016 125.969);
  --chart-1: oklch(0.926 0.016 125.969);
  --chart-2: oklch(0.915 0.01 240.427);
  --chart-3: oklch(0.909 0.015 342.195);
  --chart-4: oklch(0.938 0.007 240.385);
  --chart-5: oklch(0.927 0.018 126.003);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.162 0.024 126.476);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.259 0.031 242.362);
  --muted-foreground: oklch(0.714 0.022 240.706);
  --popover: oklch(0.162 0.024 126.476);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.178 0.028 127.471);
  --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.926 0.016 125.969);
  --primary-foreground: oklch(0.443 0.049 127.315);
  --secondary: oklch(0.915 0.01 240.427);
  --secondary-foreground: oklch(0.407 0.03 241.408);
  --accent: oklch(0.909 0.015 342.195);
  --accent-foreground: oklch(0.393 0.049 344.577);
  --destructive: oklch(0.653 0.208 31.582);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.926 0.016 125.969);
  --chart-1: oklch(0.926 0.016 125.969);
  --chart-2: oklch(0.915 0.01 240.427);
  --chart-3: oklch(0.909 0.015 342.195);
  --chart-4: oklch(0.938 0.007 240.385);
  --chart-5: oklch(0.927 0.018 126.003);
}