Minty for shadcn/ui

Minty is a shadcn/ui theme built around a light blue primary color (#c4cae3) with light yellow accents (#e3dec4). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#c4cae3) on a neutral background (#030308).

Color palette

TokenLightDark
Background
#ffffffwhite
#030308black
Foreground
#000000black
#fcfcfdwhite
Card
#fcfcfcsnow
#04050bblack
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#030308black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#c4cae3lightsteelblue
#c4cae3lightsteelblue
Primary foreground
#262d4fdarkslategray
#262d4fdarkslategray
Secondary
#e3dec4lightgrey
#e3dec4lightgrey
Secondary foreground
#4f4826darkolivegreen
#4f4826darkolivegreen
Muted
#f6f4ealinen
#151309black
Muted foreground
#676765dimgray
#9a9a98darkgray
Accent
#e3dec4lightgrey
#e3dec4lightgrey
Accent foreground
#4f4826darkolivegreen
#4f4826darkolivegreen
Destructive
#972311brown
#d83218firebrick
Destructive foreground
#fbe3dfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c4cae3lightsteelblue
#c4cae3lightsteelblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button8.19:1AAA
Secondary button6.76:1AA
Muted text5.12:1AA
Accent6.76:1AA
Destructive6.67:1AA
Dark mode
Text on background20.05:1AAA
Text on card20.34:1AAA
Primary button8.19:1AAA
Secondary button6.76:1AA
Muted text6.58:1AA
Accent6.76:1AA
Destructive4.80:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.965 0.013 97.441);
  --muted-foreground: oklch(0.512 0.003 97.329);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.842 0.036 276.638);
  --primary-foreground: oklch(0.309 0.062 273.664);
  --secondary: oklch(0.897 0.034 97.731);
  --secondary-foreground: oklch(0.401 0.052 98.289);
  --accent: oklch(0.897 0.034 97.731);
  --accent-foreground: oklch(0.401 0.052 98.289);
  --destructive: oklch(0.446 0.155 31.647);
  --destructive-foreground: oklch(0.934 0.028 28.111);
  --ring: oklch(0.842 0.036 276.638);
  --chart-1: oklch(0.842 0.036 276.638);
  --chart-2: oklch(0.897 0.034 97.731);
  --chart-3: oklch(0.897 0.034 97.731);
  --chart-4: oklch(0.915 0.028 97.647);
  --chart-5: oklch(0.839 0.039 276.578);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.015 271.553);
  --foreground: oklch(0.992 0.001 277.245);
  --muted: oklch(0.187 0.019 98.257);
  --muted-foreground: oklch(0.685 0.002 97.308);
  --popover: oklch(0.103 0.015 271.553);
  --popover-foreground: oklch(0.992 0.001 277.245);
  --card: oklch(0.118 0.017 271.618);
  --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.842 0.036 276.638);
  --primary-foreground: oklch(0.309 0.062 273.664);
  --secondary: oklch(0.897 0.034 97.731);
  --secondary-foreground: oklch(0.401 0.052 98.289);
  --accent: oklch(0.897 0.034 97.731);
  --accent-foreground: oklch(0.401 0.052 98.289);
  --destructive: oklch(0.576 0.205 31.597);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.842 0.036 276.638);
  --chart-1: oklch(0.842 0.036 276.638);
  --chart-2: oklch(0.897 0.034 97.731);
  --chart-3: oklch(0.897 0.034 97.731);
  --chart-4: oklch(0.915 0.028 97.647);
  --chart-5: oklch(0.839 0.039 276.578);
}