New for shadcn/ui

New is a shadcn/ui theme built around a deep purple primary color (#1b0d1c) with muted light purple accents (#ebe4ec). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#1b0d1c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040104black
#f9f5faghostwhite
Card
#ffffffwhite
#000000black
Card foreground
#040104black
#f9f5faghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#040104black
#f9f5faghostwhite
Primary
#1b0d1cblack
#1b0d1cblack
Primary foreground
#c78eccplum
#c78eccplum
Secondary
#ebe4eclavender
#2c202ddarkslategray
Secondary foreground
#5b415ddimgray
#c8b4casilver
Muted
#f1eef1whitesmoke
#110e11black
Muted foreground
#454045darkslategray
#bfbabfsilver
Accent
#ebe4eclavender
#2c202ddarkslategray
Accent foreground
#5b415ddimgray
#c8b4casilver
Destructive
#dc1409red
#f63b31tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1b0d1cblack
#1b0d1cblack

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button7.30:1AAA
Secondary button7.14:1AAA
Muted text8.81:1AAA
Accent7.14:1AAA
Destructive5.05:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button7.30:1AAA
Secondary button8.04:1AAA
Muted text10.05:1AAA
Accent8.04:1AAA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.084 0.023 325.108);
  --muted: oklch(0.953 0.005 323.159);
  --muted-foreground: oklch(0.377 0.011 323.268);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.084 0.023 325.108);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.084 0.023 325.108);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.186 0.037 323.955);
  --primary-foreground: oklch(0.724 0.108 323.768);
  --secondary: oklch(0.927 0.014 323.202);
  --secondary-foreground: oklch(0.414 0.057 323.725);
  --accent: oklch(0.927 0.014 323.202);
  --accent-foreground: oklch(0.414 0.057 323.725);
  --destructive: oklch(0.567 0.226 29.496);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.186 0.037 323.955);
  --chart-1: oklch(0.186 0.037 323.955);
  --chart-2: oklch(0.927 0.014 323.202);
  --chart-3: oklch(0.927 0.014 323.202);
  --chart-4: oklch(0.951 0.009 323.178);
  --chart-5: oklch(0.185 0.04 324.004);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.007 323.169);
  --muted: oklch(0.168 0.008 323.345);
  --muted-foreground: oklch(0.795 0.009 323.187);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.007 323.169);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.975 0.007 323.169);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.186 0.037 323.955);
  --primary-foreground: oklch(0.724 0.108 323.768);
  --secondary: oklch(0.262 0.029 323.623);
  --secondary-foreground: oklch(0.795 0.037 323.347);
  --accent: oklch(0.262 0.029 323.623);
  --accent-foreground: oklch(0.795 0.037 323.347);
  --destructive: oklch(0.64 0.224 28.404);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.186 0.037 323.955);
  --chart-1: oklch(0.186 0.037 323.955);
  --chart-2: oklch(0.262 0.029 323.623);
  --chart-3: oklch(0.262 0.029 323.623);
  --chart-4: oklch(0.292 0.034 323.644);
  --chart-5: oklch(0.185 0.04 324.004);
}