Registration for shadcn/ui

Registration is a shadcn/ui theme built around a near-black primary color (#030303) with near-black accents (#030303). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#030303) on a violet-tinted background (#09070d).

Color palette

TokenLightDark
Background
#ffffffwhite
#09070dblack
Foreground
#000000black
#fcfcfdwhite
Card
#fcfcfcsnow
#0b0911black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#09070dblack
Popover foreground
#000000black
#fcfcfdwhite
Primary
#030303black
#030303black
Primary foreground
#9b9b9ddarkgray
#9b9b9ddarkgray
Secondary
#030303black
#030303black
Secondary foreground
#9b9b9ddarkgray
#9b9b9ddarkgray
Muted
#f0f1f4whitesmoke
#0b0c0fblack
Muted foreground
#4d5366dimgray
#99a0b2darkgray
Accent
#030303black
#030303black
Accent foreground
#9c9b9ddarkgray
#9c9b9ddarkgray
Destructive
#701100maroon
#ff330forangered
Destructive foreground
#ffb1a3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#030303black
#030303black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.45:1AAA
Secondary button7.45:1AAA
Muted text6.78:1AA
Accent7.47:1AAA
Destructive6.81:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.82:1AAA
Primary button7.45:1AAA
Secondary button7.45:1AAA
Muted text7.48:1AAA
Accent7.47:1AAA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.959 0.004 271.368);
  --muted-foreground: oklch(0.444 0.032 270.603);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.092 0 297.82);
  --primary-foreground: oklch(0.689 0.003 297.749);
  --secondary: oklch(0.092 0 271.304);
  --secondary-foreground: oklch(0.69 0.002 271.379);
  --accent: oklch(0.092 0 317.795);
  --accent-foreground: oklch(0.69 0.003 317.755);
  --destructive: oklch(0.353 0.131 32.71);
  --destructive-foreground: oklch(0.831 0.094 30.291);
  --ring: oklch(0.092 0 297.82);
  --chart-1: oklch(0.092 0 297.82);
  --chart-2: oklch(0.092 0 271.304);
  --chart-3: oklch(0.092 0 317.795);
  --chart-4: oklch(0.146 0 271.304);
  --chart-5: oklch(0.091 0.001 297.807);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.015 297.005);
  --foreground: oklch(0.991 0.002 297.787);
  --muted: oklch(0.153 0.007 270.947);
  --muted-foreground: oklch(0.705 0.028 270.994);
  --popover: oklch(0.134 0.015 297.005);
  --popover-foreground: oklch(0.991 0.002 297.787);
  --card: oklch(0.145 0.018 295.803);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.092 0 297.82);
  --primary-foreground: oklch(0.689 0.003 297.749);
  --secondary: oklch(0.092 0 271.304);
  --secondary-foreground: oklch(0.69 0.002 271.379);
  --accent: oklch(0.092 0 317.795);
  --accent-foreground: oklch(0.69 0.003 317.755);
  --destructive: oklch(0.647 0.24 31.769);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.092 0 297.82);
  --chart-1: oklch(0.092 0 297.82);
  --chart-2: oklch(0.092 0 271.304);
  --chart-3: oklch(0.092 0 317.795);
  --chart-4: oklch(0.146 0 271.304);
  --chart-5: oklch(0.091 0.001 297.807);
}