Minty for shadcn/ui

Minty is a shadcn/ui theme built around a near-black primary color (#030c03) with near-black accents (#030c08). The light mode uses a neutral background (#fbfefb). Dark mode keeps the near-black primary (#030c03) on a green-tinted background (#041004).

Color palette

TokenLightDark
Background
#fbfefbwhite
#041004black
Foreground
#031203black
#fbfdfbsnow
Card
#f7fdf7mintcream
#051405black
Card foreground
#020d02black
#ffffffwhite
Popover
#f7fdf7mintcream
#051405black
Popover foreground
#020d02black
#ffffffwhite
Primary
#030c03black
#030c03black
Primary foreground
#31aa31limegreen
#31aa31limegreen
Secondary
#080c03black
#080c03black
Secondary foreground
#6eaa31olivedrab
#6eaa31olivedrab
Muted
#e3ebdbgainsboro
#1c2414black
Muted foreground
#595c57dimgray
#a6a8a3darkgray
Accent
#030c08black
#030c08black
Accent foreground
#31aa6emediumseagreen
#31aa6emediumseagreen
Destructive
#6f1b02maroon
#fb3e04orangered
Destructive foreground
#feb9a5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#030c03black
#030c03black

Contrast

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

Light mode
Text on background18.93:1AAA
Text on card19.18:1AAA
Primary button6.54:1AA
Secondary button7.01:1AAA
Muted text5.56:1AA
Accent6.70:1AA
Destructive6.94:1AA
Dark mode
Text on background18.98:1AAA
Text on card18.91:1AAA
Primary button6.54:1AA
Secondary button7.01:1AAA
Muted text6.64:1AA
Accent6.70:1AA
Destructive3.62: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.994 0.006 145.533);
  --foreground: oklch(0.16 0.042 143.326);
  --muted: oklch(0.93 0.024 128.753);
  --muted-foreground: oklch(0.47 0.009 128.678);
  --popover: oklch(0.988 0.011 145.489);
  --popover-foreground: oklch(0.142 0.036 143.378);
  --card: oklch(0.988 0.011 145.489);
  --card-foreground: oklch(0.142 0.036 143.378);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.14 0.027 143.951);
  --primary-foreground: oklch(0.648 0.19 142.983);
  --secondary: oklch(0.145 0.022 127.547);
  --secondary-foreground: oklch(0.673 0.163 132.459);
  --accent: oklch(0.142 0.018 164.981);
  --accent-foreground: oklch(0.657 0.139 156.779);
  --destructive: oklch(0.36 0.121 35.944);
  --destructive-foreground: oklch(0.845 0.085 37.617);
  --ring: oklch(0.14 0.027 143.951);
  --chart-1: oklch(0.14 0.027 143.951);
  --chart-2: oklch(0.145 0.022 127.547);
  --chart-3: oklch(0.142 0.018 164.981);
  --chart-4: oklch(0.194 0.034 130.494);
  --chart-5: oklch(0.14 0.029 143.857);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.033 143.8);
  --foreground: oklch(0.993 0.003 145.551);
  --muted: oklch(0.249 0.033 130.082);
  --muted-foreground: oklch(0.729 0.008 128.586);
  --popover: oklch(0.173 0.038 143.724);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.173 0.038 143.724);
  --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.14 0.027 143.951);
  --primary-foreground: oklch(0.648 0.19 142.983);
  --secondary: oklch(0.145 0.022 127.547);
  --secondary-foreground: oklch(0.673 0.163 132.459);
  --accent: oklch(0.142 0.018 164.981);
  --accent-foreground: oklch(0.657 0.139 156.779);
  --destructive: oklch(0.647 0.231 34.082);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.14 0.027 143.951);
  --chart-1: oklch(0.14 0.027 143.951);
  --chart-2: oklch(0.145 0.022 127.547);
  --chart-3: oklch(0.142 0.018 164.981);
  --chart-4: oklch(0.194 0.034 130.494);
  --chart-5: oklch(0.14 0.029 143.857);
}