Miniature for shadcn/ui

Miniature is a shadcn/ui theme built around a near-black primary color (#060505) with near-black accents (#060505). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-black primary (#060505) on a red-tinted background (#0b0505).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0b0505black
Foreground
#0c0404black
#ffffffwhite
Card
#fdf7f7snow
#0e0606black
Card foreground
#080202black
#ffffffwhite
Popover
#fefbfbsnow
#0b0505black
Popover foreground
#0c0404black
#ffffffwhite
Primary
#060505black
#060505black
Primary foreground
#a99393rosybrown
#a99393rosybrown
Secondary
#060505black
#060505black
Secondary foreground
#a9939erosybrown
#a9939erosybrown
Muted
#e5e0e3gainsboro
#1f1a1cblack
Muted foreground
#635f61dimgray
#a09c9edarkgray
Accent
#060505black
#060505black
Accent foreground
#a99e93rosybrown
#a99e93rosybrown
Destructive
#ad3701firebrick
#f44e01orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#060505black
#060505black

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.40:1AAA
Primary button7.07:1AAA
Secondary button7.14:1AAA
Muted text4.83:1AA
Accent7.75:1AAA
Destructive6.33:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.01:1AAA
Primary button7.07:1AAA
Secondary button7.14:1AAA
Muted text6.36:1AA
Accent7.75:1AAA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 17.214);
  --foreground: oklch(0.119 0.02 20.423);
  --muted: oklch(0.913 0.006 345.327);
  --muted-foreground: oklch(0.49 0.006 345.449);
  --popover: oklch(0.99 0.003 17.214);
  --popover-foreground: oklch(0.119 0.02 20.423);
  --card: oklch(0.98 0.007 17.272);
  --card-foreground: oklch(0.104 0.017 20.398);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.114 0.003 17.618);
  --primary-foreground: oklch(0.684 0.026 17.793);
  --secondary: oklch(0.114 0.004 345.111);
  --secondary-foreground: oklch(0.687 0.029 346.225);
  --accent: oklch(0.116 0.002 69.37);
  --accent-foreground: oklch(0.706 0.02 67.5);
  --destructive: oklch(0.505 0.162 38.896);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.114 0.003 17.618);
  --chart-1: oklch(0.114 0.003 17.618);
  --chart-2: oklch(0.114 0.004 345.111);
  --chart-3: oklch(0.116 0.002 69.37);
  --chart-4: oklch(0.155 0.006 346.058);
  --chart-5: oklch(0.113 0.004 17.756);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.013 19.118);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.223 0.009 346.191);
  --muted-foreground: oklch(0.697 0.005 345.341);
  --popover: oklch(0.124 0.013 19.118);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.137 0.015 19.217);
  --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.114 0.003 17.618);
  --primary-foreground: oklch(0.684 0.026 17.793);
  --secondary: oklch(0.114 0.004 345.111);
  --secondary-foreground: oklch(0.687 0.029 346.225);
  --accent: oklch(0.116 0.002 69.37);
  --accent-foreground: oklch(0.706 0.02 67.5);
  --destructive: oklch(0.65 0.212 38.031);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.114 0.003 17.618);
  --chart-1: oklch(0.114 0.003 17.618);
  --chart-2: oklch(0.114 0.004 345.111);
  --chart-3: oklch(0.116 0.002 69.37);
  --chart-4: oklch(0.155 0.006 346.058);
  --chart-5: oklch(0.113 0.004 17.756);
}