Counterpart for shadcn/ui

Counterpart is a shadcn/ui theme built around a vivid deep orange primary color (#402203) with vivid deep blue accents (#032040). The light mode uses a neutral background (#fdfaf6). Dark mode keeps the vivid deep orange primary (#402203) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfaf6snow
#000000black
Foreground
#000000black
#fdfcfcsnow
Card
#fdfaf6snow
#000000black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fdfaf6snow
#000000black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#402203black
#402203black
Primary foreground
#f9bc7blightsalmon
#f9bc7blightsalmon
Secondary
#032040midnightblue
#032040midnightblue
Secondary foreground
#7bb8f9lightskyblue
#7bb8f9lightskyblue
Muted
#d9e0e8gainsboro
#171e26black
Muted foreground
#414549darkslategray
#b6babesilver
Accent
#032040midnightblue
#032040midnightblue
Accent foreground
#7bb8f9lightskyblue
#7bb8f9lightskyblue
Destructive
#a63907saddlebrown
#f0530aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#402203black
#402203black

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button8.64:1AAA
Secondary button7.83:1AAA
Muted text7.26:1AAA
Accent7.83:1AAA
Destructive6.50:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button8.64:1AAA
Secondary button7.83:1AAA
Muted text8.57:1AAA
Accent7.83:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 69.59);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.904 0.013 249.787);
  --muted-foreground: oklch(0.387 0.009 249.861);
  --popover: oklch(0.987 0.006 69.59);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.006 69.59);
  --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.286 0.062 62.463);
  --primary-foreground: oklch(0.838 0.109 67.293);
  --secondary: oklch(0.243 0.069 252.927);
  --secondary-foreground: oklch(0.767 0.114 251.046);
  --accent: oklch(0.243 0.069 252.927);
  --accent-foreground: oklch(0.767 0.114 251.046);
  --destructive: oklch(0.498 0.153 39.78);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.286 0.062 62.463);
  --chart-1: oklch(0.286 0.062 62.463);
  --chart-2: oklch(0.243 0.069 252.927);
  --chart-3: oklch(0.243 0.069 252.927);
  --chart-4: oklch(0.275 0.082 253.811);
  --chart-5: oklch(0.288 0.064 62.251);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 69.637);
  --muted: oklch(0.233 0.019 250.347);
  --muted-foreground: oklch(0.787 0.008 249.739);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.001 69.637);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.001 69.637);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.286 0.062 62.463);
  --primary-foreground: oklch(0.838 0.109 67.293);
  --secondary: oklch(0.243 0.069 252.927);
  --secondary-foreground: oklch(0.767 0.114 251.046);
  --accent: oklch(0.243 0.069 252.927);
  --accent-foreground: oklch(0.767 0.114 251.046);
  --destructive: oklch(0.649 0.204 39.078);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.286 0.062 62.463);
  --chart-1: oklch(0.286 0.062 62.463);
  --chart-2: oklch(0.243 0.069 252.927);
  --chart-3: oklch(0.243 0.069 252.927);
  --chart-4: oklch(0.275 0.082 253.811);
  --chart-5: oklch(0.288 0.064 62.251);
}