Corps for shadcn/ui

Corps is a shadcn/ui theme built around a vivid purple primary color (#ee17e6) with vivid teal accents (#17e6ee). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid purple primary (#ee17e6) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fefbfewhite
#040104black
Foreground
#000000black
#ffffffwhite
Card
#fefbfewhite
#040104black
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfewhite
#040104black
Popover foreground
#000000black
#ffffffwhite
Primary
#ee17e6magenta
#ee17e6magenta
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e6ee17yellow
#e6ee17yellow
Secondary foreground
#333404darkgreen
#333404darkgreen
Muted
#dedfd8gainsboro
#272720darkslategray
Muted foreground
#5d5e50dimgray
#afafa1darkgray
Accent
#17e6eeaqua
#17e6eeaqua
Accent foreground
#043334darkslategray
#043334darkslategray
Destructive
#7e1601maroon
#fd4521orangered
Destructive foreground
#fec0b3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ee17e6magenta
#ee17e6magenta

Contrast

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

Light mode
Text on background20.45:1AAA
Text on card20.45:1AAA
Primary button3.56:1AA Large
Secondary button10.13:1AAA
Muted text4.90:1AA
Accent8.91:1AAA
Destructive6.68:1AA
Dark mode
Text on background20.74:1AAA
Text on card20.74:1AAA
Primary button3.56:1AA Large
Secondary button10.13:1AAA
Muted text6.78:1AA
Accent8.91:1AAA
Destructive3.46:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 326.576);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.9 0.009 108.116);
  --muted-foreground: oklch(0.476 0.022 108.755);
  --popover: oklch(0.991 0.004 326.576);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.004 326.576);
  --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.665 0.295 329.989);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.912 0.199 111.971);
  --secondary-foreground: oklch(0.314 0.066 111.609);
  --accent: oklch(0.842 0.141 198.887);
  --accent-foreground: oklch(0.291 0.047 198.467);
  --destructive: oklch(0.386 0.141 32.852);
  --destructive-foreground: oklch(0.86 0.075 31.468);
  --ring: oklch(0.665 0.295 329.989);
  --chart-1: oklch(0.665 0.295 329.989);
  --chart-2: oklch(0.912 0.199 111.971);
  --chart-3: oklch(0.842 0.141 198.887);
  --chart-4: oklch(0.916 0.196 111.812);
  --chart-5: oklch(0.672 0.3 330.031);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.016 327.773);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.27 0.012 108.709);
  --muted-foreground: oklch(0.75 0.019 108.41);
  --popover: oklch(0.087 0.016 327.773);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.087 0.016 327.773);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.665 0.295 329.989);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.912 0.199 111.971);
  --secondary-foreground: oklch(0.314 0.066 111.609);
  --accent: oklch(0.842 0.141 198.887);
  --accent-foreground: oklch(0.291 0.047 198.467);
  --destructive: oklch(0.658 0.224 32.933);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.665 0.295 329.989);
  --chart-1: oklch(0.665 0.295 329.989);
  --chart-2: oklch(0.912 0.199 111.971);
  --chart-3: oklch(0.842 0.141 198.887);
  --chart-4: oklch(0.916 0.196 111.812);
  --chart-5: oklch(0.672 0.3 330.031);
}