Punctual for shadcn/ui

Punctual is a shadcn/ui theme built around a muted green primary color (#92977d) with muted green accents (#85977d). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted green primary (#92977d) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fefefbwhite
#030401black
Foreground
#070802black
#f8f8f7whitesmoke
Card
#fcfdf6snow
#070703black
Card foreground
#040401black
#fafaf9snow
Popover
#fefefbwhite
#030401black
Popover foreground
#070802black
#f8f8f7whitesmoke
Primary
#92977dgray
#92977dgray
Primary foreground
#000000black
#000000black
Secondary
#978e7dgray
#978e7dgray
Secondary foreground
#000000black
#000000black
Muted
#e9e5dcgainsboro
#231e16black
Muted foreground
#70695cdimgray
#a39c8frosybrown
Accent
#85977dgray
#85977dgray
Accent foreground
#000000black
#000000black
Destructive
#b34414sienna
#e75d23chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#92977dgray
#92977dgray

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card20.12:1AAA
Primary button6.92:1AA
Secondary button6.47:1AA
Muted text4.33:1AA Large
Accent6.70:1AA
Destructive5.60:1AA
Dark mode
Text on background19.35:1AAA
Text on card19.29:1AAA
Primary button6.92:1AA
Secondary button6.47:1AA
Muted text6.07:1AA
Accent6.70:1AA
Destructive5.98:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.005 114.153);
  --foreground: oklch(0.131 0.02 114.952);
  --muted: oklch(0.923 0.012 84.581);
  --muted-foreground: oklch(0.524 0.022 84.58);
  --popover: oklch(0.996 0.005 114.153);
  --popover-foreground: oklch(0.131 0.02 114.952);
  --card: oklch(0.992 0.009 114.241);
  --card-foreground: oklch(0.104 0.016 114.952);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.664 0.037 115.105);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.649 0.027 84.582);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.654 0.042 135.163);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.532 0.155 40.197);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.664 0.037 115.105);
  --chart-1: oklch(0.664 0.037 115.105);
  --chart-2: oklch(0.649 0.027 84.582);
  --chart-3: oklch(0.654 0.042 135.163);
  --chart-4: oklch(0.673 0.025 84.588);
  --chart-5: oklch(0.673 0.047 115.361);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.012 114.755);
  --foreground: oklch(0.979 0.002 114.105);
  --muted: oklch(0.238 0.017 84.459);
  --muted-foreground: oklch(0.696 0.021 84.593);
  --popover: oklch(0.101 0.012 114.755);
  --popover-foreground: oklch(0.979 0.002 114.105);
  --card: oklch(0.127 0.015 114.755);
  --card-foreground: oklch(0.986 0.001 114.091);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.664 0.037 115.105);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.649 0.027 84.582);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.654 0.042 135.163);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.648 0.183 40.697);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.664 0.037 115.105);
  --chart-1: oklch(0.664 0.037 115.105);
  --chart-2: oklch(0.649 0.027 84.582);
  --chart-3: oklch(0.654 0.042 135.163);
  --chart-4: oklch(0.673 0.025 84.588);
  --chart-5: oklch(0.673 0.047 115.361);
}