Thickness for shadcn/ui

Thickness is a shadcn/ui theme built around a muted orange primary color (#b09382) with muted blue accents (#829fb0). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the muted orange primary (#b09382) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf9f7snow
#000000black
Foreground
#0c0704black
#fcf9f8snow
Card
#fcf6f3floralwhite
#030303black
Card foreground
#080402black
#fdfcfcsnow
Popover
#fcf6f3floralwhite
#030303black
Popover foreground
#080402black
#fdfcfcsnow
Primary
#b09382rosybrown
#b09382rosybrown
Primary foreground
#000000black
#000000black
Secondary
#829fb0lightslategray
#829fb0lightslategray
Secondary foreground
#000000black
#000000black
Muted
#cedce3gainsboro
#1c2931darkslategray
Muted foreground
#50626ddimgray
#92a4afdarkgray
Accent
#829fb0lightslategray
#829fb0lightslategray
Accent foreground
#000000black
#000000black
Destructive
#6f1d01maroon
#fd4508orangered
Destructive foreground
#febba4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b09382rosybrown
#b09382rosybrown

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card19.08:1AAA
Primary button7.33:1AAA
Secondary button7.54:1AAA
Muted text4.51:1AA
Accent7.54:1AAA
Destructive6.95:1AA
Dark mode
Text on background20.04:1AAA
Text on card20.19:1AAA
Primary button7.33:1AAA
Secondary button7.54:1AAA
Muted text5.77:1AA
Accent7.54:1AAA
Destructive3.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.005 52.508);
  --foreground: oklch(0.132 0.013 59.762);
  --muted: oklch(0.885 0.018 232.879);
  --muted-foreground: oklch(0.486 0.027 233.503);
  --popover: oklch(0.977 0.008 52.471);
  --popover-foreground: oklch(0.115 0.012 60.093);
  --card: oklch(0.977 0.008 52.471);
  --card-foreground: oklch(0.115 0.012 60.093);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.685 0.044 51.771);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.687 0.042 233.585);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.687 0.042 233.585);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.362 0.121 36.748);
  --destructive-foreground: oklch(0.848 0.085 39.216);
  --ring: oklch(0.685 0.044 51.771);
  --chart-1: oklch(0.685 0.044 51.771);
  --chart-2: oklch(0.687 0.042 233.585);
  --chart-3: oklch(0.687 0.042 233.585);
  --chart-4: oklch(0.711 0.038 233.452);
  --chart-5: oklch(0.686 0.049 51.666);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.003 52.541);
  --muted: oklch(0.273 0.024 234.167);
  --muted-foreground: oklch(0.709 0.025 233.121);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.992 0.001 52.561);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 52.561);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.685 0.044 51.771);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.687 0.042 233.585);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.687 0.042 233.585);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.656 0.227 35.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.685 0.044 51.771);
  --chart-1: oklch(0.685 0.044 51.771);
  --chart-2: oklch(0.687 0.042 233.585);
  --chart-3: oklch(0.687 0.042 233.585);
  --chart-4: oklch(0.711 0.038 233.452);
  --chart-5: oklch(0.686 0.049 51.666);
}