Punctual for shadcn/ui

Punctual is a shadcn/ui theme built around a vivid pink primary color (#f835a0) with vivid red accents (#f8353f). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the vivid pink primary (#f835a0) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#040103black
Foreground
#16040eblack
#f9f6f8whitesmoke
Card
#fcf8fasnow
#080205black
Card foreground
#11030bblack
#fbf9fasnow
Popover
#fdfcfdwhite
#040103black
Popover foreground
#16040eblack
#f9f6f8whitesmoke
Primary
#f835a0deeppink
#f835a0deeppink
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ee35f8magenta
#ee35f8magenta
Secondary foreground
#000000black
#000000black
Muted
#f3f1f3whitesmoke
#0e0c0eblack
Muted foreground
#6c5a6ddimgray
#a592a5darkgray
Accent
#f8353fcrimson
#f8353fcrimson
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d74e0fchocolate
#e55310chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f835a0deeppink
#f835a0deeppink

Contrast

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

Light mode
Text on background19.35:1AAA
Text on card19.15:1AAA
Primary button3.49:1AA Large
Secondary button6.49:1AA
Muted text5.64:1AA
Accent3.77:1AA Large
Destructive4.21:1AA Large
Dark mode
Text on background19.34:1AAA
Text on card19.58:1AAA
Primary button3.49:1AA Large
Secondary button6.49:1AA
Muted text6.74:1AA
Accent3.77:1AA Large
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 342.672);
  --foreground: oklch(0.146 0.04 346.711);
  --muted: oklch(0.961 0.003 324.148);
  --muted-foreground: oklch(0.492 0.039 324.574);
  --popover: oklch(0.991 0.002 342.672);
  --popover-foreground: oklch(0.146 0.04 346.711);
  --card: oklch(0.983 0.004 342.726);
  --card-foreground: oklch(0.133 0.035 345.114);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.662 0.242 352.733);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.689 0.29 325.85);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.639 0.228 24.421);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.603 0.183 40.052);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.662 0.242 352.733);
  --chart-1: oklch(0.662 0.242 352.733);
  --chart-2: oklch(0.689 0.29 325.85);
  --chart-3: oklch(0.639 0.228 24.421);
  --chart-4: oklch(0.701 0.278 325.832);
  --chart-5: oklch(0.665 0.247 353.086);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.015 342.587);
  --foreground: oklch(0.975 0.005 342.737);
  --muted: oklch(0.157 0.005 324.301);
  --muted-foreground: oklch(0.682 0.036 324.43);
  --popover: oklch(0.085 0.015 342.587);
  --popover-foreground: oklch(0.975 0.005 342.737);
  --card: oklch(0.107 0.019 342.587);
  --card-foreground: oklch(0.983 0.003 342.697);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.662 0.242 352.733);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.689 0.29 325.85);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.639 0.228 24.421);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.632 0.193 39.954);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.662 0.242 352.733);
  --chart-1: oklch(0.662 0.242 352.733);
  --chart-2: oklch(0.689 0.29 325.85);
  --chart-3: oklch(0.639 0.228 24.421);
  --chart-4: oklch(0.701 0.278 325.832);
  --chart-5: oklch(0.665 0.247 353.086);
}