Signup for shadcn/ui

Signup is a shadcn/ui theme built around a muted indigo primary color (#a8a4b6) with muted violet accents (#b1a4b6). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted indigo primary (#a8a4b6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfbfewhite
#000000black
Foreground
#080416black
#f9f9fbghostwhite
Card
#f8f7fdghostwhite
#030303black
Card foreground
#060311black
#fcfcfdwhite
Popover
#fcfbfewhite
#000000black
Popover foreground
#080416black
#f9f9fbghostwhite
Primary
#a8a4b6darkgray
#a8a4b6darkgray
Primary foreground
#131217black
#131217black
Secondary
#a4aab6darkgray
#a4aab6darkgray
Secondary foreground
#121317black
#121317black
Muted
#f0f1f5whitesmoke
#0a0c0fblack
Muted foreground
#424448darkslategray
#b7b9bdsilver
Accent
#b1a4b6darkgray
#b1a4b6darkgray
Accent foreground
#151217black
#151217black
Destructive
#762c04saddlebrown
#f65f0eorangered
Destructive foreground
#fccbb0peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a8a4b6darkgray
#a8a4b6darkgray

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.17:1AAA
Primary button7.71:1AAA
Secondary button7.93:1AAA
Muted text8.65:1AAA
Accent7.86:1AAA
Destructive6.69:1AA
Dark mode
Text on background19.97:1AAA
Text on card20.16:1AAA
Primary button7.71:1AAA
Secondary button7.93:1AAA
Muted text9.97:1AAA
Accent7.86:1AAA
Destructive6.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 296.261);
  --foreground: oklch(0.128 0.041 292.331);
  --muted: oklch(0.959 0.005 268.757);
  --muted-foreground: oklch(0.385 0.007 268.656);
  --popover: oklch(0.989 0.004 296.261);
  --popover-foreground: oklch(0.128 0.041 292.331);
  --card: oklch(0.979 0.008 296.191);
  --card-foreground: oklch(0.118 0.036 293.749);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.729 0.026 295.678);
  --primary-foreground: oklch(0.186 0.009 295.427);
  --secondary: oklch(0.736 0.019 268.588);
  --secondary-foreground: oklch(0.189 0.007 268.5);
  --accent: oklch(0.737 0.029 316.493);
  --accent-foreground: oklch(0.189 0.01 316.45);
  --destructive: oklch(0.396 0.114 43.025);
  --destructive-foreground: oklch(0.878 0.067 49.767);
  --ring: oklch(0.729 0.026 295.678);
  --chart-1: oklch(0.729 0.026 295.678);
  --chart-2: oklch(0.736 0.019 268.588);
  --chart-3: oklch(0.737 0.029 316.493);
  --chart-4: oklch(0.762 0.017 268.617);
  --chart-5: oklch(0.724 0.033 295.49);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.002 296.293);
  --muted: oklch(0.153 0.007 268.387);
  --muted-foreground: oklch(0.786 0.006 268.739);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.002 296.293);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 296.312);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.729 0.026 295.678);
  --primary-foreground: oklch(0.186 0.009 295.427);
  --secondary: oklch(0.736 0.019 268.588);
  --secondary-foreground: oklch(0.189 0.007 268.5);
  --accent: oklch(0.737 0.029 316.493);
  --accent-foreground: oklch(0.189 0.01 316.45);
  --destructive: oklch(0.674 0.2 41.731);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.729 0.026 295.678);
  --chart-1: oklch(0.729 0.026 295.678);
  --chart-2: oklch(0.736 0.019 268.588);
  --chart-3: oklch(0.737 0.029 316.493);
  --chart-4: oklch(0.762 0.017 268.617);
  --chart-5: oklch(0.724 0.033 295.49);
}