Tiny for shadcn/ui

Tiny is a shadcn/ui theme built around a vivid yellow primary color (#f8d887) with vivid violet accents (#d887f8). The light mode uses a neutral background (#fefdfb). Dark mode keeps the vivid yellow primary (#f8d887) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#fefdfbsnow
#070603black
Foreground
#0d0a02black
#fbfaf9snow
Card
#fdfbf7snow
#0b0904black
Card foreground
#090701black
#fdfdfcwhite
Popover
#fefdfbsnow
#070603black
Popover foreground
#0d0a02black
#fbfaf9snow
Primary
#f8d887khaki
#f8d887khaki
Primary foreground
#483504darkolivegreen
#483504darkolivegreen
Secondary
#87f8d8aquamarine
#87f8d8aquamarine
Secondary foreground
#044835darkslategray
#044835darkslategray
Muted
#eef1f0whitesmoke
#0e1110black
Muted foreground
#525b59dimgray
#a4adaadarkgray
Accent
#d887f8violet
#d887f8violet
Accent foreground
#350448midnightblue
#350448midnightblue
Destructive
#98150bdarkred
#ee2e20crimson
Destructive foreground
#fcdbd9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8d887khaki
#f8d887khaki

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.48:1AAA
Primary button8.47:1AAA
Secondary button8.28:1AAA
Muted text6.16:1AA
Accent6.89:1AA
Destructive6.66:1AA
Dark mode
Text on background19.41:1AAA
Text on card19.53:1AAA
Primary button8.47:1AAA
Secondary button8.28:1AAA
Muted text8.27:1AAA
Accent6.89:1AA
Destructive4.15: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.994 0.003 88.809);
  --foreground: oklch(0.146 0.022 94.305);
  --muted: oklch(0.956 0.003 177.63);
  --muted-foreground: oklch(0.463 0.012 176.973);
  --popover: oklch(0.994 0.003 88.809);
  --popover-foreground: oklch(0.146 0.022 94.305);
  --card: oklch(0.988 0.005 88.826);
  --card-foreground: oklch(0.127 0.019 95.488);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.891 0.107 88.626);
  --primary-foreground: oklch(0.342 0.067 84.754);
  --secondary: oklch(0.903 0.114 173.098);
  --secondary-foreground: oklch(0.359 0.071 167.371);
  --accent: oklch(0.748 0.177 315.786);
  --accent-foreground: oklch(0.252 0.117 313.382);
  --destructive: oklch(0.436 0.166 29.654);
  --destructive-foreground: oklch(0.919 0.037 22.701);
  --ring: oklch(0.891 0.107 88.626);
  --chart-1: oklch(0.891 0.107 88.626);
  --chart-2: oklch(0.903 0.114 173.098);
  --chart-3: oklch(0.748 0.177 315.786);
  --chart-4: oklch(0.912 0.103 173.781);
  --chart-5: oklch(0.894 0.11 88.578);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.012 93.278);
  --foreground: oklch(0.986 0.001 88.8);
  --muted: oklch(0.172 0.004 176.995);
  --muted-foreground: oklch(0.739 0.01 177.303);
  --popover: oklch(0.123 0.012 93.278);
  --popover-foreground: oklch(0.986 0.001 88.8);
  --card: oklch(0.141 0.014 93.031);
  --card-foreground: oklch(0.993 0.001 88.795);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.891 0.107 88.626);
  --primary-foreground: oklch(0.342 0.067 84.754);
  --secondary: oklch(0.903 0.114 173.098);
  --secondary-foreground: oklch(0.359 0.071 167.371);
  --accent: oklch(0.748 0.177 315.786);
  --accent-foreground: oklch(0.252 0.117 313.382);
  --destructive: oklch(0.614 0.227 29.494);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.891 0.107 88.626);
  --chart-1: oklch(0.891 0.107 88.626);
  --chart-2: oklch(0.903 0.114 173.098);
  --chart-3: oklch(0.748 0.177 315.786);
  --chart-4: oklch(0.912 0.103 173.781);
  --chart-5: oklch(0.894 0.11 88.578);
}