Test2 for shadcn/ui

Test2 is a shadcn/ui theme built around a vivid orange primary color (#ff7e45) with vivid light orange accents (#ffb088). The light mode uses a neutral background (#fef9f3). Dark mode switches to a muted deep violet primary (#4a3d57) on a violet-tinted background (#08050a).

Color palette

TokenLightDark
Background
#fef9f3floralwhite
#08050ablack
Foreground
#4a3d3ddarkslategray
#f7f6f9whitesmoke
Card
#fef9f3floralwhite
#08050ablack
Card foreground
#4a3d3ddarkslategray
#f7f6f9whitesmoke
Popover
#fef9f3floralwhite
#08050ablack
Popover foreground
#4a3d3ddarkslategray
#f7f6f9whitesmoke
Primary
#ff7e45coral
#4a3d57darkslategray
Primary foreground
#ffffffwhite
#e3dee8gainsboro
Secondary
#d97646peru
#262527darkslategray
Secondary foreground
#ffffffwhite
#bfbec1silver
Muted
#ffe9d9antiquewhite
#0f0a15black
Muted foreground
#4a3d3ddarkslategray
#b3b1b4darkgray
Accent
#ffb088lightsalmon
#262527darkslategray
Accent foreground
#4a3d3ddarkslategray
#bfbec1silver
Destructive
#e11d48crimson
#d34d17chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#ddc3afsilver
#26212bdarkslategray
Input
#ddc3afsilver
#26212bdarkslategray
Ring
#ff7e45coral
#4a3d57darkslategray

Contrast

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

Light mode
Text on background9.90:1AAA
Text on card9.90:1AAA
Primary button2.52:1Fail
Secondary button3.16:1AA Large
Muted text8.83:1AAA
Accent5.83:1AA
Destructive4.69:1AA
Dark mode
Text on background18.80:1AAA
Text on card18.80:1AAA
Primary button7.54:1AAA
Secondary button8.20:1AAA
Muted text9.17:1AAA
Accent8.20:1AAA
Destructive4.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.01 72.669);
  --foreground: oklch(0.374 0.018 17.997);
  --muted: oklch(0.947 0.032 58.39);
  --muted-foreground: oklch(0.374 0.018 17.997);
  --popover: oklch(0.984 0.01 72.669);
  --popover-foreground: oklch(0.374 0.018 17.997);
  --card: oklch(0.984 0.01 72.669);
  --card-foreground: oklch(0.374 0.018 17.997);
  --border: oklch(0.834 0.04 59.777);
  --input: oklch(0.834 0.04 59.777);
  --primary: oklch(0.732 0.172 42.942);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.668 0.139 45.301);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.824 0.107 47.638);
  --accent-foreground: oklch(0.374 0.018 17.997);
  --destructive: oklch(0.586 0.222 17.589);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.732 0.172 42.942);
  --chart-1: oklch(0.385 0.045 307.891);
  --chart-2: oklch(0.883 0.003 309.086);
  --chart-3: oklch(0.883 0.003 309.086);
  --chart-4: oklch(0.906 0.003 309.095);
  --chart-5: oklch(0.382 0.053 307.65);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.014 309.954);
  --foreground: oklch(0.975 0.004 309.081);
  --muted: oklch(0.158 0.023 307.555);
  --muted-foreground: oklch(0.763 0.005 309.062);
  --popover: oklch(0.124 0.014 309.954);
  --popover-foreground: oklch(0.975 0.004 309.081);
  --card: oklch(0.124 0.014 309.954);
  --card-foreground: oklch(0.975 0.004 309.081);
  --border: oklch(0.259 0.02 308.326);
  --input: oklch(0.259 0.02 308.326);
  --primary: oklch(0.385 0.045 307.891);
  --primary-foreground: oklch(0.908 0.014 308.965);
  --secondary: oklch(0.268 0.003 309.007);
  --secondary-foreground: oklch(0.803 0.004 309.076);
  --accent: oklch(0.268 0.003 309.007);
  --accent-foreground: oklch(0.803 0.004 309.076);
  --destructive: oklch(0.596 0.18 38.901);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.385 0.045 307.891);
  --chart-1: oklch(0.385 0.045 307.891);
  --chart-2: oklch(0.268 0.003 309.007);
  --chart-3: oklch(0.268 0.003 309.007);
  --chart-4: oklch(0.299 0.004 309.002);
  --chart-5: oklch(0.382 0.053 307.65);
}