All for shadcn/ui

All is a shadcn/ui theme built around a vivid yellow primary color (#e6d53d) with muted light yellow accents (#d5d2be). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#e6d53d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#faf9f5whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#faf9f5whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#faf9f5whitesmoke
Primary
#e6d53dgoldenrod
#e6d53dgoldenrod
Primary foreground
#4d460adarkolivegreen
#4d460adarkolivegreen
Secondary
#e1e0d6gainsboro
#1f1e19black
Secondary foreground
#4c4a38darkolivegreen
#bcbbaesilver
Muted
#efeeeclinen
#131310black
Muted foreground
#55534adarkolivegreen
#b5b4aadarkgray
Accent
#d5d2belightgrey
#383729darkslategray
Accent foreground
#3b3926darkslategray
#d2d0c1lightgrey
Destructive
#d2150ffirebrick
#e51710red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e6d53dgoldenrod
#e6d53dgoldenrod

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.34:1AA
Secondary button6.73:1AA
Muted text6.66:1AA
Accent7.68:1AAA
Destructive5.45:1AA
Dark mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button6.34:1AA
Secondary button8.61:1AAA
Muted text8.91:1AAA
Accent7.77:1AAA
Destructive4.71:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.95 0.004 101.352);
  --muted-foreground: oklch(0.442 0.016 101.834);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.861 0.163 102.779);
  --primary-foreground: oklch(0.389 0.076 102.627);
  --secondary: oklch(0.904 0.013 101.513);
  --secondary-foreground: oklch(0.407 0.029 102.294);
  --accent: oklch(0.861 0.027 101.774);
  --accent-foreground: oklch(0.34 0.03 102.511);
  --destructive: oklch(0.548 0.216 29.13);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.861 0.163 102.779);
  --chart-1: oklch(0.861 0.163 102.779);
  --chart-2: oklch(0.904 0.013 101.513);
  --chart-3: oklch(0.861 0.027 101.774);
  --chart-4: oklch(0.924 0.01 101.46);
  --chart-5: oklch(0.869 0.167 102.723);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.005 101.373);
  --muted: oklch(0.187 0.006 101.759);
  --muted-foreground: oklch(0.769 0.014 101.57);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.982 0.005 101.373);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.982 0.005 101.373);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.861 0.163 102.779);
  --primary-foreground: oklch(0.389 0.076 102.627);
  --secondary: oklch(0.235 0.009 101.892);
  --secondary-foreground: oklch(0.789 0.019 101.65);
  --accent: oklch(0.333 0.023 102.296);
  --accent-foreground: oklch(0.856 0.021 101.666);
  --destructive: oklch(0.585 0.231 29.158);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.861 0.163 102.779);
  --chart-1: oklch(0.861 0.163 102.779);
  --chart-2: oklch(0.235 0.009 101.892);
  --chart-3: oklch(0.333 0.023 102.296);
  --chart-4: oklch(0.269 0.012 101.933);
  --chart-5: oklch(0.869 0.167 102.723);
}