Serious for shadcn/ui

Serious is a shadcn/ui theme built around a green primary color (#596935) with purple accents (#693559). The light mode uses a neutral background (#fbfcf7). Dark mode keeps the green primary (#596935) on a neutral background (#030402).

Color palette

TokenLightDark
Background
#fbfcf7snow
#030402black
Foreground
#101604black
#f8f9f6whitesmoke
Card
#f9fbf4whitesmoke
#060703black
Card foreground
#0d1203black
#fafbf9snow
Popover
#fbfcf7snow
#030402black
Popover foreground
#101604black
#f8f9f6whitesmoke
Primary
#596935darkolivegreen
#596935darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#355969darkslategray
#355969darkslategray
Secondary foreground
#e0ebf0lavender
#e0ebf0lavender
Muted
#f0f3f5whitesmoke
#0a0e0fblack
Muted foreground
#51595cdimgray
#a3aaaedarkgray
Accent
#693559dimgray
#693559dimgray
Accent foreground
#f0e0ebmistyrose
#f0e0ebmistyrose
Destructive
#9e1705darkred
#f8351borangered
Destructive foreground
#fedcd7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#596935darkolivegreen
#596935darkolivegreen

Contrast

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

Light mode
Text on background17.93:1AAA
Text on card18.22:1AAA
Primary button5.98:1AA
Secondary button6.18:1AA
Muted text6.42:1AA
Accent7.34:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.46:1AAA
Primary button5.98:1AA
Secondary button6.18:1AA
Muted text8.24:1AAA
Accent7.34:1AAA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 120.153);
  --foreground: oklch(0.188 0.036 122.756);
  --muted: oklch(0.963 0.004 225.03);
  --muted-foreground: oklch(0.458 0.011 225.261);
  --popover: oklch(0.99 0.007 120.153);
  --popover-foreground: oklch(0.188 0.036 122.756);
  --card: oklch(0.985 0.01 120.211);
  --card-foreground: oklch(0.17 0.032 121.873);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.495 0.078 122.975);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.445 0.049 227.246);
  --secondary-foreground: oklch(0.934 0.013 225.142);
  --accent: oklch(0.409 0.089 339.672);
  --accent-foreground: oklch(0.923 0.022 336.304);
  --destructive: oklch(0.45 0.171 30.957);
  --destructive-foreground: oklch(0.921 0.038 26.771);
  --ring: oklch(0.495 0.078 122.975);
  --chart-1: oklch(0.495 0.078 122.975);
  --chart-2: oklch(0.445 0.049 227.246);
  --chart-3: oklch(0.409 0.089 339.672);
  --chart-4: oklch(0.474 0.053 227.29);
  --chart-5: oklch(0.502 0.084 123.213);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.01 119.943);
  --foreground: oklch(0.98 0.003 120.095);
  --muted: oklch(0.159 0.006 225.507);
  --muted-foreground: oklch(0.734 0.009 225.13);
  --popover: oklch(0.099 0.01 119.943);
  --popover-foreground: oklch(0.98 0.003 120.095);
  --card: oklch(0.125 0.013 119.943);
  --card-foreground: oklch(0.986 0.002 120.076);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.495 0.078 122.975);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.445 0.049 227.246);
  --secondary-foreground: oklch(0.934 0.013 225.142);
  --accent: oklch(0.409 0.089 339.672);
  --accent-foreground: oklch(0.923 0.022 336.304);
  --destructive: oklch(0.636 0.232 31.024);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.495 0.078 122.975);
  --chart-1: oklch(0.495 0.078 122.975);
  --chart-2: oklch(0.445 0.049 227.246);
  --chart-3: oklch(0.409 0.089 339.672);
  --chart-4: oklch(0.474 0.053 227.29);
  --chart-5: oklch(0.502 0.084 123.213);
}