unicscode89-stripe for shadcn/ui

unicscode89-stripe is a shadcn/ui theme built around a vivid indigo primary color (#635bff) with light blue accents (#e2e8f0). The light mode uses a blue-tinted background (#f1f5f9). Dark mode switches to a blue primary (#3a56c1) on a blue-tinted background (#0f172a).

Color palette

TokenLightDark
Background
#f1f5f9whitesmoke
#0f172ablack
Foreground
#040102black
#fcf8fasnow
Card
#ffffffwhite
#1e293bdarkslategray
Card foreground
#040102black
#fcf8fasnow
Popover
#ffffffwhite
#1e293bdarkslategray
Popover foreground
#040102black
#fcf8fasnow
Primary
#635bffmediumslateblue
#3a56c1royalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a0aec0darkgray
#424549darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e2e8f0lavender
#64748bslategray
Muted foreground
#67565ddimgray
#e0e0e0gainsboro
Accent
#e2e8f0lavender
#0f172ablack
Accent foreground
#432d37darkslategray
#ffffffwhite
Destructive
#df1b41crimson
#f1595ctomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f3f2f2whitesmoke
#525252darkslategray
Input
#f3f2f2whitesmoke
#334155darkslategray
Ring
#4669faroyalblue
#3a56c1royalblue

Contrast

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

Light mode
Text on background18.97:1AAA
Text on card20.78:1AAA
Primary button4.69:1AA
Secondary button2.25:1Fail
Muted text5.55:1AA
Accent10.20:1AAA
Destructive4.80:1AA
Dark mode
Text on background16.95:1AAA
Text on card13.89:1AAA
Primary button6.39:1AA
Secondary button9.63:1AAA
Muted text3.60:1AA Large
Accent17.85:1AAA
Destructive3.32:1AA Large

CSS variables

Paste this into your globals.css to use unicscode89-stripe in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.968 0.007 247.896);
  --foreground: oklch(0.084 0.015 348.404);
  --muted: oklch(0.929 0.013 255.515);
  --muted-foreground: oklch(0.472 0.025 350.144);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.084 0.015 348.404);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.084 0.015 348.404);
  --border: oklch(0.961 0.002 348.778);
  --input: oklch(0.961 0.002 348.778);
  --primary: oklch(0.578 0.235 278.291);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.746 0.03 254.721);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.929 0.013 255.515);
  --accent-foreground: oklch(0.327 0.036 351.632);
  --destructive: oklch(0.58 0.221 19.393);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.581 0.219 268.319);
  --chart-1: oklch(0.578 0.235 278.291);
  --chart-2: oklch(0.746 0.03 254.721);
  --chart-3: oklch(0.929 0.013 255.515);
  --chart-4: oklch(0.771 0.027 254.699);
  --chart-5: oklch(0.575 0.241 277.826);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.208 0.04 265.752);
  --foreground: oklch(0.983 0.004 348.851);
  --muted: oklch(0.554 0.041 257.409);
  --muted-foreground: oklch(0.906 0 180);
  --popover: oklch(0.279 0.037 260.029);
  --popover-foreground: oklch(0.983 0.004 348.851);
  --card: oklch(0.279 0.037 260.029);
  --card-foreground: oklch(0.983 0.004 348.851);
  --border: oklch(0.44 0 170.538);
  --input: oklch(0.372 0.039 257.281);
  --primary: oklch(0.495 0.171 268.388);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.389 0.008 255.543);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.208 0.04 265.752);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.666 0.187 22.613);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.495 0.171 268.388);
  --chart-1: oklch(0.495 0.171 268.388);
  --chart-2: oklch(0.389 0.008 255.543);
  --chart-3: oklch(0.208 0.04 265.752);
  --chart-4: oklch(0.417 0.009 255.544);
  --chart-5: oklch(0.492 0.179 267.969);
}