Turnover for shadcn/ui

Turnover is a shadcn/ui theme built around a vivid light red primary color (#feb3a4) with vivid light indigo accents (#b3a4fe). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light red primary (#feb3a4) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#ffffffwhite
#040201black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#070403black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#070403black
Popover foreground
#000000black
#ffffffwhite
Primary
#feb3a4lightpink
#feb3a4lightpink
Primary foreground
#6f1301maroon
#6f1301maroon
Secondary
#a4feb3palegreen
#a4feb3palegreen
Secondary foreground
#000a02black
#000a02black
Muted
#eff1efwhitesmoke
#0e100fblack
Muted foreground
#506d55dimgray
#92af97darkseagreen
Accent
#b3a4felightsteelblue
#b3a4felightsteelblue
Accent foreground
#13016fmidnightblue
#13016fmidnightblue
Destructive
#bc4715sienna
#d35017chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#feb3a4lightpink
#feb3a4lightpink

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.90:1AA
Secondary button16.68:1AAA
Muted text5.04:1AA
Accent7.66:1AAA
Destructive5.17:1AA
Dark mode
Text on background20.72:1AAA
Text on card20.45:1AAA
Primary button6.90:1AA
Secondary button16.68:1AAA
Muted text7.99:1AAA
Accent7.66:1AAA
Destructive4.26:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.955 0.003 150.781);
  --muted-foreground: oklch(0.504 0.05 149.365);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.834 0.091 31.651);
  --primary-foreground: oklch(0.353 0.128 33.187);
  --secondary: oklch(0.922 0.134 148.587);
  --secondary-foreground: oklch(0.127 0.035 149.085);
  --accent: oklch(0.766 0.127 290.717);
  --accent-foreground: oklch(0.256 0.163 272.258);
  --destructive: oklch(0.552 0.162 40.13);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.834 0.091 31.651);
  --chart-1: oklch(0.834 0.091 31.651);
  --chart-2: oklch(0.922 0.134 148.587);
  --chart-3: oklch(0.766 0.127 290.717);
  --chart-4: oklch(0.933 0.112 149.013);
  --chart-5: oklch(0.834 0.094 31.681);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.009 35.405);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.171 0.004 150.472);
  --muted-foreground: oklch(0.725 0.046 149.917);
  --popover: oklch(0.111 0.011 35.405);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.111 0.011 35.405);
  --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.834 0.091 31.651);
  --primary-foreground: oklch(0.353 0.128 33.187);
  --secondary: oklch(0.922 0.134 148.587);
  --secondary-foreground: oklch(0.127 0.035 149.085);
  --accent: oklch(0.766 0.127 290.717);
  --accent-foreground: oklch(0.256 0.163 272.258);
  --destructive: oklch(0.6 0.177 39.986);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.834 0.091 31.651);
  --chart-1: oklch(0.834 0.091 31.651);
  --chart-2: oklch(0.922 0.134 148.587);
  --chart-3: oklch(0.766 0.127 290.717);
  --chart-4: oklch(0.933 0.112 149.013);
  --chart-5: oklch(0.834 0.094 31.681);
}