Counterpart for shadcn/ui

Counterpart is a shadcn/ui theme built around a vivid light teal primary color (#b1f4f7) with vivid light red accents (#f7b3b1). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the vivid light teal primary (#b1f4f7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#000000black
Foreground
#051415black
#f6f9f9whitesmoke
Card
#fcfdfdwhite
#000000black
Card foreground
#051415black
#f6f9f9whitesmoke
Popover
#fcfdfdwhite
#000000black
Popover foreground
#051415black
#f6f9f9whitesmoke
Primary
#b1f4f7paleturquoise
#b1f4f7paleturquoise
Primary foreground
#010d0eblack
#010d0eblack
Secondary
#f7b3b1lightpink
#f7b3b1lightpink
Secondary foreground
#6a0e0bmaroon
#6a0e0bmaroon
Muted
#e3d9d8gainsboro
#271c1cblack
Muted foreground
#504444darkslategray
#bbb0afdarkgray
Accent
#f7b3b1lightpink
#f7b3b1lightpink
Accent foreground
#6a0e0bmaroon
#6a0e0bmaroon
Destructive
#650b0bmaroon
#eb4747tomato
Destructive foreground
#f6acaclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b1f4f7paleturquoise
#b1f4f7paleturquoise

Contrast

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

Light mode
Text on background18.45:1AAA
Text on card18.45:1AAA
Primary button16.13:1AAA
Secondary button7.15:1AAA
Muted text6.73:1AA
Accent7.15:1AAA
Destructive7.10:1AAA
Dark mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button16.13:1AAA
Secondary button7.15:1AAA
Muted text7.84:1AAA
Accent7.15:1AAA
Destructive3.80: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.994 0.002 199.583);
  --foreground: oklch(0.179 0.023 198.156);
  --muted: oklch(0.893 0.012 19.796);
  --muted-foreground: oklch(0.4 0.016 20.184);
  --popover: oklch(0.994 0.002 199.583);
  --popover-foreground: oklch(0.179 0.023 198.156);
  --card: oklch(0.994 0.002 199.583);
  --card-foreground: oklch(0.179 0.023 198.156);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.924 0.068 198.741);
  --primary-foreground: oklch(0.148 0.022 197.452);
  --secondary: oklch(0.829 0.08 21.151);
  --secondary-foreground: oklch(0.34 0.125 28.347);
  --accent: oklch(0.829 0.08 21.151);
  --accent-foreground: oklch(0.34 0.125 28.347);
  --destructive: oklch(0.327 0.122 27.374);
  --destructive-foreground: oklch(0.815 0.087 19.108);
  --ring: oklch(0.924 0.068 198.741);
  --chart-1: oklch(0.924 0.068 198.741);
  --chart-2: oklch(0.829 0.08 21.151);
  --chart-3: oklch(0.829 0.08 21.151);
  --chart-4: oklch(0.858 0.065 20.777);
  --chart-5: oklch(0.927 0.07 198.72);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.003 199.566);
  --muted: oklch(0.239 0.017 20.727);
  --muted-foreground: oklch(0.765 0.013 19.85);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.003 199.566);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.979 0.003 199.566);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.924 0.068 198.741);
  --primary-foreground: oklch(0.148 0.022 197.452);
  --secondary: oklch(0.829 0.08 21.151);
  --secondary-foreground: oklch(0.34 0.125 28.347);
  --accent: oklch(0.829 0.08 21.151);
  --accent-foreground: oklch(0.34 0.125 28.347);
  --destructive: oklch(0.633 0.2 24.932);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.924 0.068 198.741);
  --chart-1: oklch(0.924 0.068 198.741);
  --chart-2: oklch(0.829 0.08 21.151);
  --chart-3: oklch(0.829 0.08 21.151);
  --chart-4: oklch(0.858 0.065 20.777);
  --chart-5: oklch(0.927 0.07 198.72);
}