Spiffy for shadcn/ui

Spiffy is a shadcn/ui theme built around a vivid light orange primary color (#fee3c8) with vivid light violet accents (#e3c8fe). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the vivid light orange primary (#fee3c8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfaf8snow
#000000black
Foreground
#0d0802black
#f9f7f6whitesmoke
Card
#fcfaf8snow
#000000black
Card foreground
#0d0802black
#f9f7f6whitesmoke
Popover
#fcfaf8snow
#000000black
Popover foreground
#0d0802black
#f9f7f6whitesmoke
Primary
#fee3c8bisque
#fee3c8bisque
Primary foreground
#2d1701black
#2d1701black
Secondary
#c8fee3paleturquoise
#c8fee3paleturquoise
Secondary foreground
#012d17black
#012d17black
Muted
#e6f0eblavender
#0f1a14black
Muted foreground
#4e5a54darkslategray
#a5b1abdarkgray
Accent
#e3c8felavender
#e3c8felavender
Accent foreground
#4a0391indigo
#4a0391indigo
Destructive
#901909darkred
#f2432ctomato
Destructive foreground
#fcd4cfbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fee3c8bisque
#fee3c8bisque

Contrast

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

Light mode
Text on background19.13:1AAA
Text on card19.13:1AAA
Primary button13.79:1AAA
Secondary button13.48:1AAA
Muted text6.16:1AA
Accent8.14:1AAA
Destructive6.64:1AA
Dark mode
Text on background19.66:1AAA
Text on card19.66:1AAA
Primary button13.79:1AAA
Secondary button13.48:1AAA
Muted text8.06:1AAA
Accent8.14:1AAA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 67.79);
  --foreground: oklch(0.138 0.02 77.139);
  --muted: oklch(0.945 0.013 164.785);
  --muted-foreground: oklch(0.456 0.018 164.094);
  --popover: oklch(0.986 0.003 67.79);
  --popover-foreground: oklch(0.138 0.02 77.139);
  --card: oklch(0.986 0.003 67.79);
  --card-foreground: oklch(0.138 0.02 77.139);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.931 0.046 67.206);
  --primary-foreground: oklch(0.23 0.05 63.996);
  --secondary: oklch(0.952 0.066 163.186);
  --secondary-foreground: oklch(0.262 0.062 155.961);
  --accent: oklch(0.873 0.078 307.462);
  --accent-foreground: oklch(0.355 0.191 295.99);
  --destructive: oklch(0.423 0.156 31.003);
  --destructive-foreground: oklch(0.903 0.045 26.854);
  --ring: oklch(0.931 0.046 67.206);
  --chart-1: oklch(0.931 0.046 67.206);
  --chart-2: oklch(0.952 0.066 163.186);
  --chart-3: oklch(0.873 0.078 307.462);
  --chart-4: oklch(0.965 0.048 163.765);
  --chart-5: oklch(0.931 0.048 67.183);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.978 0.002 67.795);
  --muted: oklch(0.204 0.018 162.548);
  --muted-foreground: oklch(0.749 0.016 164.587);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.978 0.002 67.795);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.978 0.002 67.795);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.931 0.046 67.206);
  --primary-foreground: oklch(0.23 0.05 63.996);
  --secondary: oklch(0.952 0.066 163.186);
  --secondary-foreground: oklch(0.262 0.062 155.961);
  --accent: oklch(0.873 0.078 307.462);
  --accent-foreground: oklch(0.355 0.191 295.99);
  --destructive: oklch(0.638 0.214 30.952);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.931 0.046 67.206);
  --chart-1: oklch(0.931 0.046 67.206);
  --chart-2: oklch(0.952 0.066 163.186);
  --chart-3: oklch(0.873 0.078 307.462);
  --chart-4: oklch(0.965 0.048 163.765);
  --chart-5: oklch(0.931 0.048 67.183);
}