Timely for shadcn/ui

Timely is a shadcn/ui theme built around a vivid red primary color (#db0a18) with vivid indigo accents (#0a18db). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#db0a18) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#ffffffwhite
#040101black
Foreground
#0c0304black
#fcf8f8snow
Card
#fcfcfcsnow
#080303black
Card foreground
#080203black
#fdfcfcsnow
Popover
#fcfcfcsnow
#080303black
Popover foreground
#080203black
#fdfcfcsnow
Primary
#db0a18crimson
#db0a18crimson
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#18db0alime
#18db0alime
Secondary foreground
#031801black
#031801black
Muted
#ebf5eahoneydew
#0a150ablack
Muted foreground
#4b644adarkolivegreen
#9db59bdarkseagreen
Accent
#0a18dbmediumblue
#0a18dbmediumblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9c3407saddlebrown
#db490aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#db0a18crimson
#db0a18crimson

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card20.13:1AAA
Primary button5.15:1AA
Secondary button9.86:1AAA
Muted text5.84:1AA
Accent9.67:1AAA
Destructive7.23:1AAA
Dark mode
Text on background19.69:1AAA
Text on card20.05:1AAA
Primary button5.15:1AA
Secondary button9.86:1AAA
Muted text8.46:1AAA
Accent9.67:1AAA
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.12 0.02 14.475);
  --muted: oklch(0.96 0.019 143.533);
  --muted-foreground: oklch(0.475 0.05 143.059);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.104 0.017 14.393);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.104 0.017 14.393);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.563 0.226 27.36);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.774 0.26 142.269);
  --secondary-foreground: oklch(0.185 0.057 141.185);
  --accent: oklch(0.417 0.27 265.082);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.472 0.147 38.991);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.563 0.226 27.36);
  --chart-1: oklch(0.563 0.226 27.36);
  --chart-2: oklch(0.774 0.26 142.269);
  --chart-3: oklch(0.417 0.27 265.082);
  --chart-4: oklch(0.813 0.273 142.275);
  --chart-5: oklch(0.569 0.23 27.667);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.012 14.04);
  --foreground: oklch(0.982 0.004 12.506);
  --muted: oklch(0.181 0.027 142.803);
  --muted-foreground: oklch(0.748 0.045 143.31);
  --popover: oklch(0.106 0.015 14.04);
  --popover-foreground: oklch(0.991 0.002 12.466);
  --card: oklch(0.106 0.015 14.04);
  --card-foreground: oklch(0.991 0.002 12.466);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.563 0.226 27.36);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.774 0.26 142.269);
  --secondary-foreground: oklch(0.185 0.057 141.185);
  --accent: oklch(0.417 0.27 265.082);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.604 0.192 38.358);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.563 0.226 27.36);
  --chart-1: oklch(0.563 0.226 27.36);
  --chart-2: oklch(0.774 0.26 142.269);
  --chart-3: oklch(0.417 0.27 265.082);
  --chart-4: oklch(0.813 0.273 142.275);
  --chart-5: oklch(0.569 0.23 27.667);
}