Small for shadcn/ui

Small is a shadcn/ui theme built around a light yellow primary color (#fcfbee) with light purple accents (#fbeefc). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#fcfbee) on a yellow-tinted background (#100f04).

Color palette

TokenLightDark
Background
#ffffffwhite
#100f04black
Foreground
#040401black
#fdfdfcwhite
Card
#ffffffwhite
#100f04black
Card foreground
#040401black
#fdfdfcwhite
Popover
#ffffffwhite
#100f04black
Popover foreground
#040401black
#fdfdfcwhite
Primary
#fcfbeefloralwhite
#fcfbeefloralwhite
Primary foreground
#44400edarkolivegreen
#44400edarkolivegreen
Secondary
#eefcfbazure
#eefcfbazure
Secondary foreground
#0e4440darkslategray
#0e4440darkslategray
Muted
#d9eceblavender
#132624black
Muted foreground
#596e6ddimgray
#91a6a5darkgray
Accent
#fbeefclavenderblush
#fbeefclavenderblush
Accent foreground
#901f98darkmagenta
#901f98darkmagenta
Destructive
#cc0300red
#ff0e0ared
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcfbeefloralwhite
#fcfbeefloralwhite

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.52:1AAA
Primary button10.12:1AAA
Secondary button10.36:1AAA
Muted text4.44:1AA Large
Accent6.60:1AA
Destructive5.86:1AA
Dark mode
Text on background18.87:1AAA
Text on card18.87:1AAA
Primary button10.12:1AAA
Secondary button10.36:1AAA
Muted text6.19:1AA
Accent6.60:1AA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.106 0.018 106.672);
  --muted: oklch(0.93 0.02 191.973);
  --muted-foreground: oklch(0.521 0.026 191.377);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.106 0.018 106.672);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.106 0.018 106.672);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.984 0.017 103.385);
  --primary-foreground: oklch(0.365 0.068 105.222);
  --secondary: oklch(0.979 0.014 192.124);
  --secondary-foreground: oklch(0.351 0.054 188.407);
  --accent: oklch(0.963 0.022 323.755);
  --accent-foreground: oklch(0.478 0.199 325.069);
  --destructive: oklch(0.532 0.217 29.405);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.984 0.017 103.385);
  --chart-1: oklch(0.984 0.017 103.385);
  --chart-2: oklch(0.979 0.014 192.124);
  --chart-3: oklch(0.963 0.022 323.755);
  --chart-4: oklch(0.995 0.004 192.352);
  --chart-5: oklch(0.985 0.017 103.397);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.166 0.022 105.369);
  --foreground: oklch(0.994 0.002 103.133);
  --muted: oklch(0.25 0.025 190.217);
  --muted-foreground: oklch(0.709 0.025 191.704);
  --popover: oklch(0.166 0.022 105.369);
  --popover-foreground: oklch(0.994 0.002 103.133);
  --card: oklch(0.166 0.022 105.369);
  --card-foreground: oklch(0.994 0.002 103.133);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.984 0.017 103.385);
  --primary-foreground: oklch(0.365 0.068 105.222);
  --secondary: oklch(0.979 0.014 192.124);
  --secondary-foreground: oklch(0.351 0.054 188.407);
  --accent: oklch(0.963 0.022 323.755);
  --accent-foreground: oklch(0.478 0.199 325.069);
  --destructive: oklch(0.631 0.255 29.125);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.984 0.017 103.385);
  --chart-1: oklch(0.984 0.017 103.385);
  --chart-2: oklch(0.979 0.014 192.124);
  --chart-3: oklch(0.963 0.022 323.755);
  --chart-4: oklch(0.995 0.004 192.352);
  --chart-5: oklch(0.985 0.017 103.397);
}