Tattered for shadcn/ui

Tattered is a shadcn/ui theme built around a muted cyan primary color (#839395) with neutral gray accents (#d7dadb). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted cyan primary (#839395) on a neutral background (#020304).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#020304black
Foreground
#020c0eblack
#f6f8f8whitesmoke
Card
#fcfdfdwhite
#020304black
Card foreground
#020c0eblack
#f6f8f8whitesmoke
Popover
#fcfdfdwhite
#020304black
Popover foreground
#020c0eblack
#f6f8f8whitesmoke
Primary
#839395lightslategray
#839395lightslategray
Primary foreground
#000000black
#000000black
Secondary
#d7dadbgainsboro
#172021black
Secondary foreground
#3d4243darkslategray
#a7bfc3silver
Muted
#e6eaealavender
#151919black
Muted foreground
#3c4244darkslategray
#bbc2c3silver
Accent
#d7dadbgainsboro
#172021black
Accent foreground
#3d4243darkslategray
#a7bfc3silver
Destructive
#b52303firebrick
#e72d04orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#839395lightslategray
#839395lightslategray

Contrast

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

Light mode
Text on background19.40:1AAA
Text on card19.40:1AAA
Primary button6.55:1AA
Secondary button7.25:1AAA
Muted text8.40:1AAA
Accent7.25:1AAA
Destructive6.54:1AA
Dark mode
Text on background19.35:1AAA
Text on card19.35:1AAA
Primary button6.55:1AA
Secondary button8.62:1AAA
Muted text9.83:1AAA
Accent8.62:1AAA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 209.464);
  --foreground: oklch(0.143 0.02 206.569);
  --muted: oklch(0.933 0.004 209.456);
  --muted-foreground: oklch(0.375 0.009 209.43);
  --popover: oklch(0.993 0.002 209.464);
  --popover-foreground: oklch(0.143 0.02 206.569);
  --card: oklch(0.993 0.002 209.464);
  --card-foreground: oklch(0.143 0.02 206.569);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.651 0.018 209.43);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.886 0.004 209.457);
  --secondary-foreground: oklch(0.374 0.007 209.431);
  --accent: oklch(0.886 0.004 209.457);
  --accent-foreground: oklch(0.374 0.007 209.431);
  --destructive: oklch(0.501 0.184 32.712);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.651 0.018 209.43);
  --chart-1: oklch(0.651 0.018 209.43);
  --chart-2: oklch(0.886 0.004 209.457);
  --chart-3: oklch(0.886 0.004 209.457);
  --chart-4: oklch(0.909 0.003 209.46);
  --chart-5: oklch(0.655 0.025 209.441);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.007 206.889);
  --foreground: oklch(0.978 0.002 209.462);
  --muted: oklch(0.208 0.006 209.43);
  --muted-foreground: oklch(0.809 0.007 209.446);
  --popover: oklch(0.095 0.007 206.889);
  --popover-foreground: oklch(0.978 0.002 209.462);
  --card: oklch(0.095 0.007 206.889);
  --card-foreground: oklch(0.978 0.002 209.462);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.651 0.018 209.43);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.234 0.013 209.504);
  --secondary-foreground: oklch(0.788 0.027 209.434);
  --accent: oklch(0.234 0.013 209.504);
  --accent-foreground: oklch(0.788 0.027 209.434);
  --destructive: oklch(0.6 0.223 32.377);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.651 0.018 209.43);
  --chart-1: oklch(0.651 0.018 209.43);
  --chart-2: oklch(0.234 0.013 209.504);
  --chart-3: oklch(0.234 0.013 209.504);
  --chart-4: oklch(0.269 0.016 209.525);
  --chart-5: oklch(0.655 0.025 209.441);
}