Dull for shadcn/ui

Dull is a shadcn/ui theme built around a vivid green primary color (#56f44e) with muted light green accents (#bdd7bc). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid green primary (#56f44e) on a green-tinted background (#060f06).

Color palette

TokenLightDark
Background
#fbfefbwhite
#060f06black
Foreground
#020802black
#f9fbf9mintcream
Card
#f7fdf7mintcream
#081207black
Card foreground
#010401black
#fcfdfcwhite
Popover
#fbfefbwhite
#060f06black
Popover foreground
#020802black
#f9fbf9mintcream
Primary
#56f44elimegreen
#56f44elimegreen
Primary foreground
#020e01black
#020e01black
Secondary
#d8e4d8gainsboro
#263725darkslategray
Secondary foreground
#3a5138darkslategray
#bdd2bcsilver
Muted
#dcf0dbgainsboro
#10240fblack
Muted foreground
#495648darkslategray
#aab7a9darkgray
Accent
#bdd7bcsilver
#325530darkslategray
Accent foreground
#253d24darkslategray
#d2e5d1gainsboro
Destructive
#a0260dfirebrick
#d43211firebrick
Destructive foreground
#fde7e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#56f44elimegreen
#56f44elimegreen

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.98:1AAA
Primary button13.51:1AAA
Secondary button6.62:1AA
Muted text6.46:1AA
Accent7.70:1AAA
Destructive6.37:1AA
Dark mode
Text on background18.74:1AAA
Text on card18.67:1AAA
Primary button13.51:1AAA
Secondary button7.91:1AAA
Muted text7.86:1AAA
Accent6.42:1AA
Destructive4.92:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 144.098);
  --foreground: oklch(0.123 0.026 142.218);
  --muted: oklch(0.934 0.034 143.915);
  --muted-foreground: oklch(0.438 0.029 143.739);
  --popover: oklch(0.994 0.005 144.098);
  --popover-foreground: oklch(0.123 0.026 142.218);
  --card: oklch(0.988 0.011 144.065);
  --card-foreground: oklch(0.098 0.021 142.218);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.852 0.244 142.392);
  --primary-foreground: oklch(0.146 0.043 141.459);
  --secondary: oklch(0.906 0.02 144);
  --secondary-foreground: oklch(0.409 0.05 143.385);
  --accent: oklch(0.853 0.047 143.799);
  --accent-foreground: oklch(0.333 0.053 143.154);
  --destructive: oklch(0.465 0.163 32.779);
  --destructive-foreground: oklch(0.944 0.025 31.111);
  --ring: oklch(0.852 0.244 142.392);
  --chart-1: oklch(0.852 0.244 142.392);
  --chart-2: oklch(0.906 0.02 144);
  --chart-3: oklch(0.853 0.047 143.799);
  --chart-4: oklch(0.928 0.015 144.033);
  --chart-5: oklch(0.858 0.25 142.372);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.025 142.827);
  --foreground: oklch(0.986 0.003 144.11);
  --muted: oklch(0.236 0.046 142.932);
  --muted-foreground: oklch(0.765 0.025 143.937);
  --popover: oklch(0.154 0.025 142.827);
  --popover-foreground: oklch(0.986 0.003 144.11);
  --card: oklch(0.17 0.029 142.885);
  --card-foreground: oklch(0.993 0.002 144.12);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.852 0.244 142.392);
  --primary-foreground: oklch(0.146 0.043 141.459);
  --secondary: oklch(0.316 0.039 143.368);
  --secondary-foreground: oklch(0.842 0.038 143.859);
  --accent: oklch(0.412 0.073 143.034);
  --accent-foreground: oklch(0.903 0.034 143.91);
  --destructive: oklch(0.57 0.203 32.626);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.852 0.244 142.392);
  --chart-1: oklch(0.852 0.244 142.392);
  --chart-2: oklch(0.316 0.039 143.368);
  --chart-3: oklch(0.412 0.073 143.034);
  --chart-4: oklch(0.348 0.045 143.344);
  --chart-5: oklch(0.858 0.25 142.372);
}