Sick for shadcn/ui

Sick is a shadcn/ui theme built around a muted green primary color (#78a57e) with muted purple accents (#a578a0). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the muted green primary (#78a57e) on a green-tinted background (#030c04).

Color palette

TokenLightDark
Background
#f8fcf9mintcream
#030c04black
Foreground
#041506black
#fcfdfcwhite
Card
#f8fcf9mintcream
#030c04black
Card foreground
#041506black
#fcfdfcwhite
Popover
#f8fcf9mintcream
#030c04black
Popover foreground
#041506black
#fcfdfcwhite
Primary
#78a57edarkseagreen
#78a57edarkseagreen
Primary foreground
#000000black
#000000black
Secondary
#a578a0rosybrown
#a578a0rosybrown
Secondary foreground
#000000black
#000000black
Muted
#e5dce4gainsboro
#231a22black
Muted foreground
#755772dimgray
#a88aa5rosybrown
Accent
#a578a0rosybrown
#a578a0rosybrown
Accent foreground
#000000black
#000000black
Destructive
#ba1e03firebrick
#fc4727orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#78a57edarkseagreen
#78a57edarkseagreen

Contrast

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

Light mode
Text on background18.14:1AAA
Text on card18.14:1AAA
Primary button7.50:1AAA
Secondary button5.81:1AA
Muted text4.65:1AA
Accent5.81:1AA
Destructive6.41:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button7.50:1AAA
Secondary button5.81:1AA
Muted text5.51:1AA
Accent5.81:1AA
Destructive3.46:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.005 149.07);
  --foreground: oklch(0.176 0.039 146.818);
  --muted: oklch(0.903 0.016 329.334);
  --muted-foreground: oklch(0.497 0.057 330.392);
  --popover: oklch(0.986 0.005 149.07);
  --popover-foreground: oklch(0.176 0.039 146.818);
  --card: oklch(0.986 0.005 149.07);
  --card-foreground: oklch(0.176 0.039 146.818);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.679 0.075 147.723);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.632 0.078 330.494);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.632 0.078 330.494);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.507 0.192 31.654);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.679 0.075 147.723);
  --chart-1: oklch(0.679 0.075 147.723);
  --chart-2: oklch(0.632 0.078 330.494);
  --chart-3: oklch(0.632 0.078 330.494);
  --chart-4: oklch(0.658 0.072 330.348);
  --chart-5: oklch(0.685 0.086 147.516);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.025 147.905);
  --foreground: oklch(0.993 0.001 149.121);
  --muted: oklch(0.232 0.022 330.187);
  --muted-foreground: oklch(0.669 0.053 330.018);
  --popover: oklch(0.14 0.025 147.905);
  --popover-foreground: oklch(0.993 0.001 149.121);
  --card: oklch(0.14 0.025 147.905);
  --card-foreground: oklch(0.993 0.001 149.121);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.679 0.075 147.723);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.632 0.078 330.494);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.632 0.078 330.494);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.658 0.222 32.339);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.679 0.075 147.723);
  --chart-1: oklch(0.679 0.075 147.723);
  --chart-2: oklch(0.632 0.078 330.494);
  --chart-3: oklch(0.632 0.078 330.494);
  --chart-4: oklch(0.658 0.072 330.348);
  --chart-5: oklch(0.685 0.086 147.516);
}