Carp for shadcn/ui

Carp is a shadcn/ui theme built around a deep yellow primary color (#2e2b15) with muted light yellow accents (#dddcd5). The light mode uses a neutral background (#fefefb). Dark mode keeps the deep yellow primary (#2e2b15) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fefefbwhite
#040401black
Foreground
#171503black
#fafaf5whitesmoke
Card
#fefefbwhite
#040401black
Card foreground
#171503black
#fafaf5whitesmoke
Popover
#fefefbwhite
#040401black
Popover foreground
#171503black
#fafaf5whitesmoke
Primary
#2e2b15black
#2e2b15black
Primary foreground
#b5ac5adarkkhaki
#b5ac5adarkkhaki
Secondary
#e9e9e7linen
#23221bblack
Secondary foreground
#54534adarkolivegreen
#c1bfaesilver
Muted
#ecece9linen
#161613black
Muted foreground
#5b5948darkolivegreen
#b7b5a4darkgray
Accent
#dddcd5gainsboro
#413f2adarkslategray
Accent foreground
#474539darkslategray
#d9d7c4lightgrey
Destructive
#af1b0dfirebrick
#ef3a2acrimson
Destructive foreground
#fef2f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2e2b15black
#2e2b15black

Contrast

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

Light mode
Text on background18.14:1AAA
Text on card18.14:1AAA
Primary button6.11:1AA
Secondary button6.37:1AA
Muted text5.97:1AA
Accent7.01:1AAA
Destructive6.40:1AA
Dark mode
Text on background19.64:1AAA
Text on card19.64:1AAA
Primary button6.11:1AA
Secondary button8.63:1AAA
Muted text8.78:1AAA
Accent7.34:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 101.355);
  --foreground: oklch(0.192 0.034 103.803);
  --muted: oklch(0.942 0.004 101.353);
  --muted-foreground: oklch(0.462 0.028 102.156);
  --popover: oklch(0.996 0.004 101.355);
  --popover-foreground: oklch(0.192 0.034 103.803);
  --card: oklch(0.996 0.004 101.355);
  --card-foreground: oklch(0.192 0.034 103.803);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.286 0.037 102.885);
  --primary-foreground: oklch(0.733 0.105 102.954);
  --secondary: oklch(0.934 0.003 101.344);
  --secondary-foreground: oklch(0.44 0.014 101.763);
  --accent: oklch(0.893 0.01 101.468);
  --accent-foreground: oklch(0.389 0.021 102.07);
  --destructive: oklch(0.486 0.184 30.084);
  --destructive-foreground: oklch(0.97 0.013 23.716);
  --ring: oklch(0.286 0.037 102.885);
  --chart-1: oklch(0.286 0.037 102.885);
  --chart-2: oklch(0.934 0.003 101.344);
  --chart-3: oklch(0.893 0.01 101.468);
  --chart-4: oklch(0.956 0.002 101.324);
  --chart-5: oklch(0.289 0.04 102.927);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.012 104.171);
  --foreground: oklch(0.983 0.007 101.396);
  --muted: oklch(0.198 0.006 101.733);
  --muted-foreground: oklch(0.771 0.025 101.774);
  --popover: oklch(0.101 0.012 104.171);
  --popover-foreground: oklch(0.983 0.007 101.396);
  --card: oklch(0.101 0.012 104.171);
  --card-foreground: oklch(0.983 0.007 101.396);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.286 0.037 102.885);
  --primary-foreground: oklch(0.733 0.105 102.954);
  --secondary: oklch(0.249 0.013 102.063);
  --secondary-foreground: oklch(0.802 0.023 101.729);
  --accent: oklch(0.364 0.034 102.567);
  --accent-foreground: oklch(0.876 0.026 101.741);
  --destructive: oklch(0.625 0.219 29.751);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.286 0.037 102.885);
  --chart-1: oklch(0.286 0.037 102.885);
  --chart-2: oklch(0.249 0.013 102.063);
  --chart-3: oklch(0.364 0.034 102.567);
  --chart-4: oklch(0.284 0.016 102.105);
  --chart-5: oklch(0.289 0.04 102.927);
}