Tiny for shadcn/ui

Tiny is a shadcn/ui theme built around a neutral gray primary color (#aaaaac) with neutral gray accents (#abaaac). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the neutral gray primary (#aaaaac) on an indigo-tinted background (#06050a).

Color palette

TokenLightDark
Background
#fcfbfewhite
#06050ablack
Foreground
#060317black
#ffffffwhite
Card
#f8f7fdghostwhite
#08060eblack
Card foreground
#050212black
#ffffffwhite
Popover
#f8f7fdghostwhite
#08060eblack
Popover foreground
#050212black
#ffffffwhite
Primary
#aaaaacdarkgray
#aaaaacdarkgray
Primary foreground
#121212black
#121212black
Secondary
#aaabacdarkgray
#aaabacdarkgray
Secondary foreground
#121212black
#121212black
Muted
#e9eaeclavender
#131416black
Muted foreground
#5e6268dimgray
#979aa1darkgray
Accent
#abaaacdarkgray
#abaaacdarkgray
Accent foreground
#121212black
#121212black
Destructive
#c1200bfirebrick
#f3422borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#aaaaacdarkgray
#aaaaacdarkgray

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.29:1AAA
Primary button8.08:1AAA
Secondary button8.11:1AAA
Muted text5.10:1AA
Accent8.09:1AAA
Destructive6.03:1AA
Dark mode
Text on background20.32:1AAA
Text on card20.10:1AAA
Primary button8.08:1AAA
Secondary button8.11:1AAA
Muted text6.54:1AA
Accent8.09:1AAA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 294.759);
  --foreground: oklch(0.123 0.047 289.519);
  --muted: oklch(0.937 0.002 265.995);
  --muted-foreground: oklch(0.494 0.011 265.888);
  --popover: oklch(0.979 0.007 294.692);
  --popover-foreground: oklch(0.112 0.042 290.944);
  --card: oklch(0.979 0.007 294.692);
  --card-foreground: oklch(0.112 0.042 290.944);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.739 0.002 294.763);
  --primary-foreground: oklch(0.181 0.001 294.749);
  --secondary: oklch(0.74 0.002 265.996);
  --secondary-foreground: oklch(0.181 0.001 265.994);
  --accent: oklch(0.739 0.003 315.412);
  --accent-foreground: oklch(0.181 0.001 315.409);
  --destructive: oklch(0.522 0.197 30.906);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.739 0.002 294.763);
  --chart-1: oklch(0.739 0.002 294.763);
  --chart-2: oklch(0.74 0.002 265.996);
  --chart-3: oklch(0.739 0.003 315.412);
  --chart-4: oklch(0.764 0.002 265.997);
  --chart-5: oklch(0.733 0.01 294.578);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.015 294.101);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.191 0.004 265.913);
  --muted-foreground: oklch(0.685 0.011 265.932);
  --popover: oklch(0.132 0.018 293.498);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.132 0.018 293.498);
  --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.739 0.002 294.763);
  --primary-foreground: oklch(0.181 0.001 294.749);
  --secondary: oklch(0.74 0.002 265.996);
  --secondary-foreground: oklch(0.181 0.001 265.994);
  --accent: oklch(0.739 0.003 315.412);
  --accent-foreground: oklch(0.181 0.001 315.409);
  --destructive: oklch(0.639 0.216 30.97);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.739 0.002 294.763);
  --chart-1: oklch(0.739 0.002 294.763);
  --chart-2: oklch(0.74 0.002 265.996);
  --chart-3: oklch(0.739 0.003 315.412);
  --chart-4: oklch(0.764 0.002 265.997);
  --chart-5: oklch(0.733 0.01 294.578);
}