Boxer for shadcn/ui

Boxer is a shadcn/ui theme built around a muted deep teal primary color (#16271f) with muted deep pink accents (#27161e). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep teal primary (#16271f) on a teal-tinted background (#050f0b).

Color palette

TokenLightDark
Background
#ffffffwhite
#050f0bblack
Foreground
#030d08black
#f9fafaghostwhite
Card
#ffffffwhite
#050f0bblack
Card foreground
#030d08black
#f9fafaghostwhite
Popover
#ffffffwhite
#050f0bblack
Popover foreground
#030d08black
#f9fafaghostwhite
Primary
#16271fblack
#16271fblack
Primary foreground
#a4cbbasilver
#a4cbbasilver
Secondary
#27161eblack
#27161eblack
Secondary foreground
#cba4b6silver
#cba4b6silver
Muted
#e5dce0gainsboro
#231a1eblack
Muted foreground
#534b4fdarkslategray
#b4acb0darkgray
Accent
#27161eblack
#27161eblack
Accent foreground
#cba4b6silver
#cba4b6silver
Destructive
#c12e01firebrick
#f43a01orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#16271fblack
#16271fblack

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button8.80:1AAA
Secondary button7.79:1AAA
Muted text6.29:1AA
Accent7.79:1AAA
Destructive5.75:1AA
Dark mode
Text on background18.59:1AAA
Text on card18.59:1AAA
Primary button8.80:1AAA
Secondary button7.79:1AAA
Muted text7.63:1AAA
Accent7.79:1AAA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.022 167.426);
  --muted: oklch(0.903 0.011 348.133);
  --muted-foreground: oklch(0.422 0.012 348.572);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.022 167.426);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.144 0.022 167.426);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.255 0.026 164.508);
  --primary-foreground: oklch(0.809 0.048 166.07);
  --secondary: oklch(0.227 0.03 351.148);
  --secondary-foreground: oklch(0.76 0.051 349.56);
  --accent: oklch(0.227 0.03 351.148);
  --accent-foreground: oklch(0.76 0.051 349.56);
  --destructive: oklch(0.531 0.189 34.375);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.255 0.026 164.508);
  --chart-1: oklch(0.255 0.026 164.508);
  --chart-2: oklch(0.227 0.03 351.148);
  --chart-3: oklch(0.227 0.03 351.148);
  --chart-4: oklch(0.257 0.036 351.375);
  --chart-5: oklch(0.257 0.029 164.142);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.018 165.906);
  --foreground: oklch(0.985 0.001 167.778);
  --muted: oklch(0.231 0.015 349.532);
  --muted-foreground: oklch(0.752 0.01 348.184);
  --popover: oklch(0.156 0.018 165.906);
  --popover-foreground: oklch(0.985 0.001 167.778);
  --card: oklch(0.156 0.018 165.906);
  --card-foreground: oklch(0.985 0.001 167.778);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.255 0.026 164.508);
  --primary-foreground: oklch(0.809 0.048 166.07);
  --secondary: oklch(0.227 0.03 351.148);
  --secondary-foreground: oklch(0.76 0.051 349.56);
  --accent: oklch(0.227 0.03 351.148);
  --accent-foreground: oklch(0.76 0.051 349.56);
  --destructive: oklch(0.631 0.227 33.956);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.255 0.026 164.508);
  --chart-1: oklch(0.255 0.026 164.508);
  --chart-2: oklch(0.227 0.03 351.148);
  --chart-3: oklch(0.227 0.03 351.148);
  --chart-4: oklch(0.257 0.036 351.375);
  --chart-5: oklch(0.257 0.029 164.142);
}