Tart for shadcn/ui

Tart is a shadcn/ui theme built around a muted red primary color (#b79185) with muted cyan accents (#85acb7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted red primary (#b79185) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#160804black
#fdfcfcsnow
Card
#ffffffwhite
#000000black
Card foreground
#160804black
#fdfcfcsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#160804black
#fdfcfcsnow
Primary
#b79185rosybrown
#b79185rosybrown
Primary foreground
#060404black
#060404black
Secondary
#85acb7darkgray
#85acb7darkgray
Secondary foreground
#040606black
#040606black
Muted
#e1e8ealavender
#151c1eblack
Muted foreground
#5f6667dimgray
#989ea0darkgray
Accent
#85acb7darkgray
#85acb7darkgray
Accent foreground
#040606black
#040606black
Destructive
#bc1010firebrick
#e11414crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b79185rosybrown
#b79185rosybrown

Contrast

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

Light mode
Text on background19.61:1AAA
Text on card19.61:1AAA
Primary button7.19:1AAA
Secondary button8.26:1AAA
Muted text4.72:1AA
Accent8.26:1AAA
Destructive6.53:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button7.19:1AAA
Secondary button8.26:1AAA
Muted text6.36:1AA
Accent8.26:1AAA
Destructive4.86:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.154 0.027 42.924);
  --muted: oklch(0.926 0.008 217.791);
  --muted-foreground: oklch(0.504 0.008 217.846);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.154 0.027 42.924);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.154 0.027 42.924);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.688 0.05 37.593);
  --primary-foreground: oklch(0.114 0.006 40.619);
  --secondary: oklch(0.719 0.045 218.382);
  --secondary-foreground: oklch(0.118 0.006 215.408);
  --accent: oklch(0.719 0.045 218.382);
  --accent-foreground: oklch(0.118 0.006 215.408);
  --destructive: oklch(0.504 0.199 28.414);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.688 0.05 37.593);
  --chart-1: oklch(0.688 0.05 37.593);
  --chart-2: oklch(0.719 0.045 218.382);
  --chart-3: oklch(0.719 0.045 218.382);
  --chart-4: oklch(0.741 0.042 218.277);
  --chart-5: oklch(0.688 0.056 37.598);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 37.738);
  --muted: oklch(0.22 0.011 218.169);
  --muted-foreground: oklch(0.694 0.008 217.808);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 37.738);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 37.738);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.688 0.05 37.593);
  --primary-foreground: oklch(0.114 0.006 40.619);
  --secondary: oklch(0.719 0.045 218.382);
  --secondary-foreground: oklch(0.118 0.006 215.408);
  --accent: oklch(0.719 0.045 218.382);
  --accent-foreground: oklch(0.118 0.006 215.408);
  --destructive: oklch(0.577 0.229 28.531);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.688 0.05 37.593);
  --chart-1: oklch(0.688 0.05 37.593);
  --chart-2: oklch(0.719 0.045 218.382);
  --chart-3: oklch(0.719 0.045 218.382);
  --chart-4: oklch(0.741 0.042 218.277);
  --chart-5: oklch(0.688 0.056 37.598);
}