Previous for shadcn/ui

Previous is a shadcn/ui theme built around an orange primary color (#c29d84) with blue accents (#84a9c2). The light mode uses a neutral background (#fefcfb). Dark mode keeps the orange primary (#c29d84) on a neutral background (#070503).

Color palette

TokenLightDark
Background
#fefcfbsnow
#070503black
Foreground
#0c0703black
#fdfcfcsnow
Card
#fdf9f7snow
#0a0705black
Card foreground
#080402black
#ffffffwhite
Popover
#fdf9f7snow
#0a0705black
Popover foreground
#080402black
#ffffffwhite
Primary
#c29d84rosybrown
#c29d84rosybrown
Primary foreground
#0e0a07black
#0e0a07black
Secondary
#84a9c2darkgray
#84a9c2darkgray
Secondary foreground
#070b0eblack
#070b0eblack
Muted
#d9e5edlavender
#121e26black
Muted foreground
#4f585fdimgray
#a0aab0darkgray
Accent
#84a9c2darkgray
#84a9c2darkgray
Accent foreground
#070b0eblack
#070b0eblack
Destructive
#9c330dsaddlebrown
#ee5f2bchocolate
Destructive foreground
#fce6demistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c29d84rosybrown
#c29d84rosybrown

Contrast

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

Light mode
Text on background19.61:1AAA
Text on card19.54:1AAA
Primary button7.94:1AAA
Secondary button7.96:1AAA
Muted text5.65:1AA
Accent7.96:1AAA
Destructive6.07:1AA
Dark mode
Text on background19.89:1AAA
Text on card20.06:1AAA
Primary button7.94:1AAA
Secondary button7.96:1AAA
Muted text7.15:1AAA
Accent7.96:1AAA
Destructive6.28:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 56.398);
  --foreground: oklch(0.133 0.016 64.737);
  --muted: oklch(0.915 0.018 236.715);
  --muted-foreground: oklch(0.455 0.016 236.95);
  --popover: oklch(0.985 0.005 56.359);
  --popover-foreground: oklch(0.116 0.013 65.344);
  --card: oklch(0.985 0.005 56.359);
  --card-foreground: oklch(0.116 0.013 65.344);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.724 0.057 55.324);
  --primary-foreground: oklch(0.147 0.01 58.988);
  --secondary: oklch(0.717 0.055 237.717);
  --secondary-foreground: oklch(0.145 0.01 235.123);
  --accent: oklch(0.717 0.055 237.717);
  --accent-foreground: oklch(0.145 0.01 235.123);
  --destructive: oklch(0.471 0.147 37.687);
  --destructive-foreground: oklch(0.941 0.027 41.11);
  --ring: oklch(0.724 0.057 55.324);
  --chart-1: oklch(0.724 0.057 55.324);
  --chart-2: oklch(0.717 0.055 237.717);
  --chart-3: oklch(0.717 0.055 237.717);
  --chart-4: oklch(0.741 0.05 237.538);
  --chart-5: oklch(0.725 0.062 55.216);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.008 61.632);
  --foreground: oklch(0.992 0.001 56.415);
  --muted: oklch(0.228 0.024 238.373);
  --muted-foreground: oklch(0.732 0.014 236.713);
  --popover: oklch(0.133 0.009 61.618);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.133 0.009 61.618);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.724 0.057 55.324);
  --primary-foreground: oklch(0.147 0.01 58.988);
  --secondary: oklch(0.717 0.055 237.717);
  --secondary-foreground: oklch(0.145 0.01 235.123);
  --accent: oklch(0.717 0.055 237.717);
  --accent-foreground: oklch(0.145 0.01 235.123);
  --destructive: oklch(0.662 0.188 38.867);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.724 0.057 55.324);
  --chart-1: oklch(0.724 0.057 55.324);
  --chart-2: oklch(0.717 0.055 237.717);
  --chart-3: oklch(0.717 0.055 237.717);
  --chart-4: oklch(0.741 0.05 237.538);
  --chart-5: oklch(0.725 0.062 55.216);
}