Punctuation for shadcn/ui

Punctuation is a shadcn/ui theme built around a vivid light orange primary color (#fff5f0) with muted light orange accents (#dccec6). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid light orange primary (#fff5f0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefcfbsnow
#000000black
Foreground
#160a04black
#fdfcfbsnow
Card
#fefcfbsnow
#000000black
Card foreground
#160a04black
#fdfcfbsnow
Popover
#fefcfbsnow
#000000black
Popover foreground
#160a04black
#fdfcfbsnow
Primary
#fff5f0seashell
#fff5f0seashell
Primary foreground
#572000maroon
#572000maroon
Secondary
#e5dfdcgainsboro
#282624darkslategray
Secondary foreground
#52453ddarkslategray
#c2bebcsilver
Muted
#f5eeeblinen
#140e0ablack
Muted foreground
#4c433ddarkslategray
#c2b8b3silver
Accent
#dccec6lightgrey
#39312ddarkslategray
Accent foreground
#46352bdarkslategray
#d2cac6lightgrey
Destructive
#831107maroon
#f43b2aorangered
Destructive foreground
#fcc5c0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fff5f0seashell
#fff5f0seashell

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button12.16:1AAA
Secondary button6.99:1AA
Muted text8.42:1AAA
Accent7.59:1AAA
Destructive6.78:1AA
Dark mode
Text on background20.49:1AAA
Text on card20.49:1AAA
Primary button12.16:1AAA
Secondary button8.18:1AAA
Muted text9.84:1AAA
Accent7.84:1AAA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 52.552);
  --foreground: oklch(0.161 0.026 56.182);
  --muted: oklch(0.954 0.008 52.463);
  --muted-foreground: oklch(0.39 0.016 52.047);
  --popover: oklch(0.992 0.002 52.552);
  --popover-foreground: oklch(0.161 0.026 56.182);
  --card: oklch(0.992 0.002 52.552);
  --card-foreground: oklch(0.161 0.026 56.182);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.977 0.013 52.403);
  --primary-foreground: oklch(0.321 0.091 45.545);
  --secondary: oklch(0.908 0.008 52.463);
  --secondary-foreground: oklch(0.4 0.023 51.856);
  --accent: oklch(0.861 0.019 52.286);
  --accent-foreground: oklch(0.343 0.03 51.471);
  --destructive: oklch(0.392 0.148 30.148);
  --destructive-foreground: oklch(0.871 0.063 24.439);
  --ring: oklch(0.977 0.013 52.403);
  --chart-1: oklch(0.977 0.013 52.403);
  --chart-2: oklch(0.908 0.008 52.463);
  --chart-3: oklch(0.861 0.019 52.286);
  --chart-4: oklch(0.931 0.006 52.495);
  --chart-5: oklch(0.977 0.013 52.398);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.002 52.558);
  --muted: oklch(0.171 0.013 51.619);
  --muted-foreground: oklch(0.789 0.013 52.353);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.002 52.558);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.002 52.558);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.977 0.013 52.403);
  --primary-foreground: oklch(0.321 0.091 45.545);
  --secondary: oklch(0.27 0.004 52.36);
  --secondary-foreground: oklch(0.805 0.006 52.485);
  --accent: oklch(0.321 0.014 52.032);
  --accent-foreground: oklch(0.845 0.011 52.41);
  --destructive: oklch(0.634 0.223 29.773);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.977 0.013 52.403);
  --chart-1: oklch(0.977 0.013 52.403);
  --chart-2: oklch(0.27 0.004 52.36);
  --chart-3: oklch(0.321 0.014 52.032);
  --chart-4: oklch(0.301 0.005 52.35);
  --chart-5: oklch(0.977 0.013 52.398);
}