Jack for shadcn/ui

Jack is a shadcn/ui theme built around a muted green primary color (#9bae84) with muted pink accents (#ae849b). The light mode uses a neutral background (#fafdf7). Dark mode keeps the muted green primary (#9bae84) on a neutral background (#030402).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#030402black
Foreground
#0e1405black
#f8faf5whitesmoke
Card
#f8fcf2floralwhite
#050703black
Card foreground
#0b1004black
#fafbf8snow
Popover
#f8fcf2floralwhite
#050703black
Popover foreground
#0b1004black
#fafbf8snow
Primary
#9bae84darkseagreen
#9bae84darkseagreen
Primary foreground
#000000black
#000000black
Secondary
#849baelightslategray
#849baelightslategray
Secondary foreground
#000000black
#000000black
Muted
#ecf0f3whitesmoke
#0c1013black
Muted foreground
#3f4850darkslategray
#afb8c0silver
Accent
#ae849brosybrown
#ae849brosybrown
Accent foreground
#000000black
#000000black
Destructive
#880e0cdarkred
#d31612firebrick
Destructive foreground
#fbcccbpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9bae84darkseagreen
#9bae84darkseagreen

Contrast

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

Light mode
Text on background18.27:1AAA
Text on card18.55:1AAA
Primary button8.81:1AAA
Secondary button7.28:1AAA
Muted text8.13:1AAA
Accent6.56:1AA
Destructive6.90:1AA
Dark mode
Text on background19.60:1AAA
Text on card19.46:1AAA
Primary button8.81:1AAA
Secondary button7.28:1AAA
Muted text9.51:1AAA
Accent6.56:1AA
Destructive5.39:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.009 126.547);
  --foreground: oklch(0.181 0.032 128.188);
  --muted: oklch(0.953 0.006 242.276);
  --muted-foreground: oklch(0.397 0.018 242.802);
  --popover: oklch(0.986 0.014 126.607);
  --popover-foreground: oklch(0.164 0.028 127.131);
  --card: oklch(0.986 0.014 126.607);
  --card-foreground: oklch(0.164 0.028 127.131);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.726 0.064 127.605);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.678 0.039 242.982);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.661 0.061 344.769);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.401 0.155 28.43);
  --destructive-foreground: oklch(0.886 0.053 19.333);
  --ring: oklch(0.726 0.064 127.605);
  --chart-1: oklch(0.726 0.064 127.605);
  --chart-2: oklch(0.678 0.039 242.982);
  --chart-3: oklch(0.661 0.061 344.769);
  --chart-4: oklch(0.703 0.036 242.885);
  --chart-5: oklch(0.732 0.072 127.767);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.011 125.768);
  --foreground: oklch(0.981 0.006 126.513);
  --muted: oklch(0.169 0.009 242.928);
  --muted-foreground: oklch(0.779 0.015 242.452);
  --popover: oklch(0.124 0.013 125.768);
  --popover-foreground: oklch(0.987 0.004 126.484);
  --card: oklch(0.124 0.013 125.768);
  --card-foreground: oklch(0.987 0.004 126.484);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.726 0.064 127.605);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.678 0.039 242.982);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.661 0.061 344.769);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.551 0.217 28.74);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.726 0.064 127.605);
  --chart-1: oklch(0.726 0.064 127.605);
  --chart-2: oklch(0.678 0.039 242.982);
  --chart-3: oklch(0.661 0.061 344.769);
  --chart-4: oklch(0.703 0.036 242.885);
  --chart-5: oklch(0.732 0.072 127.767);
}