Disloyal for shadcn/ui

Disloyal is a shadcn/ui theme built around a muted deep orange primary color (#1d1411) with muted deep yellow accents (#1d1a11). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep orange primary (#1d1411) on a neutral background (#080402).

Color palette

TokenLightDark
Background
#ffffffwhite
#080402black
Foreground
#150804black
#faf6f5whitesmoke
Card
#fcfcfcsnow
#0c0603black
Card foreground
#110703black
#fcf9f8snow
Popover
#ffffffwhite
#080402black
Popover foreground
#150804black
#faf6f5whitesmoke
Primary
#1d1411black
#1d1411black
Primary foreground
#c6a59atan
#c6a59atan
Secondary
#1d1114black
#1d1114black
Secondary foreground
#c69aa5rosybrown
#c69aa5rosybrown
Muted
#e6dbddgainsboro
#24191cblack
Muted foreground
#5f5356dimgray
#aca0a3darkgray
Accent
#1d1a11black
#1d1a11black
Accent foreground
#c6bb9atan
#c6bb9atan
Destructive
#6c1a09maroon
#ef6043tomato
Destructive foreground
#f8bbaflightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d1411black
#1d1411black

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.46:1AAA
Primary button7.97:1AAA
Secondary button7.51:1AAA
Muted text5.42:1AA
Accent9.06:1AAA
Destructive7.11:1AAA
Dark mode
Text on background19.04:1AAA
Text on card19.25:1AAA
Primary button7.97:1AAA
Secondary button7.51:1AAA
Muted text6.75:1AA
Accent9.06:1AAA
Destructive6.40:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.155 0.026 44.368);
  --muted: oklch(0.9 0.013 0.281);
  --muted-foreground: oklch(0.456 0.017 0.907);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.155 0.026 44.368);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.142 0.023 46.58);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.201 0.017 39.227);
  --primary-foreground: oklch(0.748 0.042 39.27);
  --secondary: oklch(0.194 0.022 2.986);
  --secondary-foreground: oklch(0.73 0.055 1.911);
  --accent: oklch(0.219 0.018 91.813);
  --accent-foreground: oklch(0.793 0.047 91.784);
  --destructive: oklch(0.354 0.118 33.031);
  --destructive-foreground: oklch(0.845 0.073 31.464);
  --ring: oklch(0.201 0.017 39.227);
  --chart-1: oklch(0.201 0.017 39.227);
  --chart-2: oklch(0.194 0.022 2.986);
  --chart-3: oklch(0.219 0.018 91.813);
  --chart-4: oklch(0.225 0.029 3.34);
  --chart-5: oklch(0.201 0.019 39.219);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.013 46.758);
  --foreground: oklch(0.976 0.005 39.477);
  --muted: oklch(0.228 0.019 2.164);
  --muted-foreground: oklch(0.716 0.015 0.459);
  --popover: oklch(0.112 0.013 46.758);
  --popover-foreground: oklch(0.976 0.005 39.477);
  --card: oklch(0.128 0.015 46.467);
  --card-foreground: oklch(0.984 0.003 39.487);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.201 0.017 39.227);
  --primary-foreground: oklch(0.748 0.042 39.27);
  --secondary: oklch(0.194 0.022 2.986);
  --secondary-foreground: oklch(0.73 0.055 1.911);
  --accent: oklch(0.219 0.018 91.813);
  --accent-foreground: oklch(0.793 0.047 91.784);
  --destructive: oklch(0.667 0.182 33.137);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.201 0.017 39.227);
  --chart-1: oklch(0.201 0.017 39.227);
  --chart-2: oklch(0.194 0.022 2.986);
  --chart-3: oklch(0.219 0.018 91.813);
  --chart-4: oklch(0.225 0.029 3.34);
  --chart-5: oklch(0.201 0.019 39.219);
}