Distribution for shadcn/ui

Distribution is a shadcn/ui theme built around a vivid deep green primary color (#516e0c) with vivid deep violet accents (#2a0c6e). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the vivid deep green primary (#516e0c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#000000black
Foreground
#060902black
#f8f8f7whitesmoke
Card
#fbfcf8snow
#030303black
Card foreground
#030401black
#fafaf9snow
Popover
#fbfcf8snow
#030303black
Popover foreground
#030401black
#fafaf9snow
Primary
#516e0cdarkolivegreen
#516e0cdarkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2a0c6emidnightblue
#2a0c6emidnightblue
Secondary foreground
#c9b6f7thistle
#c9b6f7thistle
Muted
#efedf2whitesmoke
#0e0d12black
Muted foreground
#3f3a4bdarkslategray
#b9b4c5silver
Accent
#2a0c6emidnightblue
#2a0c6emidnightblue
Accent foreground
#c9b6f7thistle
#c9b6f7thistle
Destructive
#e14705orangered
#fa601eorangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#516e0cdarkolivegreen
#516e0cdarkolivegreen

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.92:1AAA
Primary button5.84:1AA
Secondary button8.36:1AAA
Muted text9.41:1AAA
Accent8.36:1AAA
Destructive4.12:1AA Large
Dark mode
Text on background19.76:1AAA
Text on card19.80:1AAA
Primary button5.84:1AA
Secondary button8.36:1AAA
Muted text9.60:1AAA
Accent8.36:1AAA
Destructive6.77:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 120.085);
  --foreground: oklch(0.131 0.022 119.885);
  --muted: oklch(0.949 0.008 299.904);
  --muted-foreground: oklch(0.359 0.03 298.611);
  --popover: oklch(0.989 0.006 120.132);
  --popover-foreground: oklch(0.104 0.018 119.885);
  --card: oklch(0.989 0.006 120.132);
  --card-foreground: oklch(0.104 0.018 119.885);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.498 0.122 126.278);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.284 0.149 285.489);
  --secondary-foreground: oklch(0.814 0.093 298.075);
  --accent: oklch(0.284 0.149 285.489);
  --accent-foreground: oklch(0.814 0.093 298.075);
  --destructive: oklch(0.611 0.2 37.617);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.498 0.122 126.278);
  --chart-1: oklch(0.498 0.122 126.278);
  --chart-2: oklch(0.284 0.149 285.489);
  --chart-3: oklch(0.284 0.149 285.489);
  --chart-4: oklch(0.307 0.164 285.03);
  --chart-5: oklch(0.503 0.124 126.488);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.002 120.074);
  --muted: oklch(0.162 0.012 298.803);
  --muted-foreground: oklch(0.78 0.025 299.502);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.986 0.001 120.062);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.001 120.062);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.498 0.122 126.278);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.284 0.149 285.489);
  --secondary-foreground: oklch(0.814 0.093 298.075);
  --accent: oklch(0.284 0.149 285.489);
  --accent-foreground: oklch(0.814 0.093 298.075);
  --destructive: oklch(0.682 0.201 39.994);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.498 0.122 126.278);
  --chart-1: oklch(0.498 0.122 126.278);
  --chart-2: oklch(0.284 0.149 285.489);
  --chart-3: oklch(0.284 0.149 285.489);
  --chart-4: oklch(0.307 0.164 285.03);
  --chart-5: oklch(0.503 0.124 126.488);
}