Abandoned for shadcn/ui

Abandoned is a shadcn/ui theme built around a deep blue primary color (#0d2254) with deep yellow accents (#543f0d). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#0d2254) on a blue-tinted background (#05070a).

Color palette

TokenLightDark
Background
#ffffffwhite
#05070ablack
Foreground
#04060cblack
#ffffffwhite
Card
#fcfcfcsnow
#07090dblack
Card foreground
#020408black
#ffffffwhite
Popover
#fcfcfcsnow
#07090dblack
Popover foreground
#020408black
#ffffffwhite
Primary
#0d2254midnightblue
#0d2254midnightblue
Primary foreground
#a2baf1lightsteelblue
#a2baf1lightsteelblue
Secondary
#543f0ddarkolivegreen
#543f0ddarkolivegreen
Secondary foreground
#f1d9a2palegoldenrod
#f1d9a2palegoldenrod
Muted
#f1f0eewhitesmoke
#11100eblack
Muted foreground
#524d42darkolivegreen
#bdb8adsilver
Accent
#543f0ddarkolivegreen
#543f0ddarkolivegreen
Accent foreground
#f1d9a2palegoldenrod
#f1d9a2palegoldenrod
Destructive
#6f100bmaroon
#ea382ecrimson
Destructive foreground
#f8b8b5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d2254midnightblue
#0d2254midnightblue

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.07:1AAA
Primary button7.86:1AAA
Secondary button7.29:1AAA
Muted text7.38:1AAA
Accent7.29:1AAA
Destructive7.11:1AAA
Dark mode
Text on background20.18:1AAA
Text on card19.92:1AAA
Primary button7.86:1AAA
Secondary button7.29:1AAA
Muted text9.63:1AAA
Accent7.29:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.015 260.657);
  --muted: oklch(0.956 0.002 87.433);
  --muted-foreground: oklch(0.422 0.019 87.569);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.107 0.013 260.465);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.107 0.013 260.465);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.271 0.094 263.745);
  --primary-foreground: oklch(0.79 0.082 266.52);
  --secondary: oklch(0.38 0.07 83.984);
  --secondary-foreground: oklch(0.892 0.075 87.469);
  --accent: oklch(0.38 0.07 83.984);
  --accent-foreground: oklch(0.892 0.075 87.469);
  --destructive: oklch(0.352 0.129 28.901);
  --destructive-foreground: oklch(0.84 0.074 22.193);
  --ring: oklch(0.271 0.094 263.745);
  --chart-1: oklch(0.271 0.094 263.745);
  --chart-2: oklch(0.38 0.07 83.984);
  --chart-3: oklch(0.38 0.07 83.984);
  --chart-4: oklch(0.419 0.078 83.706);
  --chart-5: oklch(0.27 0.098 263.626);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.009 263.499);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.172 0.004 87.517);
  --muted-foreground: oklch(0.784 0.017 87.517);
  --popover: oklch(0.139 0.011 264.643);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.011 264.643);
  --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.271 0.094 263.745);
  --primary-foreground: oklch(0.79 0.082 266.52);
  --secondary: oklch(0.38 0.07 83.984);
  --secondary-foreground: oklch(0.892 0.075 87.469);
  --accent: oklch(0.38 0.07 83.984);
  --accent-foreground: oklch(0.892 0.075 87.469);
  --destructive: oklch(0.616 0.216 28.417);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.271 0.094 263.745);
  --chart-1: oklch(0.271 0.094 263.745);
  --chart-2: oklch(0.38 0.07 83.984);
  --chart-3: oklch(0.38 0.07 83.984);
  --chart-4: oklch(0.419 0.078 83.706);
  --chart-5: oklch(0.27 0.098 263.626);
}