Expert for shadcn/ui

Expert is a shadcn/ui theme built around a deep orange primary color (#0e0907) with muted light orange accents (#ded7d3). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#0e0907) on an orange-tinted background (#0c0603).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0603black
Foreground
#130b06black
#faf7f5whitesmoke
Card
#ffffffwhite
#0c0603black
Card foreground
#130b06black
#faf7f5whitesmoke
Popover
#ffffffwhite
#0c0603black
Popover foreground
#130b06black
#faf7f5whitesmoke
Primary
#0e0907black
#0e0907black
Primary foreground
#c39883rosybrown
#c39883rosybrown
Secondary
#eceae9linen
#1c1917black
Secondary foreground
#57504cdarkolivegreen
#bab0abdarkgray
Muted
#f1efefwhitesmoke
#100f0eblack
Muted foreground
#514b48darkslategray
#b7b1aedarkgray
Accent
#ded7d3gainsboro
#2f2722darkslategray
Accent foreground
#493d37darkslategray
#ccbfb8silver
Destructive
#ac440csaddlebrown
#f17532tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e0907black
#0e0907black

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button7.67:1AAA
Secondary button6.59:1AA
Muted text7.49:1AAA
Accent7.36:1AAA
Destructive5.87:1AA
Dark mode
Text on background18.85:1AAA
Text on card18.85:1AAA
Primary button7.67:1AAA
Secondary button8.25:1AAA
Muted text9.03:1AAA
Accent8.18:1AAA
Destructive7.30:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.158 0.018 50.241);
  --muted: oklch(0.954 0.002 48.727);
  --muted-foreground: oklch(0.418 0.01 48.48);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.158 0.018 50.241);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.158 0.018 50.241);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.145 0.01 51.559);
  --primary-foreground: oklch(0.716 0.06 47.864);
  --secondary: oklch(0.939 0.002 48.719);
  --secondary-foreground: oklch(0.436 0.012 48.434);
  --accent: oklch(0.884 0.009 48.623);
  --accent-foreground: oklch(0.37 0.019 48.171);
  --destructive: oklch(0.52 0.149 42.804);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.145 0.01 51.559);
  --chart-1: oklch(0.145 0.01 51.559);
  --chart-2: oklch(0.939 0.002 48.719);
  --chart-3: oklch(0.884 0.009 48.623);
  --chart-4: oklch(0.962 0.002 48.732);
  --chart-5: oklch(0.145 0.011 51.875);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.016 56.977);
  --foreground: oklch(0.977 0.004 48.7);
  --muted: oklch(0.17 0.003 48.552);
  --muted-foreground: oklch(0.764 0.008 48.62);
  --popover: oklch(0.131 0.016 56.977);
  --popover-foreground: oklch(0.977 0.004 48.7);
  --card: oklch(0.131 0.016 56.977);
  --card-foreground: oklch(0.977 0.004 48.7);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.145 0.01 51.559);
  --primary-foreground: oklch(0.716 0.06 47.864);
  --secondary: oklch(0.215 0.006 48.41);
  --secondary-foreground: oklch(0.764 0.014 48.536);
  --accent: oklch(0.28 0.015 48.151);
  --accent-foreground: oklch(0.812 0.017 48.498);
  --destructive: oklch(0.697 0.171 45.667);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.145 0.01 51.559);
  --chart-1: oklch(0.145 0.01 51.559);
  --chart-2: oklch(0.215 0.006 48.41);
  --chart-3: oklch(0.28 0.015 48.151);
  --chart-4: oklch(0.248 0.008 48.382);
  --chart-5: oklch(0.145 0.011 51.875);
}