Thin for shadcn/ui

Thin is a shadcn/ui theme built around a green primary color (#4eca8a) with muted light green accents (#c0cec7). The light mode uses a neutral background (#f6fdfa). Dark mode keeps the green primary (#4eca8a) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#f6fdfamintcream
#030705black
Foreground
#000000black
#f4faf7whitesmoke
Card
#f6fdfamintcream
#030705black
Card foreground
#000000black
#f4faf7whitesmoke
Popover
#f6fdfamintcream
#030705black
Popover foreground
#000000black
#f4faf7whitesmoke
Primary
#4eca8amediumseagreen
#4eca8amediumseagreen
Primary foreground
#123b26darkslategray
#123b26darkslategray
Secondary
#d4d9d6lightgrey
#232f29darkslategray
Secondary foreground
#3a413ddarkslategray
#b9cac2silver
Muted
#f0f5f2whitesmoke
#0a0f0dblack
Muted foreground
#596961dimgray
#96a69edarkgray
Accent
#c0cec7silver
#2c4438darkslategray
Accent foreground
#28342edarkslategray
#c7dbd1lightgrey
Destructive
#5d1409maroon
#ed5740tomato
Destructive foreground
#f6ada2lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4eca8amediumseagreen
#4eca8amediumseagreen

Contrast

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

Light mode
Text on background20.40:1AAA
Text on card20.40:1AAA
Primary button6.05:1AA
Secondary button7.31:1AAA
Muted text5.24:1AA
Accent7.95:1AAA
Destructive7.26:1AAA
Dark mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button6.05:1AA
Secondary button8.18:1AAA
Muted text7.58:1AAA
Accent7.28:1AAA
Destructive6.03:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 164.059);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.965 0.006 164.131);
  --muted-foreground: oklch(0.504 0.023 163.075);
  --popover: oklch(0.989 0.009 164.059);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.009 164.059);
  --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.754 0.145 157.393);
  --primary-foreground: oklch(0.316 0.06 157.501);
  --secondary: oklch(0.88 0.006 164.101);
  --secondary-foreground: oklch(0.367 0.012 163.44);
  --accent: oklch(0.839 0.019 163.693);
  --accent-foreground: oklch(0.311 0.019 162.559);
  --destructive: oklch(0.318 0.107 31.683);
  --destructive-foreground: oklch(0.814 0.088 28.871);
  --ring: oklch(0.754 0.145 157.393);
  --chart-1: oklch(0.754 0.145 157.393);
  --chart-2: oklch(0.88 0.006 164.101);
  --chart-3: oklch(0.839 0.019 163.693);
  --chart-4: oklch(0.903 0.005 164.14);
  --chart-5: oklch(0.761 0.151 157.028);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.013 164.372);
  --foreground: oklch(0.981 0.007 164.089);
  --muted: oklch(0.163 0.009 162.8);
  --muted-foreground: oklch(0.71 0.021 163.506);
  --popover: oklch(0.122 0.013 164.372);
  --popover-foreground: oklch(0.981 0.007 164.089);
  --card: oklch(0.122 0.013 164.372);
  --card-foreground: oklch(0.981 0.007 164.089);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.754 0.145 157.393);
  --primary-foreground: oklch(0.316 0.06 157.501);
  --secondary: oklch(0.29 0.019 162.478);
  --secondary-foreground: oklch(0.825 0.022 163.572);
  --accent: oklch(0.363 0.036 161.369);
  --accent-foreground: oklch(0.873 0.025 163.538);
  --destructive: oklch(0.653 0.19 31.332);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.754 0.145 157.393);
  --chart-1: oklch(0.754 0.145 157.393);
  --chart-2: oklch(0.29 0.019 162.478);
  --chart-3: oklch(0.363 0.036 161.369);
  --chart-4: oklch(0.323 0.022 162.402);
  --chart-5: oklch(0.761 0.151 157.028);
}