Tiny Light for shadcn/ui

Tiny Light is a shadcn/ui theme built around a deep yellow primary color (#594c27) with vivid light yellow accents (#ffee99). The light mode uses a yellow-tinted background (#fffbe6). Dark mode keeps the deep yellow primary (#594c27) on a yellow-tinted background (#fffbe6).

Color palette

TokenLightDark
Background
#fffbe6oldlace
#fffbe6oldlace
Foreground
#4d4000darkolivegreen
#4d4000darkolivegreen
Card
#fff9dbcornsilk
#fff9dbcornsilk
Card foreground
#332b00black
#332b00black
Popover
#fff8d6cornsilk
#fff8d6cornsilk
Popover foreground
#1a1500black
#1a1500black
Primary
#594c27darkolivegreen
#594c27darkolivegreen
Primary foreground
#e8e0cagainsboro
#e8e0cagainsboro
Secondary
#d2c8adsilver
#d2c8adsilver
Secondary foreground
#312c1bdarkslategray
#312c1bdarkslategray
Muted
#e9e8e2gainsboro
#e9e8e2gainsboro
Muted foreground
#565343darkolivegreen
#565343darkolivegreen
Accent
#ffee99khaki
#ffee99khaki
Accent foreground
#665500saddlebrown
#665500saddlebrown
Destructive
#d50d07red
#d50d07red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#fcf5cflemonchiffon
#fcf5cflemonchiffon
Input
#fcf2c0bisque
#fcf2c0bisque
Ring
#594c27darkolivegreen
#594c27darkolivegreen

Contrast

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

Light mode
Text on background9.83:1AAA
Text on card13.34:1AAA
Primary button6.40:1AA
Secondary button8.39:1AAA
Muted text6.27:1AA
Accent6.26:1AA
Destructive5.40:1AA
Dark mode
Text on background9.83:1AAA
Text on card13.34:1AAA
Primary button6.40:1AA
Secondary button8.39:1AAA
Muted text6.27:1AA
Accent6.26:1AA
Destructive5.40:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.028 97.622);
  --foreground: oklch(0.373 0.077 96.233);
  --muted: oklch(0.929 0.007 97.359);
  --muted-foreground: oklch(0.439 0.024 97.914);
  --popover: oklch(0.976 0.045 97.815);
  --popover-foreground: oklch(0.196 0.041 99.894);
  --card: oklch(0.979 0.039 97.753);
  --card-foreground: oklch(0.288 0.059 97.376);
  --border: oklch(0.966 0.05 97.879);
  --input: oklch(0.956 0.065 98.025);
  --primary: oklch(0.421 0.057 91.41);
  --primary-foreground: oklch(0.907 0.031 91.668);
  --secondary: oklch(0.835 0.039 91.736);
  --secondary-foreground: oklch(0.293 0.029 91.773);
  --accent: oklch(0.944 0.107 98.283);
  --accent-foreground: oklch(0.453 0.093 95.581);
  --destructive: oklch(0.551 0.221 29.323);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.421 0.057 91.41);
  --chart-1: oklch(0.421 0.057 91.41);
  --chart-2: oklch(0.835 0.039 91.736);
  --chart-3: oklch(0.944 0.107 98.283);
  --chart-4: oklch(0.855 0.034 91.702);
  --chart-5: oklch(0.425 0.06 91.275);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.985 0.028 97.622);
  --foreground: oklch(0.373 0.077 96.233);
  --muted: oklch(0.929 0.007 97.359);
  --muted-foreground: oklch(0.439 0.024 97.914);
  --popover: oklch(0.976 0.045 97.815);
  --popover-foreground: oklch(0.196 0.041 99.894);
  --card: oklch(0.979 0.039 97.753);
  --card-foreground: oklch(0.288 0.059 97.376);
  --border: oklch(0.966 0.05 97.879);
  --input: oklch(0.956 0.065 98.025);
  --primary: oklch(0.421 0.057 91.41);
  --primary-foreground: oklch(0.907 0.031 91.668);
  --secondary: oklch(0.835 0.039 91.736);
  --secondary-foreground: oklch(0.293 0.029 91.773);
  --accent: oklch(0.944 0.107 98.283);
  --accent-foreground: oklch(0.453 0.093 95.581);
  --destructive: oklch(0.551 0.221 29.323);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.421 0.057 91.41);
  --chart-1: oklch(0.421 0.057 91.41);
  --chart-2: oklch(0.835 0.039 91.736);
  --chart-3: oklch(0.944 0.107 98.283);
  --chart-4: oklch(0.855 0.034 91.702);
  --chart-5: oklch(0.425 0.06 91.275);
}