Performance for shadcn/ui

Performance is a shadcn/ui theme built around a red primary color (#a0412c) with yellow accents (#a07b2c). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the red primary (#a0412c) on a red-tinted background (#0d0807).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#0d0807black
Foreground
#080302black
#fafaf9snow
Card
#fcf9f8snow
#110a09black
Card foreground
#040201black
#fdfcfcsnow
Popover
#fdfcfcsnow
#0d0807black
Popover foreground
#080302black
#fafaf9snow
Primary
#a0412csienna
#a0412csienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a02c51brown
#a02c51brown
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eadce0gainsboro
#23151ablack
Muted foreground
#6d5059dimgray
#af929brosybrown
Accent
#a07b2csienna
#a07b2csienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9e0505darkred
#f82a2acrimson
Destructive foreground
#fed7d7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a0412csienna
#a0412csienna

Contrast

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

Light mode
Text on background20.01:1AAA
Text on card19.72:1AAA
Primary button6.37:1AA
Secondary button7.06:1AAA
Muted text5.38:1AA
Accent3.90:1AA Large
Destructive6.40:1AA
Dark mode
Text on background19.03:1AAA
Text on card19.13:1AAA
Primary button6.37:1AA
Secondary button7.06:1AAA
Muted text6.19:1AA
Accent3.90:1AA Large
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 32.661);
  --foreground: oklch(0.11 0.015 39.44);
  --muted: oklch(0.907 0.016 356.113);
  --muted-foreground: oklch(0.465 0.04 357.993);
  --popover: oklch(0.992 0.002 32.661);
  --popover-foreground: oklch(0.11 0.015 39.44);
  --card: oklch(0.983 0.003 32.661);
  --card-foreground: oklch(0.087 0.012 39.44);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.5 0.131 34.135);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.482 0.154 6.047);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.605 0.105 83.154);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.442 0.178 28.886);
  --destructive-foreground: oklch(0.913 0.043 17.966);
  --ring: oklch(0.5 0.131 34.135);
  --chart-1: oklch(0.5 0.131 34.135);
  --chart-2: oklch(0.482 0.154 6.047);
  --chart-3: oklch(0.605 0.105 83.154);
  --chart-4: oklch(0.508 0.163 6.154);
  --chart-5: oklch(0.502 0.138 34.152);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.01 34.992);
  --foreground: oklch(0.984 0.001 32.661);
  --muted: oklch(0.217 0.023 358.55);
  --muted-foreground: oklch(0.69 0.036 357.074);
  --popover: oklch(0.142 0.01 34.992);
  --popover-foreground: oklch(0.984 0.001 32.661);
  --card: oklch(0.154 0.012 33.42);
  --card-foreground: oklch(0.992 0.001 32.661);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.5 0.131 34.135);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.482 0.154 6.047);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.605 0.105 83.154);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.631 0.237 27.46);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.5 0.131 34.135);
  --chart-1: oklch(0.5 0.131 34.135);
  --chart-2: oklch(0.482 0.154 6.047);
  --chart-3: oklch(0.605 0.105 83.154);
  --chart-4: oklch(0.508 0.163 6.154);
  --chart-5: oklch(0.502 0.138 34.152);
}