Promise for shadcn/ui

Promise is a shadcn/ui theme built around a muted deep violet primary color (#251c30) with muted deep purple accents (#2f1c30). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep violet primary (#251c30) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#07030dblack
#f7f5f9whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#07030dblack
#f7f5f9whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#07030dblack
#f7f5f9whitesmoke
Primary
#251c30darkslategray
#251c30darkslategray
Primary foreground
#bcafd0silver
#bcafd0silver
Secondary
#1c1e30darkslategray
#1c1e30darkslategray
Secondary foreground
#afb1d0lightsteelblue
#afb1d0lightsteelblue
Muted
#d5d7ecgainsboro
#13152ablack
Muted foreground
#40414fdarkslategray
#b0b2bfsilver
Accent
#2f1c30darkslategray
#2f1c30darkslategray
Accent foreground
#cdafd0thistle
#cdafd0thistle
Destructive
#c42a03firebrick
#f13304orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#251c30darkslategray
#251c30darkslategray

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.43:1AAA
Primary button7.89:1AAA
Secondary button7.83:1AAA
Muted text7.07:1AAA
Accent7.99:1AAA
Destructive5.71:1AA
Dark mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button7.89:1AAA
Secondary button7.83:1AAA
Muted text8.51:1AAA
Accent7.99:1AAA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.113 0.029 306.07);
  --muted: oklch(0.884 0.028 281.661);
  --muted-foreground: oklch(0.381 0.022 281.184);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.113 0.029 306.07);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.113 0.029 306.07);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.247 0.039 302.825);
  --primary-foreground: oklch(0.775 0.049 304.173);
  --secondary: oklch(0.242 0.035 279.461);
  --secondary-foreground: oklch(0.77 0.043 281.223);
  --accent: oklch(0.26 0.044 323.849);
  --accent-foreground: oklch(0.79 0.057 323.457);
  --destructive: oklch(0.534 0.194 33.167);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.247 0.039 302.825);
  --chart-1: oklch(0.247 0.039 302.825);
  --chart-2: oklch(0.242 0.035 279.461);
  --chart-3: oklch(0.26 0.044 323.849);
  --chart-4: oklch(0.269 0.041 279.295);
  --chart-5: oklch(0.245 0.043 302.525);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.974 0.006 304.966);
  --muted: oklch(0.206 0.041 278.205);
  --muted-foreground: oklch(0.766 0.019 281.8);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.974 0.006 304.966);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.974 0.006 304.966);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.247 0.039 302.825);
  --primary-foreground: oklch(0.775 0.049 304.173);
  --secondary: oklch(0.242 0.035 279.461);
  --secondary-foreground: oklch(0.77 0.043 281.223);
  --accent: oklch(0.26 0.044 323.849);
  --accent-foreground: oklch(0.79 0.057 323.457);
  --destructive: oklch(0.622 0.229 32.879);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.247 0.039 302.825);
  --chart-1: oklch(0.247 0.039 302.825);
  --chart-2: oklch(0.242 0.035 279.461);
  --chart-3: oklch(0.26 0.044 323.849);
  --chart-4: oklch(0.269 0.041 279.295);
  --chart-5: oklch(0.245 0.043 302.525);
}