Excuse for shadcn/ui

Excuse is a shadcn/ui theme built around a deep teal primary color (#0e4e33) with deep pink accents (#4e0e29). The light mode uses a neutral background (#fbfefd). Dark mode keeps the deep teal primary (#0e4e33) on a neutral background (#020403).

Color palette

TokenLightDark
Background
#fbfefdwhite
#020403black
Foreground
#020d09black
#ffffffwhite
Card
#fbfefdwhite
#020403black
Card foreground
#020d09black
#ffffffwhite
Popover
#fbfefdwhite
#020403black
Popover foreground
#020d09black
#ffffffwhite
Primary
#0e4e33darkslategray
#0e4e33darkslategray
Primary foreground
#a0eecdpowderblue
#a0eecdpowderblue
Secondary
#4e0e29maroon
#4e0e29maroon
Secondary foreground
#eea0c0lightpink
#eea0c0lightpink
Muted
#f2eeefwhitesmoke
#110d0fblack
Muted foreground
#464345darkslategray
#bcb9basilver
Accent
#4e0e29maroon
#4e0e29maroon
Accent foreground
#eea0c0lightpink
#eea0c0lightpink
Destructive
#d21904firebrick
#fb4b37tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e4e33darkslategray
#0e4e33darkslategray

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button7.23:1AAA
Secondary button7.35:1AAA
Muted text8.46:1AAA
Accent7.35:1AAA
Destructive5.41:1AA
Dark mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button7.23:1AAA
Secondary button7.35:1AAA
Muted text9.89:1AAA
Accent7.35:1AAA
Destructive3.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 169.56);
  --foreground: oklch(0.146 0.023 169.086);
  --muted: oklch(0.952 0.005 349.823);
  --muted-foreground: oklch(0.388 0.004 349.97);
  --popover: oklch(0.994 0.004 169.56);
  --popover-foreground: oklch(0.146 0.023 169.086);
  --card: oklch(0.994 0.004 169.56);
  --card-foreground: oklch(0.146 0.023 169.086);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.377 0.078 160.291);
  --primary-foreground: oklch(0.89 0.09 166.365);
  --secondary: oklch(0.288 0.097 0.301);
  --secondary-foreground: oklch(0.791 0.101 353.042);
  --accent: oklch(0.288 0.097 0.301);
  --accent-foreground: oklch(0.791 0.101 353.042);
  --destructive: oklch(0.55 0.215 30.379);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.377 0.078 160.291);
  --chart-1: oklch(0.377 0.078 160.291);
  --chart-2: oklch(0.288 0.097 0.301);
  --chart-3: oklch(0.288 0.097 0.301);
  --chart-4: oklch(0.318 0.11 0.73);
  --chart-5: oklch(0.381 0.08 159.919);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.009 169.857);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.166 0.008 350.991);
  --muted-foreground: oklch(0.788 0.003 349.794);
  --popover: oklch(0.096 0.009 169.857);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.096 0.009 169.857);
  --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.377 0.078 160.291);
  --primary-foreground: oklch(0.89 0.09 166.365);
  --secondary: oklch(0.288 0.097 0.301);
  --secondary-foreground: oklch(0.791 0.101 353.042);
  --accent: oklch(0.288 0.097 0.301);
  --accent-foreground: oklch(0.791 0.101 353.042);
  --destructive: oklch(0.661 0.216 30.083);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.377 0.078 160.291);
  --chart-1: oklch(0.377 0.078 160.291);
  --chart-2: oklch(0.288 0.097 0.301);
  --chart-3: oklch(0.288 0.097 0.301);
  --chart-4: oklch(0.318 0.11 0.73);
  --chart-5: oklch(0.381 0.08 159.919);
}