Sojourn is a shadcn/ui theme built around a green primary color (#8ec157) with teal accents (#79cdc5). The light mode uses a yellow-tinted background (#f7f7e7). Dark mode keeps the green primary (#92c157) on a yellow-tinted background (#171708).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f7e7oldlace | #171708black |
| Foreground | #080807black | #f8f8f7whitesmoke |
| Card | #fcfcf7snow | #28280bblack |
| Card foreground | #080807black | #f8f8f7whitesmoke |
| Popover | #fcfcf7snow | #28280bblack |
| Popover foreground | #080807black | #f8f8f7whitesmoke |
| Primary | #8ec157yellowgreen | #92c157yellowgreen |
| Primary foreground | #f2f8echoneydew | #000000black |
| Secondary | #bced87palegreen | #244c1adarkgreen |
| Secondary foreground | #4d6038darkolivegreen | #dbefd6gainsboro |
| Muted | #c4c4a3silver | #3f3f2adarkslategray |
| Muted foreground | #5e5e51dimgray | #78786fgray |
| Accent | #79cdc5mediumaquamarine | #14e1ccdarkturquoise |
| Accent foreground | #3d504fdarkslategray | #031815black |
| Destructive | #c15757indianred | #e12514crimson |
| Destructive foreground | #f8ececlinen | #ffffffwhite |
| Border | #e4e4adpalegoldenrod | #353510darkslategray |
| Input | #cece9dtan | #353510darkslategray |
| Ring | #cece9dtan | #686822darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.52:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 1.95:1 | Fail |
| Secondary button | 5.12:1 | AA |
| Muted text | 3.68:1 | AA Large |
| Accent | 4.61:1 | AA |
| Destructive | 3.81:1 | AA Large |
| Text on background | 16.99:1 | AAA |
| Text on card | 14.07:1 | AAA |
| Primary button | 9.98:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 2.41:1 | Fail |
| Accent | 11.06:1 | AAA |
| Destructive | 4.68:1 | AA |
Paste this into your globals.css to use Sojourn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.972 0.021 106.784);
--foreground: oklch(0.134 0.003 106.741);
--muted: oklch(0.812 0.045 107.371);
--muted-foreground: oklch(0.478 0.021 107.175);
--popover: oklch(0.99 0.007 106.519);
--popover-foreground: oklch(0.134 0.003 106.741);
--card: oklch(0.991 0.007 106.521);
--card-foreground: oklch(0.134 0.003 106.741);
--border: oklch(0.904 0.071 107.746);
--input: oklch(0.839 0.065 107.722);
--primary: oklch(0.752 0.147 130.6);
--primary-foreground: oklch(0.972 0.017 127.904);
--secondary: oklch(0.889 0.14 129.822);
--secondary-foreground: oklch(0.462 0.066 129.573);
--accent: oklch(0.793 0.083 187.822);
--accent-foreground: oklch(0.416 0.025 189.035);
--destructive: oklch(0.59 0.137 22.162);
--destructive-foreground: oklch(0.953 0.013 17.38);
--ring: oklch(0.839 0.065 107.722);
--chart-1: oklch(0.752 0.147 130.6);
--chart-2: oklch(0.889 0.14 129.822);
--chart-3: oklch(0.793 0.083 187.822);
--chart-4: oklch(0.9 0.126 129.517);
--chart-5: oklch(0.76 0.155 130.79);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.2 0.027 108.623);
--foreground: oklch(0.979 0.001 106.424);
--muted: oklch(0.361 0.034 107.984);
--muted-foreground: oklch(0.569 0.013 106.818);
--popover: oklch(0.269 0.046 109.104);
--popover-foreground: oklch(0.979 0.001 106.424);
--card: oklch(0.271 0.046 109.129);
--card-foreground: oklch(0.979 0.001 106.424);
--border: oklch(0.32 0.056 109.172);
--input: oklch(0.32 0.055 109.152);
--primary: oklch(0.755 0.145 129.249);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.376 0.091 139.988);
--secondary-foreground: oklch(0.931 0.04 139.434);
--accent: oklch(0.818 0.144 183.227);
--accent-foreground: oklch(0.189 0.028 186.423);
--destructive: oklch(0.585 0.222 30.087);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.503 0.091 109.269);
--chart-1: oklch(0.755 0.145 129.249);
--chart-2: oklch(0.376 0.091 139.988);
--chart-3: oklch(0.818 0.144 183.227);
--chart-4: oklch(0.413 0.102 140.01);
--chart-5: oklch(0.763 0.153 129.447);
}