Jacket for shadcn/ui

Jacket is a shadcn/ui theme built around a muted green primary color (#71745d) with neutral gray accents (#cfd0ce). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted green primary (#71745d) on a neutral background (#070803).

Color palette

TokenLightDark
Background
#fdfefbwhite
#070803black
Foreground
#000000black
#fdfdfcwhite
Card
#fdfefbwhite
#070803black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fdfefbwhite
#070803black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#71745ddimgray
#71745ddimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cfd0celightgrey
#171711black
Secondary foreground
#363734darkslategray
#b6baa1darkgray
Muted
#e5e7d4gainsboro
#282b18black
Muted foreground
#575a44darkolivegreen
#b8bba5darkgray
Accent
#cfd0celightgrey
#171711black
Accent foreground
#363734darkslategray
#b6baa1darkgray
Destructive
#742201maroon
#fc4903orangered
Destructive foreground
#fec1a9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#71745ddimgray
#71745ddimgray

Contrast

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

Light mode
Text on background20.70:1AAA
Text on card20.70:1AAA
Primary button4.82:1AA
Secondary button7.71:1AAA
Muted text5.67:1AA
Accent7.71:1AAA
Destructive6.80:1AA
Dark mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button4.82:1AA
Secondary button8.99:1AAA
Muted text7.39:1AAA
Accent8.99:1AAA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 113.36);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.922 0.026 113.826);
  --muted-foreground: oklch(0.459 0.035 114.712);
  --popover: oklch(0.995 0.003 113.36);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.995 0.003 113.36);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.55 0.035 114.477);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.855 0.003 113.364);
  --secondary-foreground: oklch(0.334 0.004 113.514);
  --accent: oklch(0.855 0.003 113.364);
  --accent-foreground: oklch(0.334 0.004 113.514);
  --destructive: oklch(0.378 0.122 38.375);
  --destructive-foreground: oklch(0.861 0.078 42.559);
  --ring: oklch(0.55 0.035 114.477);
  --chart-1: oklch(0.55 0.035 114.477);
  --chart-2: oklch(0.855 0.003 113.364);
  --chart-3: oklch(0.855 0.003 113.364);
  --chart-4: oklch(0.879 0.002 113.353);
  --chart-5: oklch(0.558 0.044 114.759);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.016 114.15);
  --foreground: oklch(0.994 0.002 113.353);
  --muted: oklch(0.279 0.033 115.54);
  --muted-foreground: oklch(0.783 0.031 114.037);
  --popover: oklch(0.128 0.016 114.15);
  --popover-foreground: oklch(0.994 0.002 113.353);
  --card: oklch(0.128 0.016 114.15);
  --card-foreground: oklch(0.994 0.002 113.353);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.55 0.035 114.477);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.203 0.012 114.388);
  --secondary-foreground: oklch(0.778 0.034 114.119);
  --accent: oklch(0.203 0.012 114.388);
  --accent-foreground: oklch(0.778 0.034 114.119);
  --destructive: oklch(0.66 0.224 36.263);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.55 0.035 114.477);
  --chart-1: oklch(0.55 0.035 114.477);
  --chart-2: oklch(0.203 0.012 114.388);
  --chart-3: oklch(0.203 0.012 114.388);
  --chart-4: oklch(0.24 0.016 114.51);
  --chart-5: oklch(0.558 0.044 114.759);
}