Tiny for shadcn/ui

Tiny is a shadcn/ui theme built around a deep purple primary color (#1c071a) with deep cyan accents (#071a1c). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the deep purple primary (#1c071a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#000000black
Foreground
#080207black
#fcf8fbsnow
Card
#fbf8fbsnow
#030303black
Card foreground
#040104black
#fdfcfdwhite
Popover
#fbf8fbsnow
#030303black
Popover foreground
#040104black
#fdfcfdwhite
Primary
#1c071ablack
#1c071ablack
Primary foreground
#dc7ad4orchid
#dc7ad4orchid
Secondary
#1a1c07black
#1a1c07black
Secondary foreground
#b2bd32yellowgreen
#b2bd32yellowgreen
Muted
#f4f4f0whitesmoke
#0f0f0bblack
Muted foreground
#626260dimgray
#9f9f9ddarkgray
Accent
#071a1cblack
#071a1cblack
Accent foreground
#32b2bdlightseagreen
#32b2bdlightseagreen
Destructive
#b0480csaddlebrown
#ef6515chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1c071ablack
#1c071ablack

Contrast

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

Light mode
Text on background20.04:1AAA
Text on card19.75:1AAA
Primary button7.08:1AAA
Secondary button8.39:1AAA
Muted text5.55:1AA
Accent6.98:1AA
Destructive5.52:1AA
Dark mode
Text on background19.95:1AAA
Text on card20.20:1AAA
Primary button7.08:1AAA
Secondary button8.39:1AAA
Muted text7.25:1AAA
Accent6.98:1AA
Destructive6.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 328.091);
  --foreground: oklch(0.109 0.023 329.284);
  --muted: oklch(0.967 0.006 110.358);
  --muted-foreground: oklch(0.495 0.003 110.361);
  --popover: oklch(0.983 0.005 328.118);
  --popover-foreground: oklch(0.086 0.018 329.284);
  --card: oklch(0.983 0.005 328.118);
  --card-foreground: oklch(0.086 0.018 329.284);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.176 0.049 330.637);
  --primary-foreground: oklch(0.717 0.164 330.231);
  --secondary: oklch(0.22 0.036 113.232);
  --secondary-foreground: oklch(0.766 0.156 114.29);
  --accent: oklch(0.205 0.025 203.228);
  --accent-foreground: oklch(0.701 0.108 204.085);
  --destructive: oklch(0.534 0.15 44.032);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.176 0.049 330.637);
  --chart-1: oklch(0.176 0.049 330.637);
  --chart-2: oklch(0.22 0.036 113.232);
  --chart-3: oklch(0.205 0.025 203.228);
  --chart-4: oklch(0.268 0.047 113.545);
  --chart-5: oklch(0.176 0.051 330.743);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.006 328.125);
  --muted: oklch(0.166 0.009 111.221);
  --muted-foreground: oklch(0.702 0.003 110.321);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.992 0.003 328.094);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.003 328.094);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.176 0.049 330.637);
  --primary-foreground: oklch(0.717 0.164 330.231);
  --secondary: oklch(0.22 0.036 113.232);
  --secondary-foreground: oklch(0.766 0.156 114.29);
  --accent: oklch(0.205 0.025 203.228);
  --accent-foreground: oklch(0.701 0.108 204.085);
  --destructive: oklch(0.67 0.188 44.093);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.176 0.049 330.637);
  --chart-1: oklch(0.176 0.049 330.637);
  --chart-2: oklch(0.22 0.036 113.232);
  --chart-3: oklch(0.205 0.025 203.228);
  --chart-4: oklch(0.268 0.047 113.545);
  --chart-5: oklch(0.176 0.051 330.743);
}