Belated for shadcn/ui

Belated is a shadcn/ui theme built around a vivid red primary color (#ef8082) with muted light red accents (#d7d0d0). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the vivid red primary (#ef8082) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8f8snow
#000000black
Foreground
#080202black
#ffffffwhite
Card
#faf5f5whitesmoke
#030303black
Card foreground
#040101black
#ffffffwhite
Popover
#faf5f5whitesmoke
#030303black
Popover foreground
#040101black
#ffffffwhite
Primary
#ef8082lightcoral
#ef8082lightcoral
Primary foreground
#360708black
#360708black
Secondary
#d7d0d0lightgrey
#353131darkslategray
Secondary foreground
#3f3636darkslategray
#cecacalightgrey
Muted
#ebe0e0gainsboro
#1f1414black
Muted foreground
#564343darkslategray
#bca9a9darkgray
Accent
#d7d0d0lightgrey
#353131darkslategray
Accent foreground
#3f3636darkslategray
#cecacalightgrey
Destructive
#d1240afirebrick
#f6553ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ef8082lightcoral
#ef8082lightcoral

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.23:1AAA
Primary button6.78:1AA
Secondary button7.72:1AAA
Muted text7.14:1AAA
Accent7.72:1AAA
Destructive5.26:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.78:1AA
Secondary button7.90:1AAA
Muted text8.02:1AAA
Accent7.90:1AAA
Destructive6.27:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.003 16.036);
  --foreground: oklch(0.102 0.021 19.664);
  --muted: oklch(0.916 0.012 16.201);
  --muted-foreground: oklch(0.403 0.028 17.248);
  --popover: oklch(0.974 0.005 16.069);
  --popover-foreground: oklch(0.081 0.016 19.664);
  --card: oklch(0.974 0.005 16.069);
  --card-foreground: oklch(0.081 0.016 19.664);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.724 0.137 19.984);
  --primary-foreground: oklch(0.222 0.075 24.912);
  --secondary: oklch(0.864 0.008 16.131);
  --secondary-foreground: oklch(0.343 0.013 16.679);
  --accent: oklch(0.864 0.008 16.131);
  --accent-foreground: oklch(0.343 0.013 16.679);
  --destructive: oklch(0.555 0.209 31.263);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.724 0.137 19.984);
  --chart-1: oklch(0.724 0.137 19.984);
  --chart-2: oklch(0.864 0.008 16.131);
  --chart-3: oklch(0.864 0.008 16.131);
  --chart-4: oklch(0.888 0.006 16.098);
  --chart-5: oklch(0.723 0.142 20.185);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.206 0.018 17.598);
  --muted-foreground: oklch(0.751 0.023 16.528);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.724 0.137 19.984);
  --primary-foreground: oklch(0.222 0.075 24.912);
  --secondary: oklch(0.317 0.006 16.301);
  --secondary-foreground: oklch(0.842 0.005 16.069);
  --accent: oklch(0.317 0.006 16.301);
  --accent-foreground: oklch(0.842 0.005 16.069);
  --destructive: oklch(0.664 0.201 31.456);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.724 0.137 19.984);
  --chart-1: oklch(0.724 0.137 19.984);
  --chart-2: oklch(0.317 0.006 16.301);
  --chart-3: oklch(0.317 0.006 16.301);
  --chart-4: oklch(0.347 0.007 16.311);
  --chart-5: oklch(0.723 0.142 20.185);
}