jp-color-2 for shadcn/ui

jp-color-2 is a shadcn/ui theme built around a teal primary color (#268785) with teal accents (#268785). The light mode uses a neutral background (#f2f2f2). Dark mode keeps the teal primary (#148c6e) on a blue-tinted background (#0b1013).

Color palette

TokenLightDark
Background
#f2f2f2whitesmoke
#0b1013black
Foreground
#080808black
#f2f2f2whitesmoke
Card
#f2f2f2whitesmoke
#0c0c0cblack
Card foreground
#080808black
#f2f2f2whitesmoke
Popover
#f2f2f2whitesmoke
#1c1c1cblack
Popover foreground
#080808black
#fcfaf2floralwhite
Primary
#268785darkcyan
#148c6eteal
Primary foreground
#f2f2f2whitesmoke
#fcfaf2floralwhite
Secondary
#276849darkslategray
#3a9b42seagreen
Secondary foreground
#f2f2f2whitesmoke
#fcfaf2floralwhite
Muted
#91b493darkseagreen
#646a58dimgray
Muted foreground
#526a55dimgray
#b5caa0silver
Accent
#268785darkcyan
#148c6eteal
Accent foreground
#f2f2f2whitesmoke
#fcfaf2floralwhite
Destructive
#c73e3afirebrick
#e83015orangered
Destructive foreground
#f2f2f2whitesmoke
#fcfaf2floralwhite
Border
#c8c8c8silver
#373c38darkslategray
Input
#535953dimgray
#434343darkslategray
Ring
#535953dimgray
#373c38darkslategray

Contrast

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

Light mode
Text on background17.88:1AAA
Text on card17.88:1AAA
Primary button3.83:1AA Large
Secondary button5.93:1AA
Muted text2.57:1Fail
Accent3.83:1AA Large
Destructive4.48:1AA Large
Dark mode
Text on background17.08:1AAA
Text on card17.47:1AAA
Primary button4.01:1AA Large
Secondary button3.37:1AA Large
Muted text3.18:1AA Large
Accent4.01:1AA Large
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.961 0 180);
  --foreground: oklch(0.134 0 180);
  --muted: oklch(0.735 0.06 146.431);
  --muted-foreground: oklch(0.498 0.044 148.53);
  --popover: oklch(0.961 0 180);
  --popover-foreground: oklch(0.134 0 180);
  --card: oklch(0.961 0 180);
  --card-foreground: oklch(0.134 0 180);
  --border: oklch(0.833 0 180);
  --input: oklch(0.457 0.012 145.372);
  --primary: oklch(0.569 0.087 192.955);
  --primary-foreground: oklch(0.961 0 180);
  --secondary: oklch(0.466 0.083 159.988);
  --secondary-foreground: oklch(0.961 0 180);
  --accent: oklch(0.569 0.087 192.955);
  --accent-foreground: oklch(0.961 0 180);
  --destructive: oklch(0.562 0.174 26.142);
  --destructive-foreground: oklch(0.961 0 180);
  --ring: oklch(0.457 0.012 145.372);
  --chart-1: oklch(0.569 0.087 192.955);
  --chart-2: oklch(0.466 0.083 159.988);
  --chart-3: oklch(0.569 0.087 192.955);
  --chart-4: oklch(0.501 0.09 159.884);
  --chart-5: oklch(0.576 0.089 192.882);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.169 0.01 234.526);
  --foreground: oklch(0.961 0 180);
  --muted: oklch(0.514 0.029 122.4);
  --muted-foreground: oklch(0.812 0.062 129.344);
  --popover: oklch(0.226 0 180);
  --popover-foreground: oklch(0.984 0.011 95.161);
  --card: oklch(0.154 0 153.435);
  --card-foreground: oklch(0.961 0 180);
  --border: oklch(0.35 0.01 151.588);
  --input: oklch(0.383 0 180);
  --primary: oklch(0.571 0.109 170.074);
  --primary-foreground: oklch(0.984 0.011 95.161);
  --secondary: oklch(0.612 0.156 144.623);
  --secondary-foreground: oklch(0.984 0.011 95.161);
  --accent: oklch(0.571 0.109 170.074);
  --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.571 0.109 170.074);
  --chart-2: oklch(0.612 0.156 144.623);
  --chart-3: oklch(0.571 0.109 170.074);
  --chart-4: oklch(0.644 0.165 144.604);
  --chart-5: oklch(0.578 0.111 169.717);
}