Closure for shadcn/ui

Closure is a shadcn/ui theme built around a yellow primary color (#7c632d) with blue accents (#2d467c). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#7c632d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefdfbsnow
#000000black
Foreground
#040301black
#faf8f5whitesmoke
Card
#fdfbf7snow
#030303black
Card foreground
#000000black
#fcfbf8snow
Popover
#fdfbf7snow
#030303black
Popover foreground
#000000black
#fcfbf8snow
Primary
#7c632dsienna
#7c632dsienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2d467cdarkslateblue
#2d467cdarkslateblue
Secondary foreground
#e5eaf6lavender
#e5eaf6lavender
Muted
#e1e2e5gainsboro
#1a1b1eblack
Muted foreground
#3e3f42darkslategray
#bdbfc1silver
Accent
#2d467cdarkslateblue
#2d467cdarkslateblue
Accent foreground
#e5eaf6lavender
#e5eaf6lavender
Destructive
#e63d00orangered
#f54100orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7c632dsienna
#7c632dsienna

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.28:1AAA
Primary button5.73:1AA
Secondary button7.69:1AAA
Muted text8.13:1AAA
Accent7.69:1AAA
Destructive4.18:1AA Large
Dark mode
Text on background19.81:1AAA
Text on card19.98:1AAA
Primary button5.73:1AA
Secondary button7.69:1AAA
Muted text9.32:1AAA
Accent7.69:1AAA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 86.017);
  --foreground: oklch(0.098 0.011 91.414);
  --muted: oklch(0.913 0.004 265.985);
  --muted-foreground: oklch(0.368 0.005 265.945);
  --popover: oklch(0.988 0.005 86.026);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.005 86.026);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.512 0.079 84.39);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.402 0.096 263.859);
  --secondary-foreground: oklch(0.937 0.017 265.92);
  --accent: oklch(0.402 0.096 263.859);
  --accent-foreground: oklch(0.937 0.017 265.92);
  --destructive: oklch(0.61 0.212 35.417);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.512 0.079 84.39);
  --chart-1: oklch(0.512 0.079 84.39);
  --chart-2: oklch(0.402 0.096 263.859);
  --chart-3: oklch(0.402 0.096 263.859);
  --chart-4: oklch(0.426 0.104 263.829);
  --chart-5: oklch(0.516 0.083 84.099);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.005 86.028);
  --muted: oklch(0.223 0.006 265.856);
  --muted-foreground: oklch(0.803 0.004 265.985);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.987 0.004 86.021);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.987 0.004 86.021);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.512 0.079 84.39);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.402 0.096 263.859);
  --secondary-foreground: oklch(0.937 0.017 265.92);
  --accent: oklch(0.402 0.096 263.859);
  --accent-foreground: oklch(0.937 0.017 265.92);
  --destructive: oklch(0.64 0.223 35.294);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.512 0.079 84.39);
  --chart-1: oklch(0.512 0.079 84.39);
  --chart-2: oklch(0.402 0.096 263.859);
  --chart-3: oklch(0.402 0.096 263.859);
  --chart-4: oklch(0.426 0.104 263.829);
  --chart-5: oklch(0.516 0.083 84.099);
}