Miniature for shadcn/ui

Miniature is a shadcn/ui theme built around a teal primary color (#348377) with blue accents (#346883). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the teal primary (#348377) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcfbmintcream
#000000black
Foreground
#020807black
#f5faf9mintcream
Card
#f5faf9mintcream
#030303black
Card foreground
#010404black
#f8fbfbghostwhite
Popover
#f8fcfbmintcream
#000000black
Popover foreground
#020807black
#f5faf9mintcream
Primary
#348377seagreen
#348377seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#348350seagreen
#348350seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#cbe6d5lightgrey
#193422darkslategray
Muted foreground
#494b4adarkslategray
#b4b6b5silver
Accent
#346883darkslateblue
#346883darkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d31b0dfirebrick
#e61d0fred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#348377seagreen
#348377seagreen

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.49:1AAA
Primary button4.48:1AA Large
Secondary button4.64:1AA
Muted text6.63:1AA
Accent6.09:1AA
Destructive5.34:1AA
Dark mode
Text on background19.92:1AAA
Text on card19.87:1AAA
Primary button4.48:1AA Large
Secondary button4.64:1AA
Muted text6.64:1AA
Accent6.09:1AA
Destructive4.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 186.505);
  --foreground: oklch(0.125 0.014 186.179);
  --muted: oklch(0.901 0.037 157.098);
  --muted-foreground: oklch(0.41 0.002 157.857);
  --popover: oklch(0.987 0.004 186.505);
  --popover-foreground: oklch(0.125 0.014 186.179);
  --card: oklch(0.981 0.005 186.459);
  --card-foreground: oklch(0.099 0.011 186.179);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.559 0.079 181.903);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.548 0.111 152.358);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.493 0.071 234.25);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.553 0.215 29.744);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.559 0.079 181.903);
  --chart-1: oklch(0.559 0.079 181.903);
  --chart-2: oklch(0.548 0.111 152.358);
  --chart-3: oklch(0.493 0.071 234.25);
  --chart-4: oklch(0.581 0.119 152.303);
  --chart-5: oklch(0.566 0.083 181.61);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.005 186.463);
  --muted: oklch(0.296 0.046 154.072);
  --muted-foreground: oklch(0.774 0.002 157.927);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.98 0.005 186.463);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.987 0.003 186.508);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.559 0.079 181.903);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.548 0.111 152.358);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.493 0.071 234.25);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.59 0.23 29.75);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.559 0.079 181.903);
  --chart-1: oklch(0.559 0.079 181.903);
  --chart-2: oklch(0.548 0.111 152.358);
  --chart-3: oklch(0.493 0.071 234.25);
  --chart-4: oklch(0.581 0.119 152.303);
  --chart-5: oklch(0.566 0.083 181.61);
}