Tiny for shadcn/ui

Tiny is a shadcn/ui theme built around a muted deep indigo primary color (#18171c) with muted deep green accents (#171c18). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the muted deep indigo primary (#18171c) on an indigo-tinted background (#07060f).

Color palette

TokenLightDark
Background
#f7f7fdghostwhite
#07060fblack
Foreground
#04030cblack
#f7f7f8whitesmoke
Card
#f7f7fdghostwhite
#07060fblack
Card foreground
#04030cblack
#f7f7f8whitesmoke
Popover
#f7f7fdghostwhite
#07060fblack
Popover foreground
#04030cblack
#f7f7f8whitesmoke
Primary
#18171cblack
#18171cblack
Primary foreground
#aeacb9darkgray
#aeacb9darkgray
Secondary
#1c1817black
#1c1817black
Secondary foreground
#b9aeacdarkgray
#b9aeacdarkgray
Muted
#eceaealinen
#151413black
Muted foreground
#6d615fdimgray
#a09492rosybrown
Accent
#171c18black
#171c18black
Accent foreground
#acb9aedarkgray
#acb9aedarkgray
Destructive
#b42c0efirebrick
#d53410firebrick
Destructive foreground
#fef7f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#18171cblack
#18171cblack

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button7.95:1AAA
Secondary button8.15:1AAA
Muted text4.95:1AA
Accent8.49:1AAA
Destructive5.98:1AA
Dark mode
Text on background18.86:1AAA
Text on card18.86:1AAA
Primary button7.95:1AAA
Secondary button8.15:1AAA
Muted text6.26:1AA
Accent8.49:1AAA
Destructive4.83:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.009 291.609);
  --foreground: oklch(0.111 0.024 289.36);
  --muted: oklch(0.938 0.002 26.454);
  --muted-foreground: oklch(0.502 0.017 26.691);
  --popover: oklch(0.977 0.009 291.609);
  --popover-foreground: oklch(0.111 0.024 289.36);
  --card: oklch(0.977 0.009 291.609);
  --card-foreground: oklch(0.111 0.024 289.36);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.209 0.008 291.048);
  --primary-foreground: oklch(0.751 0.017 291.339);
  --secondary: oklch(0.213 0.006 26.644);
  --secondary-foreground: oklch(0.759 0.013 26.557);
  --accent: oklch(0.219 0.009 148.623);
  --accent-foreground: oklch(0.772 0.02 148.819);
  --destructive: oklch(0.508 0.177 33.318);
  --destructive-foreground: oklch(0.982 0.008 32.662);
  --ring: oklch(0.209 0.008 291.048);
  --chart-1: oklch(0.209 0.008 291.048);
  --chart-2: oklch(0.213 0.006 26.644);
  --chart-3: oklch(0.219 0.009 148.623);
  --chart-4: oklch(0.245 0.007 26.665);
  --chart-5: oklch(0.207 0.011 290.749);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.022 289.478);
  --foreground: oklch(0.975 0.002 291.74);
  --muted: oklch(0.192 0.003 26.548);
  --muted-foreground: oklch(0.675 0.015 26.604);
  --popover: oklch(0.127 0.022 289.478);
  --popover-foreground: oklch(0.975 0.002 291.74);
  --card: oklch(0.127 0.022 289.478);
  --card-foreground: oklch(0.975 0.002 291.74);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.209 0.008 291.048);
  --primary-foreground: oklch(0.751 0.017 291.339);
  --secondary: oklch(0.213 0.006 26.644);
  --secondary-foreground: oklch(0.759 0.013 26.557);
  --accent: oklch(0.219 0.009 148.623);
  --accent-foreground: oklch(0.772 0.02 148.819);
  --destructive: oklch(0.574 0.202 33.201);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.209 0.008 291.048);
  --chart-1: oklch(0.209 0.008 291.048);
  --chart-2: oklch(0.213 0.006 26.644);
  --chart-3: oklch(0.219 0.009 148.623);
  --chart-4: oklch(0.245 0.007 26.665);
  --chart-5: oklch(0.207 0.011 290.749);
}