Thin for shadcn/ui

Thin is a shadcn/ui theme built around a muted deep green primary color (#162317) with muted light green accents (#b6d3ba). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#162317) on a green-tinted background (#041006).

Color palette

TokenLightDark
Background
#ffffffwhite
#041006black
Foreground
#000000black
#f5f9f6whitesmoke
Card
#ffffffwhite
#041006black
Card foreground
#000000black
#f5f9f6whitesmoke
Popover
#ffffffwhite
#041006black
Popover foreground
#000000black
#f5f9f6whitesmoke
Primary
#162317black
#162317black
Primary foreground
#a4c6a9darkgray
#a4c6a9darkgray
Secondary
#d5e1d7gainsboro
#232f24darkslategray
Secondary foreground
#374e3adarkslategray
#b9cbbbsilver
Muted
#e1efe3gainsboro
#101e12black
Muted foreground
#414e43darkslategray
#b1beb3silver
Accent
#b6d3basilver
#2c442fdarkslategray
Accent foreground
#213623darkslategray
#c7dbcalightgrey
Destructive
#b4400efirebrick
#f06c33tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#162317black
#162317black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.76:1AAA
Secondary button6.75:1AA
Muted text7.38:1AAA
Accent8.04:1AAA
Destructive5.71:1AA
Dark mode
Text on background18.25:1AAA
Text on card18.25:1AAA
Primary button8.76:1AAA
Secondary button8.20:1AAA
Muted text8.93:1AAA
Accent7.30:1AAA
Destructive6.87:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.939 0.023 149.377);
  --muted-foreground: oklch(0.408 0.025 148.908);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.238 0.028 148.108);
  --primary-foreground: oklch(0.794 0.055 148.785);
  --secondary: oklch(0.899 0.019 149.416);
  --secondary-foreground: oklch(0.397 0.043 148.24);
  --accent: oklch(0.838 0.047 148.965);
  --accent-foreground: oklch(0.309 0.043 147.751);
  --destructive: oklch(0.529 0.161 39.388);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.238 0.028 148.108);
  --chart-1: oklch(0.238 0.028 148.108);
  --chart-2: oklch(0.899 0.019 149.416);
  --chart-3: oklch(0.838 0.047 148.965);
  --chart-4: oklch(0.921 0.015 149.48);
  --chart-5: oklch(0.24 0.031 147.907);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.03 148.041);
  --foreground: oklch(0.979 0.006 149.609);
  --muted: oklch(0.218 0.032 147.655);
  --muted-foreground: oklch(0.788 0.021 149.349);
  --popover: oklch(0.157 0.03 148.041);
  --popover-foreground: oklch(0.979 0.006 149.609);
  --card: oklch(0.157 0.03 148.041);
  --card-foreground: oklch(0.979 0.006 149.609);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.238 0.028 148.108);
  --primary-foreground: oklch(0.794 0.055 148.785);
  --secondary: oklch(0.29 0.025 148.533);
  --secondary-foreground: oklch(0.824 0.03 149.229);
  --accent: oklch(0.36 0.046 147.96);
  --accent-foreground: oklch(0.872 0.031 149.239);
  --destructive: oklch(0.683 0.177 41.712);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.238 0.028 148.108);
  --chart-1: oklch(0.238 0.028 148.108);
  --chart-2: oklch(0.29 0.025 148.533);
  --chart-3: oklch(0.36 0.046 147.96);
  --chart-4: oklch(0.322 0.029 148.485);
  --chart-5: oklch(0.24 0.031 147.907);
}