Pat for shadcn/ui

Pat is a shadcn/ui theme built around a deep green primary color (#0e3f1f) with deep orange accents (#3f1f0e). The light mode uses a neutral background (#fbfefc). Dark mode keeps the deep green primary (#0e3f1f) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#fbfefcwhite
#010402black
Foreground
#04150ablack
#f6f9f7whitesmoke
Card
#fbfefcwhite
#010402black
Card foreground
#04150ablack
#f6f9f7whitesmoke
Popover
#fbfefcwhite
#010402black
Popover foreground
#04150ablack
#f6f9f7whitesmoke
Primary
#0e3f1fdarkgreen
#0e3f1fdarkgreen
Primary foreground
#43d676mediumseagreen
#43d676mediumseagreen
Secondary
#1f0e3fmidnightblue
#1f0e3fmidnightblue
Secondary foreground
#b396e8plum
#b396e8plum
Muted
#e0d9edgainsboro
#191226black
Muted foreground
#524d5cdarkslategray
#a9a3b2darkgray
Accent
#3f1f0eblack
#3f1f0eblack
Accent foreground
#e8b396burlywood
#e8b396burlywood
Destructive
#b62d07firebrick
#f64413orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e3f1fdarkgreen
#0e3f1fdarkgreen

Contrast

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

Light mode
Text on background18.50:1AAA
Text on card18.50:1AAA
Primary button6.37:1AA
Secondary button7.09:1AAA
Muted text5.93:1AA
Accent8.02:1AAA
Destructive6.24:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button6.37:1AA
Secondary button7.09:1AAA
Muted text7.42:1AAA
Accent8.02:1AAA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 157.909);
  --foreground: oklch(0.178 0.034 154.557);
  --muted: oklch(0.896 0.029 301.704);
  --muted-foreground: oklch(0.429 0.026 301.278);
  --popover: oklch(0.994 0.004 157.909);
  --popover-foreground: oklch(0.178 0.034 154.557);
  --card: oklch(0.994 0.004 157.909);
  --card-foreground: oklch(0.178 0.034 154.557);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.325 0.076 151.039);
  --primary-foreground: oklch(0.776 0.183 150.936);
  --secondary: oklch(0.222 0.088 294.099);
  --secondary-foreground: oklch(0.731 0.119 299.554);
  --accent: oklch(0.279 0.057 47.461);
  --accent-foreground: oklch(0.808 0.073 49.593);
  --destructive: oklch(0.511 0.179 34.177);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.325 0.076 151.039);
  --chart-1: oklch(0.325 0.076 151.039);
  --chart-2: oklch(0.222 0.088 294.099);
  --chart-3: oklch(0.279 0.057 47.461);
  --chart-4: oklch(0.246 0.102 293.538);
  --chart-5: oklch(0.329 0.079 150.747);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.011 157.766);
  --foreground: oklch(0.979 0.004 157.909);
  --muted: oklch(0.201 0.041 298.767);
  --muted-foreground: oklch(0.726 0.022 301.729);
  --popover: oklch(0.096 0.011 157.766);
  --popover-foreground: oklch(0.979 0.004 157.909);
  --card: oklch(0.096 0.011 157.766);
  --card-foreground: oklch(0.979 0.004 157.909);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.325 0.076 151.039);
  --primary-foreground: oklch(0.776 0.183 150.936);
  --secondary: oklch(0.222 0.088 294.099);
  --secondary-foreground: oklch(0.731 0.119 299.554);
  --accent: oklch(0.279 0.057 47.461);
  --accent-foreground: oklch(0.808 0.073 49.593);
  --destructive: oklch(0.645 0.221 34.513);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.325 0.076 151.039);
  --chart-1: oklch(0.325 0.076 151.039);
  --chart-2: oklch(0.222 0.088 294.099);
  --chart-3: oklch(0.279 0.057 47.461);
  --chart-4: oklch(0.246 0.102 293.538);
  --chart-5: oklch(0.329 0.079 150.747);
}