Belated for shadcn/ui

Belated is a shadcn/ui theme built around a light purple primary color (#f1caf1) with light green accents (#cbf1ca). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#f1caf1) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#ffffffwhite
#030203black
Foreground
#040104black
#fcf8fcsnow
Card
#ffffffwhite
#030203black
Card foreground
#040104black
#fcf8fcsnow
Popover
#ffffffwhite
#030203black
Popover foreground
#040104black
#fcf8fcsnow
Primary
#f1caf1lavender
#f1caf1lavender
Primary foreground
#6c1c6dpurple
#6c1c6dpurple
Secondary
#cbf1calightgrey
#cbf1calightgrey
Secondary foreground
#081c07black
#081c07black
Muted
#e1e5e1gainsboro
#1a1e1ablack
Muted foreground
#3b4a3adarkslategray
#b5c5b5silver
Accent
#cbf1calightgrey
#cbf1calightgrey
Accent foreground
#081c07black
#081c07black
Destructive
#d3170dfirebrick
#f23b31crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f1caf1lavender
#f1caf1lavender

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button7.15:1AAA
Secondary button14.43:1AAA
Muted text7.41:1AAA
Accent14.43:1AAA
Destructive5.38:1AA
Dark mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button7.15:1AAA
Secondary button14.43:1AAA
Muted text9.31:1AAA
Accent14.43:1AAA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.087 0.018 326.582);
  --muted: oklch(0.918 0.008 145.042);
  --muted-foreground: oklch(0.391 0.033 144.484);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.087 0.018 326.582);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.087 0.018 326.582);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.885 0.067 325.61);
  --primary-foreground: oklch(0.392 0.149 327.256);
  --secondary: oklch(0.922 0.066 144.583);
  --secondary-foreground: oklch(0.204 0.048 143.213);
  --accent: oklch(0.922 0.066 144.583);
  --accent-foreground: oklch(0.204 0.048 143.213);
  --destructive: oklch(0.551 0.216 29.435);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.885 0.067 325.61);
  --chart-1: oklch(0.885 0.067 325.61);
  --chart-2: oklch(0.922 0.066 144.583);
  --chart-3: oklch(0.922 0.066 144.583);
  --chart-4: oklch(0.939 0.051 144.714);
  --chart-5: oklch(0.884 0.071 325.635);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.012 326.1);
  --foreground: oklch(0.983 0.006 325.146);
  --muted: oklch(0.23 0.011 144.767);
  --muted-foreground: oklch(0.806 0.028 144.855);
  --popover: oklch(0.088 0.012 326.1);
  --popover-foreground: oklch(0.983 0.006 325.146);
  --card: oklch(0.088 0.012 326.1);
  --card-foreground: oklch(0.983 0.006 325.146);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.885 0.067 325.61);
  --primary-foreground: oklch(0.392 0.149 327.256);
  --secondary: oklch(0.922 0.066 144.583);
  --secondary-foreground: oklch(0.204 0.048 143.213);
  --accent: oklch(0.922 0.066 144.583);
  --accent-foreground: oklch(0.204 0.048 143.213);
  --destructive: oklch(0.631 0.22 28.373);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.885 0.067 325.61);
  --chart-1: oklch(0.885 0.067 325.61);
  --chart-2: oklch(0.922 0.066 144.583);
  --chart-3: oklch(0.922 0.066 144.583);
  --chart-4: oklch(0.939 0.051 144.714);
  --chart-5: oklch(0.884 0.071 325.635);
}