new 2 for shadcn/ui

new 2 is a shadcn/ui theme built around a vivid pink primary color (#eb0c82) with vivid blue accents (#0098ff). The light mode uses a yellow-tinted background (#f2db7c). Dark mode switches to a vivid yellow primary (#ffc800) on a yellow-tinted background (#0f0d05).

Color palette

TokenLightDark
Background
#f2db7ckhaki
#0f0d05black
Foreground
#1d190bblack
#fdfdfcwhite
Card
#f6f6f6whitesmoke
#131006black
Card foreground
#040301black
#ffffffwhite
Popover
#edededwhitesmoke
#0f0d05black
Popover foreground
#080702black
#fdfdfcwhite
Primary
#eb0c82deeppink
#ffc800gold
Primary foreground
#ffffffwhite
#332800black
Secondary
#07acc7darkturquoise
#161513black
Secondary foreground
#ffffffwhite
#b5b2a6darkgray
Muted
#ffffffwhite
#1f1d14black
Muted foreground
#5e5c55dimgray
#aaa8a1darkgray
Accent
#0098ffdodgerblue
#29271edarkslategray
Accent foreground
#ffffffwhite
#c7c2b3silver
Destructive
#b41111firebrick
#df1111red
Destructive foreground
#fef1f1lavenderblush
#ffffffwhite
Border
#efeeeblinen
#1f1e19black
Input
#efeeeblinen
#1f1e19black
Ring
#ff305ftomato
#ffc800gold

Contrast

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

Light mode
Text on background12.70:1AAA
Text on card19.07:1AAA
Primary button4.27:1AA Large
Secondary button2.71:1Fail
Muted text6.69:1AA
Accent3.02:1AA Large
Destructive6.26:1AA
Dark mode
Text on background19.07:1AAA
Text on card18.95:1AAA
Primary button9.34:1AAA
Secondary button8.56:1AAA
Muted text7.10:1AAA
Accent8.42:1AAA
Destructive4.97:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.891 0.118 96.107);
  --foreground: oklch(0.216 0.026 94.425);
  --muted: oklch(1 0 180);
  --muted-foreground: oklch(0.474 0.011 94.108);
  --popover: oklch(0.946 0 174.289);
  --popover-foreground: oklch(0.128 0.018 98.935);
  --card: oklch(0.973 0 180);
  --card-foreground: oklch(0.101 0.014 98.935);
  --border: oklch(0.949 0.004 93.909);
  --input: oklch(0.949 0.004 93.909);
  --primary: oklch(0.613 0.246 358.497);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.685 0.12 214.283);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.667 0.185 249.164);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.491 0.192 28.271);
  --destructive-foreground: oklch(0.968 0.014 17.402);
  --ring: oklch(0.653 0.237 15.252);
  --chart-1: oklch(0.613 0.246 358.497);
  --chart-2: oklch(0.685 0.12 214.283);
  --chart-3: oklch(0.667 0.185 249.164);
  --chart-4: oklch(0.722 0.126 214.367);
  --chart-5: oklch(0.619 0.249 359.051);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.018 95.999);
  --foreground: oklch(0.993 0.001 93.874);
  --muted: oklch(0.229 0.017 94.442);
  --muted-foreground: oklch(0.732 0.01 94.011);
  --popover: oklch(0.159 0.018 95.999);
  --popover-foreground: oklch(0.993 0.001 93.874);
  --card: oklch(0.175 0.021 95.117);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.233 0.008 94.215);
  --input: oklch(0.233 0.008 94.215);
  --primary: oklch(0.857 0.175 88.369);
  --primary-foreground: oklch(0.281 0.058 92.808);
  --secondary: oklch(0.197 0.006 94.156);
  --secondary-foreground: oklch(0.762 0.016 94.087);
  --accent: oklch(0.271 0.015 94.361);
  --accent-foreground: oklch(0.814 0.022 94.136);
  --destructive: oklch(0.572 0.228 28.645);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.857 0.175 88.369);
  --chart-1: oklch(0.857 0.175 88.369);
  --chart-2: oklch(0.197 0.006 94.156);
  --chart-3: oklch(0.271 0.015 94.361);
  --chart-4: oklch(0.233 0.008 94.186);
  --chart-5: oklch(0.865 0.177 88.019);
}