Minister for shadcn/ui

Minister is a shadcn/ui theme built around a vivid light purple primary color (#f7abe4) with vivid light red accents (#f7abbe). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid light purple primary (#f7abe4) on a purple-tinted background (#0b0509).

Color palette

TokenLightDark
Background
#fefbfdsnow
#0b0509black
Foreground
#090107black
#f9f6f8whitesmoke
Card
#fcf7fbsnow
#0e060cblack
Card foreground
#040103black
#fbf9fasnow
Popover
#fcf7fbsnow
#0e060cblack
Popover foreground
#040103black
#fbf9fasnow
Primary
#f7abe4plum
#f7abe4plum
Primary foreground
#670a4fpurple
#670a4fpurple
Secondary
#e4abf7plum
#e4abf7plum
Secondary foreground
#4f0a67indigo
#4f0a67indigo
Muted
#e3d4e8gainsboro
#26172bblack
Muted foreground
#4c3f50darkslategray
#bcafc0silver
Accent
#f7abbelightpink
#f7abbelightpink
Accent foreground
#670a21maroon
#670a21maroon
Destructive
#d51f0bfirebrick
#e4220cred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7abe4plum
#f7abe4plum

Contrast

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

Light mode
Text on background20.06:1AAA
Text on card19.68:1AAA
Primary button6.87:1AA
Secondary button7.30:1AAA
Muted text6.94:1AA
Accent7.02:1AAA
Destructive5.19:1AA
Dark mode
Text on background18.85:1AAA
Text on card19.06:1AAA
Primary button6.87:1AA
Secondary button7.30:1AAA
Muted text8.07:1AAA
Accent7.02:1AAA
Destructive4.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 333.94);
  --foreground: oklch(0.105 0.031 334.837);
  --muted: oklch(0.888 0.031 317.706);
  --muted-foreground: oklch(0.387 0.033 317.621);
  --popover: oklch(0.982 0.007 334.004);
  --popover-foreground: oklch(0.083 0.024 334.837);
  --card: oklch(0.982 0.007 334.004);
  --card-foreground: oklch(0.083 0.024 334.837);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.831 0.115 336.046);
  --primary-foreground: oklch(0.35 0.142 341.421);
  --secondary: oklch(0.819 0.121 317.5);
  --secondary-foreground: oklch(0.326 0.149 315.091);
  --accent: oklch(0.819 0.092 2.928);
  --accent-foreground: oklch(0.333 0.124 14.798);
  --destructive: oklch(0.559 0.215 30.443);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.831 0.115 336.046);
  --chart-1: oklch(0.831 0.115 336.046);
  --chart-2: oklch(0.819 0.121 317.5);
  --chart-3: oklch(0.819 0.092 2.928);
  --chart-4: oklch(0.849 0.1 317.561);
  --chart-5: oklch(0.831 0.119 336.122);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.019 334.463);
  --foreground: oklch(0.975 0.005 333.965);
  --muted: oklch(0.234 0.043 317.415);
  --muted-foreground: oklch(0.77 0.028 317.704);
  --popover: oklch(0.139 0.021 335.536);
  --popover-foreground: oklch(0.984 0.003 333.935);
  --card: oklch(0.139 0.021 335.536);
  --card-foreground: oklch(0.984 0.003 333.935);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.831 0.115 336.046);
  --primary-foreground: oklch(0.35 0.142 341.421);
  --secondary: oklch(0.819 0.121 317.5);
  --secondary-foreground: oklch(0.326 0.149 315.091);
  --accent: oklch(0.819 0.092 2.928);
  --accent-foreground: oklch(0.333 0.124 14.798);
  --destructive: oklch(0.587 0.226 30.43);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.831 0.115 336.046);
  --chart-1: oklch(0.831 0.115 336.046);
  --chart-2: oklch(0.819 0.121 317.5);
  --chart-3: oklch(0.819 0.092 2.928);
  --chart-4: oklch(0.849 0.1 317.561);
  --chart-5: oklch(0.831 0.119 336.122);
}