Untimely for shadcn/ui

Untimely is a shadcn/ui theme built around a violet primary color (#7625a2) with muted light violet accents (#c3bcc7). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#7625a2) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfewhite
#000000black
Foreground
#030104black
#ffffffwhite
Card
#fdfbfewhite
#000000black
Card foreground
#030104black
#ffffffwhite
Popover
#fdfbfewhite
#000000black
Popover foreground
#030104black
#ffffffwhite
Primary
#7625a2rebeccapurple
#7625a2rebeccapurple
Primary foreground
#fdfbfewhite
#fdfbfewhite
Secondary
#dcdbdcgainsboro
#1f1d20black
Secondary foreground
#434144darkslategray
#b9b3bcsilver
Muted
#f1ebf4whitesmoke
#110b14black
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#c3bcc7silver
#372f3cdarkslategray
Accent foreground
#2a252cdarkslategray
#d0c9d4lightgrey
Destructive
#b72310firebrick
#e12c14orangered
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7625a2rebeccapurple
#7625a2rebeccapurple

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button7.97:1AAA
Secondary button7.29:1AAA
Muted text5.13:1AA
Accent8.13:1AAA
Destructive6.25:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.97:1AAA
Secondary button8.16:1AAA
Muted text7.08:1AAA
Accent7.92:1AAA
Destructive4.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 314.191);
  --foreground: oklch(0.082 0.02 316.287);
  --muted: oklch(0.948 0.014 314.14);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.99 0.005 314.191);
  --popover-foreground: oklch(0.082 0.02 316.287);
  --card: oklch(0.99 0.005 314.191);
  --card-foreground: oklch(0.082 0.02 316.287);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.452 0.192 310.374);
  --primary-foreground: oklch(0.99 0.005 314.193);
  --secondary: oklch(0.891 0.002 314.206);
  --secondary-foreground: oklch(0.378 0.005 314.147);
  --accent: oklch(0.805 0.017 314.102);
  --accent-foreground: oklch(0.273 0.015 313.919);
  --destructive: oklch(0.506 0.185 31.012);
  --destructive-foreground: oklch(0.99 0.004 26.468);
  --ring: oklch(0.452 0.192 310.374);
  --chart-1: oklch(0.452 0.192 310.374);
  --chart-2: oklch(0.891 0.002 314.206);
  --chart-3: oklch(0.805 0.017 314.102);
  --chart-4: oklch(0.915 0.002 314.21);
  --chart-5: oklch(0.453 0.198 310.076);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.161 0.021 313.484);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.452 0.192 310.374);
  --primary-foreground: oklch(0.99 0.005 314.193);
  --secondary: oklch(0.234 0.008 314.036);
  --secondary-foreground: oklch(0.775 0.013 314.124);
  --accent: oklch(0.32 0.025 313.788);
  --accent-foreground: oklch(0.845 0.018 314.103);
  --destructive: oklch(0.589 0.218 30.98);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.452 0.192 310.374);
  --chart-1: oklch(0.452 0.192 310.374);
  --chart-2: oklch(0.234 0.008 314.036);
  --chart-3: oklch(0.32 0.025 313.788);
  --chart-4: oklch(0.265 0.009 314.024);
  --chart-5: oklch(0.453 0.198 310.076);
}