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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.93:1 | AAA |
| Text on card | 18.22:1 | AAA |
| Primary button | 5.98:1 | AA |
| Secondary button | 6.18:1 | AA |
| Muted text | 6.42:1 | AA |
| Accent | 7.34:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 5.98:1 | AA |
| Secondary button | 6.18:1 | AA |
| Muted text | 8.24:1 | AAA |
| Accent | 7.34:1 | AAA |
| Destructive | 3.80:1 | AA Large |
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);
}