Ketch for shadcn/ui

Ketch is a shadcn/ui theme built around a red primary color (#ca535d) with teal accents (#53cac0). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#ca535d) on a red-tinted background (#0f0606).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0f0606black
Foreground
#090202black
#fcf8f8snow
Card
#fdf7f7snow
#130708black
Card foreground
#040101black
#fdfcfcsnow
Popover
#fefbfbsnow
#0f0606black
Popover foreground
#090202black
#fcf8f8snow
Primary
#ca535dindianred
#ca535dindianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#53cac0mediumturquoise
#53cac0mediumturquoise
Secondary foreground
#000000black
#000000black
Muted
#cbe6e4gainsboro
#193431darkslategray
Muted foreground
#4d6664dimgray
#99b2b0darkgray
Accent
#53cac0mediumturquoise
#53cac0mediumturquoise
Accent foreground
#000000black
#000000black
Destructive
#9d3801saddlebrown
#fe742atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ca535dindianred
#ca535dindianred

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card19.62:1AAA
Primary button4.26:1AA Large
Secondary button10.60:1AAA
Muted text4.70:1AA
Accent10.60:1AAA
Destructive7.00:1AAA
Dark mode
Text on background19.03:1AAA
Text on card19.34:1AAA
Primary button4.26:1AA Large
Secondary button10.60:1AAA
Muted text5.95:1AA
Accent10.60:1AAA
Destructive7.74:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 11.32);
  --foreground: oklch(0.101 0.023 13.655);
  --muted: oklch(0.905 0.028 190.559);
  --muted-foreground: oklch(0.489 0.03 189.879);
  --popover: oklch(0.99 0.003 11.32);
  --popover-foreground: oklch(0.101 0.023 13.655);
  --card: oklch(0.981 0.006 11.392);
  --card-foreground: oklch(0.08 0.018 13.655);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.6 0.151 17.881);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.77 0.107 187.62);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.77 0.107 187.62);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.479 0.146 41.368);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.6 0.151 17.881);
  --chart-1: oklch(0.6 0.151 17.881);
  --chart-2: oklch(0.77 0.107 187.62);
  --chart-3: oklch(0.77 0.107 187.62);
  --chart-4: oklch(0.784 0.102 187.948);
  --chart-5: oklch(0.6 0.159 18.364);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.019 13.114);
  --foreground: oklch(0.982 0.004 11.333);
  --muted: oklch(0.302 0.033 188.614);
  --muted-foreground: oklch(0.745 0.028 190.43);
  --popover: oklch(0.135 0.019 13.114);
  --popover-foreground: oklch(0.982 0.004 11.333);
  --card: oklch(0.147 0.022 13.872);
  --card-foreground: oklch(0.991 0.002 11.291);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.6 0.151 17.881);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.77 0.107 187.62);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.77 0.107 187.62);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.714 0.187 44.715);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.6 0.151 17.881);
  --chart-1: oklch(0.6 0.151 17.881);
  --chart-2: oklch(0.77 0.107 187.62);
  --chart-3: oklch(0.77 0.107 187.62);
  --chart-4: oklch(0.784 0.102 187.948);
  --chart-5: oklch(0.6 0.159 18.364);
}