St Minas 2 for shadcn/ui

St Minas 2 is a shadcn/ui theme built around a vivid blue primary color (#0b69b1) with muted light blue accents (#d5d9dd). The light mode uses a neutral background (#f7fafd). Dark mode keeps the vivid blue primary (#0b69b1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fafdghostwhite
#000000black
Foreground
#010305black
#f8fafcghostwhite
Card
#f2f8fcaliceblue
#030303black
Card foreground
#000000black
#fcfdfdwhite
Popover
#f2f8fcaliceblue
#030303black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#0b69b1darkcyan
#0b69b1darkcyan
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d5d9ddgainsboro
#1b1c1dblack
Secondary foreground
#394147darkslategray
#b4b5b7silver
Muted
#eaeef0lavender
#0f1215black
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#d5d9ddgainsboro
#1b1c1dblack
Accent foreground
#394147darkslategray
#b4b5b7silver
Destructive
#691407maroon
#f14b32tomato
Destructive foreground
#f9b4a9lightpink
#ffffffwhite
Border
#e0e3e6gainsboro
#171a1cblack
Input
#e0e3e6gainsboro
#171a1cblack
Ring
#0b69b1darkcyan
#0b69b1darkcyan

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.62:1AAA
Primary button5.69:1AA
Secondary button7.33:1AAA
Muted text7.22:1AAA
Accent7.33:1AAA
Destructive7.11:1AAA
Dark mode
Text on background20.07:1AAA
Text on card20.29:1AAA
Primary button5.69:1AA
Secondary button8.30:1AAA
Muted text8.95:1AAA
Accent8.30:1AAA
Destructive3.62:1AA Large

CSS variables

Paste this into your globals.css to use St Minas 2 in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.006 240.362);
  --foreground: oklch(0.09 0.013 230.195);
  --muted: oklch(0.946 0.005 240.349);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.976 0.008 240.403);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.976 0.008 240.403);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.915 0.005 240.355);
  --input: oklch(0.915 0.005 240.355);
  --primary: oklch(0.512 0.138 249.306);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.884 0.007 240.396);
  --secondary-foreground: oklch(0.369 0.015 240.855);
  --accent: oklch(0.884 0.007 240.396);
  --accent-foreground: oklch(0.369 0.015 240.855);
  --destructive: oklch(0.342 0.12 31.712);
  --destructive-foreground: oklch(0.831 0.083 28.767);
  --ring: oklch(0.512 0.138 249.306);
  --chart-1: oklch(0.512 0.138 249.306);
  --chart-2: oklch(0.884 0.007 240.396);
  --chart-3: oklch(0.884 0.007 240.396);
  --chart-4: oklch(0.907 0.006 240.37);
  --chart-5: oklch(0.515 0.141 249.767);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.003 240.323);
  --muted: oklch(0.181 0.007 240.814);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.992 0.001 240.303);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 240.303);
  --border: oklch(0.215 0.006 240.687);
  --input: oklch(0.215 0.006 240.687);
  --primary: oklch(0.512 0.138 249.306);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.226 0.001 240.366);
  --secondary-foreground: oklch(0.773 0.003 240.33);
  --accent: oklch(0.226 0.001 240.366);
  --accent-foreground: oklch(0.773 0.003 240.33);
  --destructive: oklch(0.645 0.206 31.59);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.512 0.138 249.306);
  --chart-1: oklch(0.512 0.138 249.306);
  --chart-2: oklch(0.226 0.001 240.366);
  --chart-3: oklch(0.226 0.001 240.366);
  --chart-4: oklch(0.259 0.002 240.372);
  --chart-5: oklch(0.515 0.141 249.767);
}