Turkey for shadcn/ui

Turkey is a shadcn/ui theme built around a near-black primary color (#010309) with near-black accents (#030901). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the near-black primary (#010309) on a blue-tinted background (#04060b).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#04060bblack
Foreground
#050710black
#f9f9fbghostwhite
Card
#f7f8fdghostwhite
#04060bblack
Card foreground
#050710black
#f9f9fbghostwhite
Popover
#f7f8fdghostwhite
#04060bblack
Popover foreground
#050710black
#f9f9fbghostwhite
Primary
#010309black
#010309black
Primary foreground
#afbaf3lightsteelblue
#afbaf3lightsteelblue
Secondary
#090103black
#090103black
Secondary foreground
#f3afbalightpink
#f3afbalightpink
Muted
#f1efefwhitesmoke
#100e0fblack
Muted foreground
#47393bdarkslategray
#c6b8bbsilver
Accent
#030901black
#030901black
Accent foreground
#36ba1climegreen
#36ba1climegreen
Destructive
#ca0202firebrick
#fd1212red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#010309black
#010309black

Contrast

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

Light mode
Text on background18.94:1AAA
Text on card18.94:1AAA
Primary button10.95:1AAA
Secondary button11.44:1AAA
Muted text9.53:1AAA
Accent7.86:1AAA
Destructive5.96:1AA
Dark mode
Text on background19.30:1AAA
Text on card19.30:1AAA
Primary button10.95:1AAA
Secondary button11.44:1AAA
Muted text10.03:1AAA
Accent7.86:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 277.166);
  --foreground: oklch(0.129 0.022 271.568);
  --muted: oklch(0.953 0.002 5.513);
  --muted-foreground: oklch(0.359 0.02 6.879);
  --popover: oklch(0.98 0.007 277.166);
  --popover-foreground: oklch(0.129 0.022 271.568);
  --card: oklch(0.98 0.007 277.166);
  --card-foreground: oklch(0.129 0.022 271.568);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.095 0.023 267.061);
  --primary-foreground: oklch(0.802 0.081 275.638);
  --secondary: oklch(0.1 0.025 6.333);
  --secondary-foreground: oklch(0.821 0.081 7.955);
  --accent: oklch(0.126 0.029 138.247);
  --accent-foreground: oklch(0.692 0.217 141.061);
  --destructive: oklch(0.527 0.216 29.148);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.095 0.023 267.061);
  --chart-1: oklch(0.095 0.023 267.061);
  --chart-2: oklch(0.1 0.025 6.333);
  --chart-3: oklch(0.126 0.029 138.247);
  --chart-4: oklch(0.142 0.038 9.32);
  --chart-5: oklch(0.094 0.024 266.354);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.014 272.74);
  --foreground: oklch(0.983 0.002 277.236);
  --muted: oklch(0.168 0.004 6.011);
  --muted-foreground: oklch(0.796 0.016 5.974);
  --popover: oklch(0.12 0.014 272.74);
  --popover-foreground: oklch(0.983 0.002 277.236);
  --card: oklch(0.12 0.014 272.74);
  --card-foreground: oklch(0.983 0.002 277.236);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.095 0.023 267.061);
  --primary-foreground: oklch(0.802 0.081 275.638);
  --secondary: oklch(0.1 0.025 6.333);
  --secondary-foreground: oklch(0.821 0.081 7.955);
  --accent: oklch(0.126 0.029 138.247);
  --accent-foreground: oklch(0.692 0.217 141.061);
  --destructive: oklch(0.627 0.252 28.754);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.095 0.023 267.061);
  --chart-1: oklch(0.095 0.023 267.061);
  --chart-2: oklch(0.1 0.025 6.333);
  --chart-3: oklch(0.126 0.029 138.247);
  --chart-4: oklch(0.142 0.038 9.32);
  --chart-5: oklch(0.094 0.024 266.354);
}