Servitude is a shadcn/ui theme built around a deep green primary color (#0e1f0f) with muted light green accents (#bcc8bc). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#0e1f0f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020802black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #010401black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #010401black | #ffffffwhite |
| Primary | #0e1f0fblack | #0e1f0fblack |
| Primary foreground | #93cd95darkseagreen | #93cd95darkseagreen |
| Secondary | #d8d9d8gainsboro | #283428darkslategray |
| Secondary foreground | #3f403fdarkslategray | #c0cec0silver |
| Muted | #eaf0eawhitesmoke | #0f150fblack |
| Muted foreground | #506251dimgray | #9daf9ddarkgray |
| Accent | #bcc8bcsilver | #2f4b30darkslategray |
| Accent foreground | #252d25darkslategray | #cde0cdlightgrey |
| Destructive | #6f1201maroon | #ed2602orangered |
| Destructive foreground | #feb2a4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0e1f0fblack | #0e1f0fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 9.29:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.66:1 | AA |
| Accent | 8.17:1 | AAA |
| Destructive | 6.87:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 9.29:1 | AAA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 7.99:1 | AAA |
| Accent | 6.95:1 | AA |
| Destructive | 4.29:1 | AA Large |
Paste this into your globals.css to use Servitude in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.122 0.025 144.935);
--muted: oklch(0.949 0.01 146.454);
--muted-foreground: oklch(0.476 0.035 145.876);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.097 0.019 144.935);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.097 0.019 144.935);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.221 0.039 144.836);
--primary-foreground: oklch(0.794 0.099 145.37);
--secondary: oklch(0.885 0.001 146.528);
--secondary-foreground: oklch(0.371 0.003 146.478);
--accent: oklch(0.82 0.021 146.314);
--accent-foreground: oklch(0.286 0.018 145.968);
--destructive: oklch(0.351 0.129 32.627);
--destructive-foreground: oklch(0.832 0.092 30.266);
--ring: oklch(0.221 0.039 144.836);
--chart-1: oklch(0.221 0.039 144.836);
--chart-2: oklch(0.885 0.001 146.528);
--chart-3: oklch(0.82 0.021 146.314);
--chart-4: oklch(0.908 0.001 146.531);
--chart-5: oklch(0.222 0.042 144.712);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.186 0.014 145.852);
--muted-foreground: oklch(0.734 0.032 146.159);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.221 0.039 144.836);
--primary-foreground: oklch(0.794 0.099 145.37);
--secondary: oklch(0.31 0.026 145.776);
--secondary-foreground: oklch(0.837 0.025 146.277);
--accent: oklch(0.383 0.057 145.131);
--accent-foreground: oklch(0.886 0.032 146.224);
--destructive: oklch(0.607 0.233 31.356);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.221 0.039 144.836);
--chart-1: oklch(0.221 0.039 144.836);
--chart-2: oklch(0.31 0.026 145.776);
--chart-3: oklch(0.383 0.057 145.131);
--chart-4: oklch(0.341 0.03 145.75);
--chart-5: oklch(0.222 0.042 144.712);
}