Dash for shadcn/ui

Dash is a shadcn/ui theme built around a green primary color (#56cd84) with teal accents (#56cdbf). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the green primary (#56cd84) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#f7fdf9mintcream
#030705black
Foreground
#031208black
#f4faf7whitesmoke
Card
#f7fdf9mintcream
#030705black
Card foreground
#031208black
#f4faf7whitesmoke
Popover
#f7fdf9mintcream
#030705black
Popover foreground
#031208black
#f4faf7whitesmoke
Primary
#56cd84mediumaquamarine
#56cd84mediumaquamarine
Primary foreground
#000000black
#000000black
Secondary
#64cd56mediumseagreen
#64cd56mediumseagreen
Secondary foreground
#000000black
#000000black
Muted
#d8ecd5gainsboro
#162a13black
Muted foreground
#576d54dimgray
#94ab92darkseagreen
Accent
#56cdbfmediumturquoise
#56cdbfmediumturquoise
Accent foreground
#000000black
#000000black
Destructive
#8d240csaddlebrown
#e63a14orangered
Destructive foreground
#fbd8d0bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#56cd84mediumaquamarine
#56cd84mediumaquamarine

Contrast

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

Light mode
Text on background18.63:1AAA
Text on card18.63:1AAA
Primary button10.41:1AAA
Secondary button10.36:1AAA
Muted text4.52:1AA
Accent10.83:1AAA
Destructive6.64:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.13:1AAA
Primary button10.41:1AAA
Secondary button10.36:1AAA
Muted text6.18:1AA
Accent10.83:1AAA
Destructive4.21:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 159.273);
  --foreground: oklch(0.163 0.031 157.208);
  --muted: oklch(0.921 0.037 141.974);
  --muted-foreground: oklch(0.511 0.047 141.793);
  --popover: oklch(0.989 0.009 159.273);
  --popover-foreground: oklch(0.163 0.031 157.208);
  --card: oklch(0.989 0.009 159.273);
  --card-foreground: oklch(0.163 0.031 157.208);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.761 0.15 153.623);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.759 0.185 141.403);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.776 0.108 184.76);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.427 0.144 33.604);
  --destructive-foreground: oklch(0.909 0.041 32.739);
  --ring: oklch(0.761 0.15 153.623);
  --chart-1: oklch(0.761 0.15 153.623);
  --chart-2: oklch(0.759 0.185 141.403);
  --chart-3: oklch(0.776 0.108 184.76);
  --chart-4: oklch(0.774 0.174 141.423);
  --chart-5: oklch(0.768 0.157 153.316);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.015 159.322);
  --foreground: oklch(0.981 0.008 159.293);
  --muted: oklch(0.261 0.048 141.505);
  --muted-foreground: oklch(0.716 0.044 141.902);
  --popover: oklch(0.122 0.015 159.322);
  --popover-foreground: oklch(0.981 0.008 159.293);
  --card: oklch(0.122 0.015 159.322);
  --card-foreground: oklch(0.981 0.008 159.293);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.761 0.15 153.623);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.759 0.185 141.403);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.776 0.108 184.76);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.609 0.213 33.288);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.761 0.15 153.623);
  --chart-1: oklch(0.761 0.15 153.623);
  --chart-2: oklch(0.759 0.185 141.403);
  --chart-3: oklch(0.776 0.108 184.76);
  --chart-4: oklch(0.774 0.174 141.423);
  --chart-5: oklch(0.768 0.157 153.316);
}