Turret for shadcn/ui

Turret is a shadcn/ui theme built around a deep teal primary color (#266460) with deep yellow accents (#646026). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#266460) on a teal-tinted background (#030c0c).

Color palette

TokenLightDark
Background
#ffffffwhite
#030c0cblack
Foreground
#000000black
#f8fbfbghostwhite
Card
#ffffffwhite
#030c0cblack
Card foreground
#000000black
#f8fbfbghostwhite
Popover
#ffffffwhite
#030c0cblack
Popover foreground
#000000black
#f8fbfbghostwhite
Primary
#266460darkslategray
#266460darkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#602664darkslateblue
#602664darkslateblue
Secondary foreground
#ebcfedgainsboro
#ebcfedgainsboro
Muted
#f2e8f3whitesmoke
#160c17black
Muted foreground
#645365dimgray
#ab9aacdarkgray
Accent
#646026darkolivegreen
#646026darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b63207firebrick
#dd3d08orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#266460darkslategray
#266460darkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.84:1AA
Secondary button7.51:1AAA
Muted text5.92:1AA
Accent6.50:1AA
Destructive6.07:1AA
Dark mode
Text on background18.98:1AAA
Text on card18.98:1AAA
Primary button6.84:1AA
Secondary button7.51:1AAA
Muted text7.20:1AAA
Accent6.50:1AA
Destructive4.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.941 0.018 323.733);
  --muted-foreground: oklch(0.465 0.036 324.028);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.462 0.063 189.147);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.378 0.119 324.95);
  --secondary-foreground: oklch(0.886 0.05 323.924);
  --accent: oklch(0.479 0.079 105.189);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.517 0.174 35.699);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.462 0.063 189.147);
  --chart-1: oklch(0.462 0.063 189.147);
  --chart-2: oklch(0.378 0.119 324.95);
  --chart-3: oklch(0.479 0.079 105.189);
  --chart-4: oklch(0.406 0.13 324.96);
  --chart-5: oklch(0.467 0.066 188.983);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.017 190.954);
  --foreground: oklch(0.987 0.003 192.356);
  --muted: oklch(0.176 0.027 324.366);
  --muted-foreground: oklch(0.707 0.033 323.872);
  --popover: oklch(0.144 0.017 190.954);
  --popover-foreground: oklch(0.987 0.003 192.356);
  --card: oklch(0.144 0.017 190.954);
  --card-foreground: oklch(0.987 0.003 192.356);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.462 0.063 189.147);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.378 0.119 324.95);
  --secondary-foreground: oklch(0.886 0.05 323.924);
  --accent: oklch(0.479 0.079 105.189);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.596 0.204 35.398);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.462 0.063 189.147);
  --chart-1: oklch(0.462 0.063 189.147);
  --chart-2: oklch(0.378 0.119 324.95);
  --chart-3: oklch(0.479 0.079 105.189);
  --chart-4: oklch(0.406 0.13 324.96);
  --chart-5: oklch(0.467 0.066 188.983);
}