Chert Dolphin for shadcn/ui

Chert Dolphin is a shadcn/ui theme built around a violet primary color (#9d85d5) with green accents (#bdd585). The light mode uses a neutral background (#ffffff). Dark mode switches to a neutral gray primary (#848385) on a neutral background (#040208).

Color palette

TokenLightDark
Background
#ffffffwhite
#040208black
Foreground
#0a0515black
#ffffffwhite
Card
#fcfcfcsnow
#06040cblack
Card foreground
#080410black
#ffffffwhite
Popover
#ffffffwhite
#040208black
Popover foreground
#0a0515black
#ffffffwhite
Primary
#9d85d5mediumpurple
#848385gray
Primary foreground
#100a1eblack
#100a1eblack
Secondary
#bdd585darkkhaki
#cb7a00darkgoldenrod
Secondary foreground
#181e0ablack
#181e0ablack
Muted
#e1e6d6gainsboro
#242919black
Muted foreground
#5f6454dimgray
#a7ab9bdarkgray
Accent
#bdd585darkkhaki
#ab11f0darkviolet
Accent foreground
#181e0ablack
#181e0ablack
Destructive
#8d2201darkred
#fd5421orangered
Destructive foreground
#fed0c2peachpuff
#000000black
Border
#eae9eclavender
#252429darkslategray
Input
#eae9eclavender
#252429darkslategray
Ring
#9d85d5mediumpurple
#696969dimgrey

Contrast

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

Light mode
Text on background20.08:1AAA
Text on card19.84:1AAA
Primary button6.25:1AA
Secondary button10.63:1AAA
Muted text4.79:1AA
Accent10.63:1AAA
Destructive6.33:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.41:1AAA
Primary button5.14:1AA
Secondary button5.15:1AA
Muted text6.34:1AA
Accent3.31:1AA Large
Destructive6.46:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.134 0.036 297.171);
  --muted: oklch(0.916 0.022 120.44);
  --muted-foreground: oklch(0.494 0.026 120.943);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.134 0.036 297.171);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.124 0.031 298.763);
  --border: oklch(0.936 0.004 299.968);
  --input: oklch(0.936 0.004 299.968);
  --primary: oklch(0.672 0.118 296.911);
  --primary-foreground: oklch(0.167 0.041 295.443);
  --secondary: oklch(0.838 0.107 122.337);
  --secondary-foreground: oklch(0.225 0.036 123.07);
  --accent: oklch(0.838 0.107 122.337);
  --accent-foreground: oklch(0.225 0.036 123.07);
  --destructive: oklch(0.426 0.148 35.161);
  --destructive-foreground: oklch(0.895 0.056 37.592);
  --ring: oklch(0.672 0.118 296.911);
  --chart-1: oklch(0.672 0.118 296.911);
  --chart-2: oklch(0.838 0.107 122.337);
  --chart-3: oklch(0.838 0.107 122.337);
  --chart-4: oklch(0.853 0.098 122.066);
  --chart-5: oklch(0.667 0.125 296.677);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.02 300.237);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.271 0.029 121.895);
  --muted-foreground: oklch(0.734 0.024 120.589);
  --popover: oklch(0.101 0.02 300.237);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.115 0.023 300.093);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.262 0.01 299.388);
  --input: oklch(0.262 0.01 299.388);
  --primary: oklch(0.612 0.003 299.964);
  --primary-foreground: oklch(0.167 0.041 295.443);
  --secondary: oklch(0.653 0.146 65.78);
  --secondary-foreground: oklch(0.225 0.036 123.07);
  --accent: oklch(0.574 0.283 310.202);
  --accent-foreground: oklch(0.225 0.036 123.07);
  --destructive: oklch(0.672 0.213 36.133);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.52 0 180);
  --chart-1: oklch(0.672 0.118 296.911);
  --chart-2: oklch(0.838 0.107 122.337);
  --chart-3: oklch(0.838 0.107 122.337);
  --chart-4: oklch(0.853 0.098 122.066);
  --chart-5: oklch(0.667 0.125 296.677);
}