Courteous for shadcn/ui

Courteous is a shadcn/ui theme built around a deep yellow primary color (#656229) with muted light yellow accents (#e8e8e3). The light mode uses a neutral background (#fdfdf6). Dark mode keeps the deep yellow primary (#656229) on a yellow-tinted background (#0d0d07).

Color palette

TokenLightDark
Background
#fdfdf6snow
#0d0d07black
Foreground
#151504black
#fcfbf8snow
Card
#fdfdf6snow
#0d0d07black
Card foreground
#151504black
#fcfbf8snow
Popover
#fdfdf6snow
#0d0d07black
Popover foreground
#151504black
#fcfbf8snow
Primary
#656229darkolivegreen
#656229darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e8e8e3gainsboro
#22221bblack
Secondary foreground
#555444darkolivegreen
#bfbfb0silver
Muted
#edede8linen
#171612black
Muted foreground
#474738darkslategray
#c7c6b8silver
Accent
#e8e8e3gainsboro
#22221bblack
Accent foreground
#555444darkolivegreen
#bfbfb0silver
Destructive
#b7390bfirebrick
#ec490eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#656229darkolivegreen
#656229darkolivegreen

Contrast

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

Light mode
Text on background18.03:1AAA
Text on card18.03:1AAA
Primary button6.26:1AA
Secondary button6.24:1AA
Muted text8.01:1AAA
Accent6.24:1AA
Destructive5.83:1AA
Dark mode
Text on background18.80:1AAA
Text on card18.80:1AAA
Primary button6.26:1AA
Secondary button8.63:1AAA
Muted text10.49:1AAA
Accent8.63:1AAA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.009 104.121);
  --foreground: oklch(0.19 0.031 106.459);
  --muted: oklch(0.944 0.006 104.075);
  --muted-foreground: oklch(0.393 0.024 104.942);
  --popover: oklch(0.993 0.009 104.121);
  --popover-foreground: oklch(0.19 0.031 106.459);
  --card: oklch(0.993 0.009 104.121);
  --card-foreground: oklch(0.19 0.031 106.459);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.487 0.078 106.182);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.93 0.007 104.103);
  --secondary-foreground: oklch(0.442 0.025 104.897);
  --accent: oklch(0.93 0.007 104.103);
  --accent-foreground: oklch(0.442 0.025 104.897);
  --destructive: oklch(0.525 0.17 36.991);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.487 0.078 106.182);
  --chart-1: oklch(0.487 0.078 106.182);
  --chart-2: oklch(0.93 0.007 104.103);
  --chart-3: oklch(0.93 0.007 104.103);
  --chart-4: oklch(0.951 0.005 104.061);
  --chart-5: oklch(0.494 0.082 106.231);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.013 105.407);
  --foreground: oklch(0.989 0.004 104.047);
  --muted: oklch(0.201 0.008 104.651);
  --muted-foreground: oklch(0.824 0.02 104.378);
  --popover: oklch(0.158 0.013 105.407);
  --popover-foreground: oklch(0.989 0.004 104.047);
  --card: oklch(0.158 0.013 105.407);
  --card-foreground: oklch(0.989 0.004 104.047);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.487 0.078 106.182);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.248 0.012 104.745);
  --secondary-foreground: oklch(0.8 0.021 104.404);
  --accent: oklch(0.248 0.012 104.745);
  --accent-foreground: oklch(0.8 0.021 104.404);
  --destructive: oklch(0.633 0.208 36.651);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.487 0.078 106.182);
  --chart-1: oklch(0.487 0.078 106.182);
  --chart-2: oklch(0.248 0.012 104.745);
  --chart-3: oklch(0.248 0.012 104.745);
  --chart-4: oklch(0.283 0.014 104.79);
  --chart-5: oklch(0.494 0.082 106.231);
}