Minty for shadcn/ui

Minty is a shadcn/ui theme built around a near-black primary color (#171717) with near-black accents (#171717). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the near-black primary (#171717) on a neutral background (#080302).

Color palette

TokenLightDark
Background
#fcf9f8snow
#080302black
Foreground
#040101black
#fcf9f8snow
Card
#faf6f5whitesmoke
#0c0503black
Card foreground
#000000black
#fdfcfcsnow
Popover
#faf6f5whitesmoke
#0c0503black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#171717black
#171717black
Primary foreground
#b1afafdarkgray
#b1afafdarkgray
Secondary
#171717black
#171717black
Secondary foreground
#b1afb0darkgray
#b1afb0darkgray
Muted
#e8dee2gainsboro
#21171bblack
Muted foreground
#4c3940darkslategray
#c6b3basilver
Accent
#171717black
#171717black
Accent foreground
#b1b0afdarkgray
#b1b0afdarkgray
Destructive
#9c2a07saddlebrown
#ea3f0borangered
Destructive foreground
#fde1d8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#171717black
#171717black

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.50:1AAA
Primary button8.22:1AAA
Secondary button8.23:1AAA
Muted text8.12:1AAA
Accent8.27:1AAA
Destructive6.17:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.77:1AAA
Primary button8.22:1AAA
Secondary button8.23:1AAA
Muted text8.76:1AAA
Accent8.27:1AAA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.003 27.949);
  --foreground: oklch(0.086 0.012 33.714);
  --muted: oklch(0.91 0.011 352.932);
  --muted-foreground: oklch(0.367 0.028 354.686);
  --popover: oklch(0.975 0.005 27.957);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.975 0.005 27.957);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.204 0.001 27.949);
  --primary-foreground: oklch(0.756 0.002 27.944);
  --secondary: oklch(0.204 0.001 352.687);
  --secondary-foreground: oklch(0.756 0.002 352.65);
  --accent: oklch(0.205 0.001 81.514);
  --accent-foreground: oklch(0.758 0.002 81.514);
  --destructive: oklch(0.461 0.155 35.319);
  --destructive-foreground: oklch(0.93 0.034 37.617);
  --ring: oklch(0.204 0.001 27.949);
  --chart-1: oklch(0.204 0.001 27.949);
  --chart-2: oklch(0.204 0.001 352.687);
  --chart-3: oklch(0.205 0.001 81.514);
  --chart-4: oklch(0.237 0.001 352.699);
  --chart-5: oklch(0.203 0.003 28);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.015 33.426);
  --foreground: oklch(0.983 0.003 27.949);
  --muted: oklch(0.219 0.017 354.644);
  --muted-foreground: oklch(0.786 0.023 353.403);
  --popover: oklch(0.124 0.017 33.304);
  --popover-foreground: oklch(0.992 0.002 27.941);
  --card: oklch(0.124 0.017 33.304);
  --card-foreground: oklch(0.992 0.002 27.941);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.204 0.001 27.949);
  --primary-foreground: oklch(0.756 0.002 27.944);
  --secondary: oklch(0.204 0.001 352.687);
  --secondary-foreground: oklch(0.756 0.002 352.65);
  --accent: oklch(0.205 0.001 81.514);
  --accent-foreground: oklch(0.758 0.002 81.514);
  --destructive: oklch(0.619 0.214 34.785);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.204 0.001 27.949);
  --chart-1: oklch(0.204 0.001 27.949);
  --chart-2: oklch(0.204 0.001 352.687);
  --chart-3: oklch(0.205 0.001 81.514);
  --chart-4: oklch(0.237 0.001 352.699);
  --chart-5: oklch(0.203 0.003 28);
}