jp-color for shadcn/ui

jp-color is a shadcn/ui theme built around a vivid blue primary color (#005caf) with vivid blue accents (#005caf). The light mode uses a yellow-tinted background (#fcfaf2). Dark mode keeps the vivid blue primary (#005caf) on a neutral background (#1c1c1c).

Color palette

TokenLightDark
Background
#fcfaf2floralwhite
#1c1c1cblack
Foreground
#080808black
#fcfaf2floralwhite
Card
#fffffbwhite
#080808black
Card foreground
#080808black
#fcfaf2floralwhite
Popover
#fcfaf2floralwhite
#080808black
Popover foreground
#080808black
#fcfaf2floralwhite
Primary
#005cafdarkcyan
#005cafdarkcyan
Primary foreground
#fcfaf2floralwhite
#fcfaf2floralwhite
Secondary
#5dac81cadetblue
#5b622edarkolivegreen
Secondary foreground
#fcfaf2floralwhite
#fcfaf2floralwhite
Muted
#b5caa0silver
#646a58dimgray
Muted foreground
#4d5139darkolivegreen
#b5caa0silver
Accent
#005cafdarkcyan
#005cafdarkcyan
Accent foreground
#fcfaf2floralwhite
#fcfaf2floralwhite
Destructive
#e83015orangered
#e83015orangered
Destructive foreground
#ffffffwhite
#fcfaf2floralwhite
Border
#bdc0basilver
#373c38darkslategray
Input
#bdc0basilver
#434343darkslategray
Ring
#bdc0basilver
#373c38darkslategray

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card19.97:1AAA
Primary button6.38:1AA
Secondary button2.61:1Fail
Muted text4.67:1AA
Accent6.38:1AA
Destructive4.31:1AA Large
Dark mode
Text on background16.30:1AAA
Text on card19.16:1AAA
Primary button6.38:1AA
Secondary button6.21:1AA
Muted text3.18:1AA Large
Accent6.38:1AA
Destructive4.13:1AA Large

CSS variables

Paste this into your globals.css to use jp-color in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.011 95.161);
  --foreground: oklch(0.134 0 180);
  --muted: oklch(0.812 0.062 129.344);
  --muted-foreground: oklch(0.424 0.038 115.741);
  --popover: oklch(0.984 0.011 95.161);
  --popover-foreground: oklch(0.134 0 180);
  --card: oklch(0.999 0.005 106.494);
  --card-foreground: oklch(0.134 0 180);
  --border: oklch(0.804 0.009 128.585);
  --input: oklch(0.804 0.009 128.585);
  --primary: oklch(0.478 0.151 253.854);
  --primary-foreground: oklch(0.984 0.011 95.161);
  --secondary: oklch(0.682 0.102 158.313);
  --secondary-foreground: oklch(0.984 0.011 95.161);
  --accent: oklch(0.478 0.151 253.854);
  --accent-foreground: oklch(0.984 0.011 95.161);
  --destructive: oklch(0.604 0.221 31.331);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.804 0.009 128.585);
  --chart-1: oklch(0.478 0.151 253.854);
  --chart-2: oklch(0.682 0.102 158.313);
  --chart-3: oklch(0.478 0.151 253.854);
  --chart-4: oklch(0.701 0.096 158.808);
  --chart-5: oklch(0.48 0.155 254.151);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.226 0 180);
  --foreground: oklch(0.984 0.011 95.161);
  --muted: oklch(0.514 0.029 122.4);
  --muted-foreground: oklch(0.812 0.062 129.344);
  --popover: oklch(0.134 0 180);
  --popover-foreground: oklch(0.984 0.011 95.161);
  --card: oklch(0.134 0 180);
  --card-foreground: oklch(0.984 0.011 95.161);
  --border: oklch(0.35 0.01 151.588);
  --input: oklch(0.383 0 180);
  --primary: oklch(0.478 0.151 253.854);
  --primary-foreground: oklch(0.984 0.011 95.161);
  --secondary: oklch(0.478 0.075 115.63);
  --secondary-foreground: oklch(0.984 0.011 95.161);
  --accent: oklch(0.478 0.151 253.854);
  --accent-foreground: oklch(0.984 0.011 95.161);
  --destructive: oklch(0.604 0.221 31.331);
  --destructive-foreground: oklch(0.984 0.011 95.161);
  --ring: oklch(0.35 0.01 151.588);
  --chart-1: oklch(0.478 0.151 253.854);
  --chart-2: oklch(0.478 0.075 115.63);
  --chart-3: oklch(0.478 0.151 253.854);
  --chart-4: oklch(0.513 0.081 115.667);
  --chart-5: oklch(0.48 0.155 254.151);
}