Disloyal for shadcn/ui

Disloyal is a shadcn/ui theme built around a red primary color (#ea7b86) with muted red accents (#cdb2b5). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the red primary (#ea7b86) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fcf8f8snow
#040102black
Foreground
#0c0304black
#f9f5f6whitesmoke
Card
#faf5f5whitesmoke
#070303black
Card foreground
#080203black
#fbf9f9snow
Popover
#faf5f5whitesmoke
#070303black
Popover foreground
#080203black
#fbf9f9snow
Primary
#ea7b86lightcoral
#ea7b86lightcoral
Primary foreground
#2c070bblack
#2c070bblack
Secondary
#ded3d4lightgrey
#302c2cdarkslategray
Secondary foreground
#493638darkslategray
#c9c5c5silver
Muted
#e4ddddgainsboro
#221b1cblack
Muted foreground
#504949darkslategray
#b6afafdarkgray
Accent
#cdb2b5silver
#443638darkslategray
Accent foreground
#2e1e20black
#dbd2d3lightgrey
Destructive
#b32914firebrick
#e9513atomato
Destructive foreground
#fefbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ea7b86lightcoral
#ea7b86lightcoral

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.02:1AAA
Primary button6.71:1AA
Secondary button7.70:1AAA
Muted text6.55:1AA
Accent8.01:1AAA
Destructive6.28:1AA
Dark mode
Text on background19.19:1AAA
Text on card19.56:1AAA
Primary button6.71:1AA
Secondary button8.06:1AAA
Muted text7.84:1AAA
Accent7.70:1AAA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 10.166);
  --foreground: oklch(0.119 0.021 11.693);
  --muted: oklch(0.903 0.008 10.281);
  --muted-foreground: oklch(0.412 0.01 10.65);
  --popover: oklch(0.973 0.006 10.213);
  --popover-foreground: oklch(0.104 0.018 11.569);
  --card: oklch(0.973 0.006 10.213);
  --card-foreground: oklch(0.104 0.018 11.569);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.71 0.138 14.92);
  --primary-foreground: oklch(0.2 0.061 18.671);
  --secondary: oklch(0.876 0.013 10.409);
  --secondary-foreground: oklch(0.356 0.028 11.859);
  --accent: oklch(0.787 0.031 10.977);
  --accent-foreground: oklch(0.257 0.025 12.363);
  --destructive: oklch(0.503 0.177 31.626);
  --destructive-foreground: oklch(0.991 0.004 27.952);
  --ring: oklch(0.71 0.138 14.92);
  --chart-1: oklch(0.71 0.138 14.92);
  --chart-2: oklch(0.876 0.013 10.409);
  --chart-3: oklch(0.787 0.031 10.977);
  --chart-4: oklch(0.901 0.01 10.333);
  --chart-5: oklch(0.71 0.143 15.168);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.011 11.114);
  --foreground: oklch(0.975 0.004 10.174);
  --muted: oklch(0.231 0.012 11.229);
  --muted-foreground: oklch(0.76 0.009 10.342);
  --popover: oklch(0.107 0.014 11.114);
  --popover-foreground: oklch(0.983 0.003 10.141);
  --card: oklch(0.107 0.014 11.114);
  --card-foreground: oklch(0.983 0.003 10.141);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.71 0.138 14.92);
  --primary-foreground: oklch(0.2 0.061 18.671);
  --secondary: oklch(0.297 0.005 10.488);
  --secondary-foreground: oklch(0.826 0.005 10.216);
  --accent: oklch(0.35 0.019 11.338);
  --accent-foreground: oklch(0.87 0.01 10.339);
  --destructive: oklch(0.639 0.192 31.434);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.71 0.138 14.92);
  --chart-1: oklch(0.71 0.138 14.92);
  --chart-2: oklch(0.297 0.005 10.488);
  --chart-3: oklch(0.35 0.019 11.338);
  --chart-4: oklch(0.327 0.006 10.503);
  --chart-5: oklch(0.71 0.143 15.168);
}