Tricky for shadcn/ui

Tricky is a shadcn/ui theme built around a yellow primary color (#b9b222) with green accents (#75b922). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the yellow primary (#b9b222) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfcf8snow
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fcfcf8snow
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcf8snow
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#b9b222goldenrod
#b9b222goldenrod
Primary foreground
#0d0c02black
#0d0c02black
Secondary
#b96622chocolate
#b96622chocolate
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#edeae8linen
#171412black
Muted foreground
#574b42darkolivegreen
#bdb1a8darkgray
Accent
#75b922olivedrab
#75b922olivedrab
Accent foreground
#080d02black
#080d02black
Destructive
#690c07maroon
#f2443atomato
Destructive foreground
#f9ada9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b9b222goldenrod
#b9b222goldenrod

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.35:1AAA
Primary button8.81:1AAA
Secondary button4.20:1AA Large
Muted text7.05:1AAA
Accent8.18:1AAA
Destructive6.97:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.81:1AAA
Secondary button4.20:1AA Large
Muted text8.74:1AAA
Accent8.18:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 104.051);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.94 0.004 62.135);
  --muted-foreground: oklch(0.423 0.022 61.458);
  --popover: oklch(0.989 0.005 104.051);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.005 104.051);
  --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.746 0.151 106.279);
  --primary-foreground: oklch(0.153 0.024 106.855);
  --secondary: oklch(0.595 0.132 54.893);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.714 0.186 131.882);
  --accent-foreground: oklch(0.149 0.027 125.758);
  --destructive: oklch(0.336 0.127 29.247);
  --destructive-foreground: oklch(0.819 0.091 22.59);
  --ring: oklch(0.746 0.151 106.279);
  --chart-1: oklch(0.746 0.151 106.279);
  --chart-2: oklch(0.595 0.132 54.893);
  --chart-3: oklch(0.714 0.186 131.882);
  --chart-4: oklch(0.625 0.139 54.793);
  --chart-5: oklch(0.755 0.154 106.249);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.194 0.006 61.763);
  --muted-foreground: oklch(0.769 0.019 61.859);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.746 0.151 106.279);
  --primary-foreground: oklch(0.153 0.024 106.855);
  --secondary: oklch(0.595 0.132 54.893);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.714 0.186 131.882);
  --accent-foreground: oklch(0.149 0.027 125.758);
  --destructive: oklch(0.641 0.213 27.875);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.746 0.151 106.279);
  --chart-1: oklch(0.746 0.151 106.279);
  --chart-2: oklch(0.595 0.132 54.893);
  --chart-3: oklch(0.714 0.186 131.882);
  --chart-4: oklch(0.625 0.139 54.793);
  --chart-5: oklch(0.755 0.154 106.249);
}