Dogwood for shadcn/ui

Dogwood is a shadcn/ui theme built around a vivid indigo primary color (#1f06f9) with vivid green accents (#e0f906). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#1f06f9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#030208black
#f9f8fbghostwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#010104black
#fcfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#030208black
#f9f8fbghostwhite
Primary
#1f06f9blue
#1f06f9blue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e0f906yellow
#e0f906yellow
Secondary foreground
#2d3201black
#2d3201black
Muted
#e1e3d4gainsboro
#2a2b1cdarkslategray
Muted foreground
#43443cdarkslategray
#c2c3bbsilver
Accent
#e0f906yellow
#e0f906yellow
Accent foreground
#2d3201black
#2d3201black
Destructive
#771304maroon
#e92507orangered
Destructive foreground
#fdbab0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1f06f9blue
#1f06f9blue

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.39:1AAA
Primary button8.57:1AAA
Secondary button11.27:1AAA
Muted text7.56:1AAA
Accent11.27:1AAA
Destructive6.83:1AA
Dark mode
Text on background19.84:1AAA
Text on card20.16:1AAA
Primary button8.57:1AAA
Secondary button11.27:1AAA
Muted text8.07:1AAA
Accent11.27:1AAA
Destructive4.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.095 0.022 288.162);
  --muted: oklch(0.91 0.02 111.426);
  --muted-foreground: oklch(0.382 0.013 111.632);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.095 0.022 288.162);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.076 0.017 288.162);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.452 0.301 267.034);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.931 0.213 116.698);
  --secondary-foreground: oklch(0.301 0.067 115.576);
  --accent: oklch(0.931 0.213 116.698);
  --accent-foreground: oklch(0.301 0.067 115.576);
  --destructive: oklch(0.368 0.136 31.779);
  --destructive-foreground: oklch(0.848 0.079 28.695);
  --ring: oklch(0.452 0.301 267.034);
  --chart-1: oklch(0.452 0.301 267.034);
  --chart-2: oklch(0.931 0.213 116.698);
  --chart-3: oklch(0.931 0.213 116.698);
  --chart-4: oklch(0.933 0.211 116.327);
  --chart-5: oklch(0.455 0.306 266.5);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.981 0.004 290.933);
  --muted: oklch(0.284 0.026 112.706);
  --muted-foreground: oklch(0.815 0.011 111.257);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.981 0.004 290.933);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.002 290.974);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.452 0.301 267.034);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.931 0.213 116.698);
  --secondary-foreground: oklch(0.301 0.067 115.576);
  --accent: oklch(0.931 0.213 116.698);
  --accent-foreground: oklch(0.301 0.067 115.576);
  --destructive: oklch(0.598 0.229 31.09);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.452 0.301 267.034);
  --chart-1: oklch(0.452 0.301 267.034);
  --chart-2: oklch(0.931 0.213 116.698);
  --chart-3: oklch(0.931 0.213 116.698);
  --chart-4: oklch(0.933 0.211 116.327);
  --chart-5: oklch(0.455 0.306 266.5);
}