Codling for shadcn/ui

Codling is a shadcn/ui theme built around a vivid deep teal primary color (#022121) with vivid deep blue accents (#021221). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep teal primary (#022121) on a neutral background (#020808).

Color palette

TokenLightDark
Background
#ffffffwhite
#020808black
Foreground
#020e0dblack
#fcfdfdwhite
Card
#fcfcfcsnow
#030c0cblack
Card foreground
#010909black
#ffffffwhite
Popover
#fcfcfcsnow
#030c0cblack
Popover foreground
#010909black
#ffffffwhite
Primary
#022121black
#022121black
Primary foreground
#11dfdbdarkturquoise
#11dfdbdarkturquoise
Secondary
#022111black
#022111black
Secondary foreground
#11df74springgreen
#11df74springgreen
Muted
#d7e0dbgainsboro
#1f2824darkslategray
Muted foreground
#597366dimgray
#8ca699darkseagreen
Accent
#021221black
#021221black
Accent foreground
#62adf3cornflowerblue
#62adf3cornflowerblue
Destructive
#5c230amaroon
#e96b35tomato
Destructive foreground
#f5bca3lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#022121black
#022121black

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.67:1AAA
Primary button10.12:1AAA
Secondary button9.60:1AAA
Muted text3.81:1AA Large
Accent7.88:1AAA
Destructive7.44:1AAA
Dark mode
Text on background19.79:1AAA
Text on card19.77:1AAA
Primary button10.12:1AAA
Secondary button9.60:1AAA
Muted text5.78:1AA
Accent7.88:1AAA
Destructive6.60:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.149 0.021 193.938);
  --muted: oklch(0.898 0.011 163.968);
  --muted-foreground: oklch(0.531 0.038 162.303);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.129 0.018 194.12);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.129 0.018 194.12);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.226 0.036 193.331);
  --primary-foreground: oklch(0.818 0.139 192.787);
  --secondary: oklch(0.22 0.048 157.144);
  --secondary-foreground: oklch(0.792 0.206 151.967);
  --accent: oklch(0.178 0.039 246.396);
  --accent-foreground: oklch(0.729 0.127 248.476);
  --destructive: oklch(0.336 0.091 41.258);
  --destructive-foreground: oklch(0.84 0.074 44.287);
  --ring: oklch(0.226 0.036 193.331);
  --chart-1: oklch(0.226 0.036 193.331);
  --chart-2: oklch(0.22 0.048 157.144);
  --chart-3: oklch(0.178 0.039 246.396);
  --chart-4: oklch(0.271 0.063 155.374);
  --chart-5: oklch(0.228 0.037 193.285);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.014 194.503);
  --foreground: oklch(0.993 0.001 195.957);
  --muted: oklch(0.267 0.015 162.792);
  --muted-foreground: oklch(0.702 0.036 162.909);
  --popover: oklch(0.144 0.016 194.396);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.144 0.016 194.396);
  --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.226 0.036 193.331);
  --primary-foreground: oklch(0.818 0.139 192.787);
  --secondary: oklch(0.22 0.048 157.144);
  --secondary-foreground: oklch(0.792 0.206 151.967);
  --accent: oklch(0.178 0.039 246.396);
  --accent-foreground: oklch(0.729 0.127 248.476);
  --destructive: oklch(0.671 0.17 41.939);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.226 0.036 193.331);
  --chart-1: oklch(0.226 0.036 193.331);
  --chart-2: oklch(0.22 0.048 157.144);
  --chart-3: oklch(0.178 0.039 246.396);
  --chart-4: oklch(0.271 0.063 155.374);
  --chart-5: oklch(0.228 0.037 193.285);
}