shift for shadcn/ui

shift is a shadcn/ui theme built around a deep orange primary color (#37200c) with deep blue accents (#0c2337). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the deep orange primary (#37200c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfaf8snow
#000000black
Foreground
#090502black
#ffffffwhite
Card
#faf7f5whitesmoke
#030303black
Card foreground
#040201black
#ffffffwhite
Popover
#fcfaf8snow
#000000black
Popover foreground
#090502black
#ffffffwhite
Primary
#37200cblack
#37200cblack
Primary foreground
#e7b78dburlywood
#e7b78dburlywood
Secondary
#0c2337midnightblue
#0c2337midnightblue
Secondary foreground
#8dbde7skyblue
#8dbde7skyblue
Muted
#dae4ecgainsboro
#131d25black
Muted foreground
#424d57darkslategray
#a8b3bddarkgray
Accent
#0c2337midnightblue
#0c2337midnightblue
Accent foreground
#8dbde7skyblue
#8dbde7skyblue
Destructive
#782707saddlebrown
#f2591cchocolate
Destructive foreground
#fbcab7peachpuff
#000000black
Border
#e9e8e7linen
#252422black
Input
#e9e8e7linen
#252422black
Ring
#37200cblack
#37200cblack

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.42:1AAA
Primary button8.43:1AAA
Secondary button8.09:1AAA
Muted text6.68:1AA
Accent8.09:1AAA
Destructive6.77:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.43:1AAA
Secondary button8.09:1AAA
Muted text8.02:1AAA
Accent8.09:1AAA
Destructive6.21:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 64.05);
  --foreground: oklch(0.119 0.016 73.98);
  --muted: oklch(0.913 0.015 244.292);
  --muted-foreground: oklch(0.415 0.022 244.764);
  --popover: oklch(0.985 0.003 64.05);
  --popover-foreground: oklch(0.119 0.016 73.98);
  --card: oklch(0.978 0.005 64.029);
  --card-foreground: oklch(0.094 0.012 73.98);
  --border: oklch(0.932 0.002 64.063);
  --input: oklch(0.932 0.002 64.063);
  --primary: oklch(0.268 0.048 59.662);
  --primary-foreground: oklch(0.813 0.078 62.563);
  --secondary: oklch(0.247 0.048 247.589);
  --secondary-foreground: oklch(0.78 0.078 245.445);
  --accent: oklch(0.247 0.048 247.589);
  --accent-foreground: oklch(0.78 0.078 245.445);
  --destructive: oklch(0.393 0.12 38.751);
  --destructive-foreground: oklch(0.877 0.062 42.654);
  --ring: oklch(0.268 0.048 59.662);
  --chart-1: oklch(0.268 0.048 59.662);
  --chart-2: oklch(0.247 0.048 247.589);
  --chart-3: oklch(0.247 0.048 247.589);
  --chart-4: oklch(0.28 0.057 247.905);
  --chart-5: oklch(0.269 0.049 59.303);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.224 0.021 245.327);
  --muted-foreground: oklch(0.762 0.019 244.402);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.26 0.004 63.883);
  --input: oklch(0.26 0.004 63.883);
  --primary: oklch(0.268 0.048 59.662);
  --primary-foreground: oklch(0.813 0.078 62.563);
  --secondary: oklch(0.247 0.048 247.589);
  --secondary-foreground: oklch(0.78 0.078 245.445);
  --accent: oklch(0.247 0.048 247.589);
  --accent-foreground: oklch(0.78 0.078 245.445);
  --destructive: oklch(0.66 0.199 38.894);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.268 0.048 59.662);
  --chart-1: oklch(0.268 0.048 59.662);
  --chart-2: oklch(0.247 0.048 247.589);
  --chart-3: oklch(0.247 0.048 247.589);
  --chart-4: oklch(0.28 0.057 247.905);
  --chart-5: oklch(0.269 0.049 59.303);
}