Orange - 2 for shadcn/ui

Orange - 2 is a shadcn/ui theme built around a vivid red primary color (#f97757) with muted light blue accents (#d3d8df). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid light red primary (#fb9f89) on an indigo-tinted background (#1c1c24).

Color palette

TokenLightDark
Background
#ffffffwhite
#1c1c24black
Foreground
#1c1c24black
#f8f8f1whitesmoke
Card
#f7f7f7whitesmoke
#1c2126black
Card foreground
#16161dblack
#ffffffwhite
Popover
#fafafasnow
#1a1e23black
Popover foreground
#16161dblack
#ffffffwhite
Primary
#f97757coral
#fb9f89lightsalmon
Primary foreground
#ffffffwhite
#1c1c24black
Secondary
#dee0e3gainsboro
#3c4249darkslategray
Secondary foreground
#1c1c24black
#ffffffwhite
Muted
#e2e5e9gainsboro
#2b3036darkslategray
Muted foreground
#434c56darkslategray
#a6afb9darkgray
Accent
#d3d8dfgainsboro
#404c59darkslategray
Accent foreground
#2b323bdarkslategray
#e1e5ealavender
Destructive
#e62e1aorangered
#e62e1aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#c9cccflightgrey
#303336darkslategray
Input
#d6d9dbgainsboro
#373a3edarkslategray
Ring
#e74d3ctomato
#e74d3ctomato

Contrast

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

Light mode
Text on background16.92:1AAA
Text on card16.85:1AAA
Primary button2.69:1Fail
Secondary button12.79:1AAA
Muted text6.92:1AA
Accent9.05:1AAA
Destructive4.40:1AA Large
Dark mode
Text on background15.86:1AAA
Text on card16.24:1AAA
Primary button8.39:1AAA
Secondary button10.20:1AAA
Muted text5.98:1AA
Accent6.94:1AA
Destructive4.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.23 0.015 285.129);
  --muted: oklch(0.922 0.005 251.498);
  --muted-foreground: oklch(0.412 0.02 251.802);
  --popover: oklch(0.985 0 180);
  --popover-foreground: oklch(0.205 0.013 285.232);
  --card: oklch(0.977 0 180);
  --card-foreground: oklch(0.205 0.013 285.232);
  --border: oklch(0.843 0.006 251.504);
  --input: oklch(0.883 0.004 251.488);
  --primary: oklch(0.716 0.167 34.697);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.906 0.005 253.832);
  --secondary-foreground: oklch(0.23 0.015 285.129);
  --accent: oklch(0.881 0.011 251.55);
  --accent-foreground: oklch(0.315 0.019 251.879);
  --destructive: oklch(0.599 0.22 30.456);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.631 0.193 29.743);
  --chart-1: oklch(0.631 0.193 29.743);
  --chart-2: oklch(0.527 0.083 27.018);
  --chart-3: oklch(0.673 0.031 251.791);
  --chart-4: oklch(0.485 0.076 26.981);
  --chart-5: oklch(0.6 0.222 30.52);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.23 0.015 285.129);
  --foreground: oklch(0.979 0.01 106.577);
  --muted: oklch(0.307 0.014 251.776);
  --muted-foreground: oklch(0.751 0.018 251.632);
  --popover: oklch(0.234 0.012 251.829);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.244 0.013 251.838);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.319 0.007 251.622);
  --input: oklch(0.348 0.008 251.627);
  --primary: oklch(0.79 0.115 34.179);
  --primary-foreground: oklch(0.23 0.015 285.129);
  --secondary: oklch(0.375 0.014 254.002);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.41 0.026 251.91);
  --accent-foreground: oklch(0.921 0.007 251.514);
  --destructive: oklch(0.598 0.22 30.517);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.631 0.193 29.743);
  --chart-1: oklch(0.631 0.193 29.743);
  --chart-2: oklch(0.786 0.041 25.494);
  --chart-3: oklch(0.41 0.026 251.91);
  --chart-4: oklch(0.812 0.035 25.402);
  --chart-5: oklch(0.634 0.199 29.895);
}