Hiccups for shadcn/ui

Hiccups is a shadcn/ui theme built around a muted green primary color (#67a269) with muted teal accents (#67a287). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the muted green primary (#67a269) on a green-tinted background (#040c04).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#040c04black
Foreground
#020e02black
#ffffffwhite
Card
#f3fcf3honeydew
#051005black
Card foreground
#010901black
#ffffffwhite
Popover
#f3fcf3honeydew
#051005black
Popover foreground
#010901black
#ffffffwhite
Primary
#67a269mediumseagreen
#67a269mediumseagreen
Primary foreground
#000000black
#000000black
Secondary
#83a267gray
#83a267gray
Secondary foreground
#000000black
#000000black
Muted
#eaede8linen
#141712black
Muted foreground
#454842darkslategray
#babdb7silver
Accent
#67a287cadetblue
#67a287cadetblue
Accent foreground
#000000black
#000000black
Destructive
#7c1e04maroon
#e43707orangered
Destructive foreground
#fdc4b5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#67a269mediumseagreen
#67a269mediumseagreen

Contrast

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

Light mode
Text on background19.05:1AAA
Text on card19.20:1AAA
Primary button6.95:1AA
Secondary button7.32:1AAA
Muted text7.87:1AAA
Accent7.09:1AAA
Destructive6.74:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.44:1AAA
Primary button6.95:1AA
Secondary button7.32:1AAA
Muted text9.53:1AAA
Accent7.09:1AAA
Destructive4.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.009 146.459);
  --foreground: oklch(0.143 0.038 144.337);
  --muted: oklch(0.943 0.006 129.854);
  --muted-foreground: oklch(0.396 0.01 130.036);
  --popover: oklch(0.981 0.014 146.417);
  --popover-foreground: oklch(0.124 0.032 144.389);
  --card: oklch(0.981 0.014 146.417);
  --card-foreground: oklch(0.124 0.032 144.389);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.657 0.103 145.037);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.674 0.089 131.27);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.664 0.074 163.348);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.388 0.133 34.862);
  --destructive-foreground: oklch(0.868 0.068 35.994);
  --ring: oklch(0.657 0.103 145.037);
  --chart-1: oklch(0.657 0.103 145.037);
  --chart-2: oklch(0.674 0.089 131.27);
  --chart-3: oklch(0.664 0.074 163.348);
  --chart-4: oklch(0.695 0.084 131.108);
  --chart-5: oklch(0.663 0.115 144.865);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.025 145.116);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.199 0.01 130.274);
  --muted-foreground: oklch(0.794 0.008 129.89);
  --popover: oklch(0.156 0.029 144.989);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.156 0.029 144.989);
  --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.657 0.103 145.037);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.674 0.089 131.27);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.664 0.074 163.348);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.601 0.214 33.804);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.657 0.103 145.037);
  --chart-1: oklch(0.657 0.103 145.037);
  --chart-2: oklch(0.674 0.089 131.27);
  --chart-3: oklch(0.664 0.074 163.348);
  --chart-4: oklch(0.695 0.084 131.108);
  --chart-5: oklch(0.663 0.115 144.865);
}