Negligible for shadcn/ui

Negligible is a shadcn/ui theme built around a deep yellow primary color (#584613) with muted light yellow accents (#cdc8bc). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep yellow primary (#584613) on a yellow-tinted background (#0f0d05).

Color palette

TokenLightDark
Background
#fefdfbsnow
#0f0d05black
Foreground
#000000black
#f9f8f6whitesmoke
Card
#fefdfbsnow
#0f0d05black
Card foreground
#000000black
#f9f8f6whitesmoke
Popover
#fefdfbsnow
#0f0d05black
Popover foreground
#000000black
#f9f8f6whitesmoke
Primary
#584613darkolivegreen
#584613darkolivegreen
Primary foreground
#eeddb0wheat
#eeddb0wheat
Secondary
#e1dfdbgainsboro
#353431darkslategray
Secondary foreground
#4a473fdarkslategray
#cecdcalightgrey
Muted
#e4e1d8gainsboro
#27241bblack
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#cdc8bcsilver
#504b3fdarkolivegreen
Accent foreground
#312e25darkslategray
#e4e2ddgainsboro
Destructive
#ad2a10firebrick
#ee6144tomato
Destructive foreground
#fef3f1seashell
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#584613darkolivegreen
#584613darkolivegreen

Contrast

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

Light mode
Text on background20.65:1AAA
Text on card20.65:1AAA
Primary button6.82:1AA
Secondary button6.96:1AA
Muted text7.90:1AAA
Accent8.13:1AAA
Destructive6.20:1AA
Dark mode
Text on background18.35:1AAA
Text on card18.35:1AAA
Primary button6.82:1AA
Secondary button7.86:1AAA
Muted text8.43:1AAA
Accent6.67:1AA
Destructive6.40:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 90.141);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.909 0.012 90.22);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(0.994 0.003 90.141);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.003 90.141);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.401 0.071 88.265);
  --primary-foreground: oklch(0.9 0.062 90.431);
  --secondary: oklch(0.904 0.005 90.167);
  --secondary-foreground: oklch(0.4 0.014 90.342);
  --accent: oklch(0.834 0.017 90.266);
  --accent-foreground: oklch(0.302 0.016 90.41);
  --destructive: oklch(0.492 0.171 32.828);
  --destructive-foreground: oklch(0.972 0.012 31.068);
  --ring: oklch(0.401 0.071 88.265);
  --chart-1: oklch(0.401 0.071 88.265);
  --chart-2: oklch(0.904 0.005 90.167);
  --chart-3: oklch(0.834 0.017 90.266);
  --chart-4: oklch(0.926 0.004 90.155);
  --chart-5: oklch(0.405 0.073 87.981);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.017 92.243);
  --foreground: oklch(0.979 0.003 90.145);
  --muted: oklch(0.261 0.016 90.427);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0.157 0.017 92.243);
  --popover-foreground: oklch(0.979 0.003 90.145);
  --card: oklch(0.157 0.017 92.243);
  --card-foreground: oklch(0.979 0.003 90.145);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.401 0.071 88.265);
  --primary-foreground: oklch(0.9 0.062 90.431);
  --secondary: oklch(0.324 0.004 90.213);
  --secondary-foreground: oklch(0.847 0.003 90.15);
  --accent: oklch(0.415 0.021 90.404);
  --accent-foreground: oklch(0.913 0.008 90.183);
  --destructive: oklch(0.667 0.18 33.123);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.401 0.071 88.265);
  --chart-1: oklch(0.401 0.071 88.265);
  --chart-2: oklch(0.324 0.004 90.213);
  --chart-3: oklch(0.415 0.021 90.404);
  --chart-4: oklch(0.354 0.005 90.216);
  --chart-5: oklch(0.405 0.073 87.981);
}