Charlock Elk for shadcn/ui

Charlock Elk is a shadcn/ui theme built around a yellow primary color (#e2e67c) with vivid red accents (#a81015). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid teal primary (#10a8a3) on a neutral background (#020404).

Color palette

TokenLightDark
Background
#ffffffwhite
#020404black
Foreground
#000000black
#f8fcfcmintcream
Card
#fbfdf7snow
#030707black
Card foreground
#000000black
#fcfdfdwhite
Popover
#fafdf7mintcream
#030707black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#e2e67ckhaki
#10a8a3lightseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6ca171gray
#a81015firebrick
Secondary foreground
#fdecedlinen
#fdecedlinen
Muted
#f0eaealinen
#150f0fblack
Muted foreground
#675b5bdimgray
#a49899darkgray
Accent
#a81015firebrick
#a81015firebrick
Accent foreground
#fdecedlinen
#fdecedlinen
Destructive
#c54816chocolate
#e8612cchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#edeeeewhitesmoke
#1e201fblack
Input
#edeeeewhitesmoke
#1e201fblack
Ring
#10a8a3lightseagreen
#10a8a3lightseagreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.53:1AAA
Primary button1.32:1Fail
Secondary button2.64:1Fail
Muted text5.49:1AA
Accent6.69:1AA
Destructive4.86:1AA
Dark mode
Text on background19.94:1AAA
Text on card19.84:1AAA
Primary button2.93:1Fail
Secondary button6.69:1AA
Muted text6.80:1AA
Accent6.69:1AA
Destructive6.16:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.942 0.006 14.913);
  --muted-foreground: oklch(0.483 0.015 15.386);
  --popover: oklch(0.99 0.01 129.451);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.009 120.127);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.947 0.001 194.767);
  --input: oklch(0.947 0.001 194.767);
  --primary: oklch(0.899 0.129 110.249);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.658 0.09 147.047);
  --secondary-foreground: oklch(0.958 0.018 15.153);
  --accent: oklch(0.466 0.182 27.246);
  --accent-foreground: oklch(0.958 0.018 15.153);
  --destructive: oklch(0.567 0.17 38.978);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.662 0.112 190.935);
  --chart-1: oklch(0.662 0.112 190.935);
  --chart-2: oklch(0.466 0.182 27.246);
  --chart-3: oklch(0.466 0.182 27.246);
  --chart-4: oklch(0.494 0.194 27.341);
  --chart-5: oklch(0.669 0.114 190.862);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.008 193.769);
  --foreground: oklch(0.987 0.004 194.718);
  --muted: oklch(0.176 0.01 15.855);
  --muted-foreground: oklch(0.691 0.014 15.165);
  --popover: oklch(0.123 0.01 193.769);
  --popover-foreground: oklch(0.994 0.002 194.754);
  --card: oklch(0.123 0.01 193.769);
  --card-foreground: oklch(0.994 0.002 194.754);
  --border: oklch(0.24 0.003 194.576);
  --input: oklch(0.24 0.003 194.576);
  --primary: oklch(0.662 0.112 190.935);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.466 0.182 27.246);
  --secondary-foreground: oklch(0.958 0.018 15.153);
  --accent: oklch(0.466 0.182 27.246);
  --accent-foreground: oklch(0.958 0.018 15.153);
  --destructive: oklch(0.655 0.179 40.167);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.662 0.112 190.935);
  --chart-1: oklch(0.662 0.112 190.935);
  --chart-2: oklch(0.466 0.182 27.246);
  --chart-3: oklch(0.466 0.182 27.246);
  --chart-4: oklch(0.494 0.194 27.341);
  --chart-5: oklch(0.669 0.114 190.862);
}