Tart for shadcn/ui

Tart is a shadcn/ui theme built around a vivid light cyan primary color (#c8fafe) with vivid light blue accents (#c8defe). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid light cyan primary (#c8fafe) on a cyan-tinted background (#040b0b).

Color palette

TokenLightDark
Background
#fbfdfewhite
#040b0bblack
Foreground
#020708black
#f4fafamintcream
Card
#f8fcfcmintcream
#050e0fblack
Card foreground
#010404black
#f8fcfcmintcream
Popover
#f8fcfcmintcream
#050e0fblack
Popover foreground
#010404black
#f8fcfcmintcream
Primary
#c8fafelightcyan
#c8fafelightcyan
Primary foreground
#012a2dblack
#012a2dblack
Secondary
#c8fee7paleturquoise
#c8fee7paleturquoise
Secondary foreground
#012d1bblack
#012d1bblack
Muted
#dde9e4gainsboro
#16221dblack
Muted foreground
#486156darkslategray
#9eb7addarkgray
Accent
#c8defelavender
#c8defelavender
Accent foreground
#023e92midnightblue
#023e92midnightblue
Destructive
#e63200orangered
#ff3700orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c8fafelightcyan
#c8fafelightcyan

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.86:1AAA
Primary button13.50:1AAA
Secondary button13.50:1AAA
Muted text5.38:1AA
Accent7.29:1AAA
Destructive4.37:1AA Large
Dark mode
Text on background18.83:1AAA
Text on card18.84:1AAA
Primary button13.50:1AAA
Secondary button13.50:1AAA
Muted text7.69:1AAA
Accent7.29:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 203.562);
  --foreground: oklch(0.123 0.012 201.211);
  --muted: oklch(0.923 0.013 169.252);
  --muted-foreground: oklch(0.468 0.035 167.363);
  --popover: oklch(0.987 0.004 203.542);
  --popover-foreground: oklch(0.098 0.01 201.211);
  --card: oklch(0.987 0.004 203.542);
  --card-foreground: oklch(0.098 0.01 201.211);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.951 0.051 203.195);
  --primary-foreground: oklch(0.258 0.043 204.065);
  --secondary: oklch(0.954 0.063 167.644);
  --secondary-foreground: oklch(0.263 0.059 160.097);
  --accent: oklch(0.895 0.05 256.798);
  --accent-foreground: oklch(0.387 0.149 259.261);
  --destructive: oklch(0.6 0.22 33.345);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.951 0.051 203.195);
  --chart-1: oklch(0.951 0.051 203.195);
  --chart-2: oklch(0.954 0.063 167.644);
  --chart-3: oklch(0.895 0.05 256.798);
  --chart-4: oklch(0.966 0.046 168.241);
  --chart-5: oklch(0.952 0.052 203.189);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.013 201.681);
  --foreground: oklch(0.981 0.006 203.525);
  --muted: oklch(0.238 0.018 167.278);
  --muted-foreground: oklch(0.759 0.031 168.444);
  --popover: oklch(0.156 0.015 202.461);
  --popover-foreground: oklch(0.987 0.004 203.544);
  --card: oklch(0.156 0.015 202.461);
  --card-foreground: oklch(0.987 0.004 203.544);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.951 0.051 203.195);
  --primary-foreground: oklch(0.258 0.043 204.065);
  --secondary: oklch(0.954 0.063 167.644);
  --secondary-foreground: oklch(0.263 0.059 160.097);
  --accent: oklch(0.895 0.05 256.798);
  --accent-foreground: oklch(0.387 0.149 259.261);
  --destructive: oklch(0.649 0.238 33.182);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.951 0.051 203.195);
  --chart-1: oklch(0.951 0.051 203.195);
  --chart-2: oklch(0.954 0.063 167.644);
  --chart-3: oklch(0.895 0.05 256.798);
  --chart-4: oklch(0.966 0.046 168.241);
  --chart-5: oklch(0.952 0.052 203.189);
}