Codling for shadcn/ui

Codling is a shadcn/ui theme built around a deep orange primary color (#443322) with deep yellow accents (#444422). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the deep orange primary (#443322) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fcfaf8snow
#040301black
Foreground
#090502black
#fbfaf9snow
Card
#faf7f5whitesmoke
#080502black
Card foreground
#040301black
#fdfcfcsnow
Popover
#faf7f5whitesmoke
#080502black
Popover foreground
#040301black
#fdfcfcsnow
Primary
#443322darkslategray
#443322darkslategray
Primary foreground
#ddccbblightgrey
#ddccbblightgrey
Secondary
#442222darkslategray
#442222darkslategray
Secondary foreground
#ddbbbbthistle
#ddbbbbthistle
Muted
#e1d0d0lightgrey
#2f1e1eblack
Muted foreground
#535050darkslategray
#afacacdarkgray
Accent
#444422darkolivegreen
#444422darkolivegreen
Accent foreground
#ddddbbwheat
#ddddbbwheat
Destructive
#771704maroon
#e42c07orangered
Destructive foreground
#fdbdb0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#443322darkslategray
#443322darkslategray

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.37:1AAA
Primary button7.69:1AAA
Secondary button7.95:1AAA
Muted text5.38:1AA
Accent7.18:1AAA
Destructive6.87:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.84:1AAA
Primary button7.69:1AAA
Secondary button7.95:1AAA
Muted text7.05:1AAA
Accent7.18:1AAA
Destructive4.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 67.786);
  --foreground: oklch(0.12 0.016 77.51);
  --muted: oklch(0.872 0.019 17.518);
  --muted-foreground: oklch(0.434 0.004 17.322);
  --popover: oklch(0.979 0.005 67.767);
  --popover-foreground: oklch(0.095 0.013 77.51);
  --card: oklch(0.979 0.005 67.767);
  --card-foreground: oklch(0.095 0.013 77.51);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.336 0.038 65.952);
  --primary-foreground: oklch(0.855 0.031 67.4);
  --secondary: oklch(0.298 0.053 20.744);
  --secondary-foreground: oklch(0.821 0.04 17.994);
  --accent: oklch(0.379 0.053 108.675);
  --accent-foreground: oklch(0.89 0.046 107.3);
  --destructive: oklch(0.372 0.133 32.907);
  --destructive-foreground: oklch(0.852 0.077 31.493);
  --ring: oklch(0.336 0.038 65.952);
  --chart-1: oklch(0.336 0.038 65.952);
  --chart-2: oklch(0.298 0.053 20.744);
  --chart-3: oklch(0.379 0.053 108.675);
  --chart-4: oklch(0.325 0.06 20.88);
  --chart-5: oklch(0.337 0.041 65.703);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.094 0.01 75.768);
  --foreground: oklch(0.985 0.002 67.799);
  --muted: oklch(0.256 0.027 19.056);
  --muted-foreground: oklch(0.746 0.004 17.241);
  --popover: oklch(0.119 0.013 75.768);
  --popover-foreground: oklch(0.993 0.001 67.81);
  --card: oklch(0.119 0.013 75.768);
  --card-foreground: oklch(0.993 0.001 67.81);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.336 0.038 65.952);
  --primary-foreground: oklch(0.855 0.031 67.4);
  --secondary: oklch(0.298 0.053 20.744);
  --secondary-foreground: oklch(0.821 0.04 17.994);
  --accent: oklch(0.379 0.053 108.675);
  --accent-foreground: oklch(0.89 0.046 107.3);
  --destructive: oklch(0.593 0.221 32.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.336 0.038 65.952);
  --chart-1: oklch(0.336 0.038 65.952);
  --chart-2: oklch(0.298 0.053 20.744);
  --chart-3: oklch(0.379 0.053 108.675);
  --chart-4: oklch(0.325 0.06 20.88);
  --chart-5: oklch(0.337 0.041 65.703);
}