Partial for shadcn/ui

Partial is a shadcn/ui theme built around a vivid indigo primary color (#1f30e5) with vivid yellow accents (#e5d41f). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid indigo primary (#1f30e5) on an indigo-tinted background (#040510).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#040510black
Foreground
#03040cblack
#f5f5fawhitesmoke
Card
#f4f5fawhitesmoke
#050714black
Card foreground
#020208black
#f8f8fcghostwhite
Popover
#f8f8fcghostwhite
#040510black
Popover foreground
#03040cblack
#f5f5fawhitesmoke
Primary
#1f30e5mediumblue
#1f30e5mediumblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e5d41fgold
#e5d41fgold
Secondary foreground
#322f06black
#322f06black
Muted
#e5e5e0gainsboro
#1f1e1ablack
Muted foreground
#4b4a3fdarkslategray
#c0bfb4silver
Accent
#e5d41fgold
#e5d41fgold
Accent foreground
#322f06black
#322f06black
Destructive
#86320esaddlebrown
#e25418chocolate
Destructive foreground
#fadaccbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1f30e5mediumblue
#1f30e5mediumblue

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.01:1AAA
Primary button8.05:1AAA
Secondary button8.92:1AAA
Muted text7.08:1AAA
Accent8.92:1AAA
Destructive6.45:1AA
Dark mode
Text on background18.64:1AAA
Text on card18.94:1AAA
Primary button8.05:1AAA
Secondary button8.92:1AAA
Muted text9.01:1AAA
Accent8.92:1AAA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 282.132);
  --foreground: oklch(0.109 0.025 275.418);
  --muted: oklch(0.921 0.006 102.322);
  --muted-foreground: oklch(0.407 0.018 102.915);
  --popover: oklch(0.981 0.005 282.132);
  --popover-foreground: oklch(0.109 0.025 275.418);
  --card: oklch(0.971 0.007 282.09);
  --card-foreground: oklch(0.096 0.021 275.398);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.457 0.261 267.189);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.858 0.175 103.606);
  --secondary-foreground: oklch(0.298 0.057 104.078);
  --accent: oklch(0.858 0.175 103.606);
  --accent-foreground: oklch(0.298 0.057 104.078);
  --destructive: oklch(0.432 0.124 40.505);
  --destructive-foreground: oklch(0.911 0.04 44.59);
  --ring: oklch(0.457 0.261 267.189);
  --chart-1: oklch(0.457 0.261 267.189);
  --chart-2: oklch(0.858 0.175 103.606);
  --chart-3: oklch(0.858 0.175 103.606);
  --chart-4: oklch(0.865 0.172 103.827);
  --chart-5: oklch(0.456 0.268 266.653);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.026 276.36);
  --foreground: oklch(0.971 0.007 282.097);
  --muted: oklch(0.234 0.009 102.791);
  --muted-foreground: oklch(0.803 0.016 102.527);
  --popover: oklch(0.123 0.026 276.36);
  --popover-foreground: oklch(0.971 0.007 282.097);
  --card: oklch(0.134 0.03 276.416);
  --card-foreground: oklch(0.981 0.004 282.136);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.457 0.261 267.189);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.858 0.175 103.606);
  --secondary-foreground: oklch(0.298 0.057 104.078);
  --accent: oklch(0.858 0.175 103.606);
  --accent-foreground: oklch(0.298 0.057 104.078);
  --destructive: oklch(0.63 0.188 39.766);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.457 0.261 267.189);
  --chart-1: oklch(0.457 0.261 267.189);
  --chart-2: oklch(0.858 0.175 103.606);
  --chart-3: oklch(0.858 0.175 103.606);
  --chart-4: oklch(0.865 0.172 103.827);
  --chart-5: oklch(0.456 0.268 266.653);
}