Short-term is a shadcn/ui theme built around a green primary color (#93ab5f) with neutral gray accents (#d4d4d4). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#93ab5f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0f1306black | #fafbf9snow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #0f1306black | #fafbf9snow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0f1306black | #fafbf9snow |
| Primary | #93ab5fdarkkhaki | #93ab5fdarkkhaki |
| Primary foreground | #000000black | #000000black |
| Secondary | #d4d4d4lightgrey | #222220black |
| Secondary foreground | #3b3b3bdarkslategray | #bbbcb8silver |
| Muted | #e7cbcblightgrey | #2b3418darkslategray |
| Muted foreground | #725555dimgray | #a1aa8ddarkseagreen |
| Accent | #d4d4d4lightgrey | #222220black |
| Accent foreground | #3b3b3bdarkslategray | #bbbcb8silver |
| Destructive | #c64a0cchocolate | #f2641cchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #93ab5fdarkkhaki | #93ab5fdarkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.81:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 4.38:1 | AA Large |
| Accent | 7.53:1 | AAA |
| Destructive | 4.81:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 5.37:1 | AA |
| Accent | 8.34:1 | AAA |
| Destructive | 6.59:1 | AA |
Paste this into your globals.css to use Short-term in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.179 0.026 122.901);
--muted: oklch(0.865 0.031 17.767);
--muted-foreground: oklch(0.479 0.04 18.647);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.179 0.026 122.901);
--card: oklch(1 0 180);
--card-foreground: oklch(0.179 0.026 122.901);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.704 0.105 123.477);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.869 0 165.964);
--secondary-foreground: oklch(0.351 0 167.471);
--accent: oklch(0.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.57 0.17 41);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.704 0.105 123.477);
--chart-1: oklch(0.704 0.105 123.477);
--chart-2: oklch(0.869 0 165.964);
--chart-3: oklch(0.869 0 165.964);
--chart-4: oklch(0.892 0 180);
--chart-5: oklch(0.713 0.114 123.713);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.004 120.828);
--muted: oklch(0.309 0.047 123.521);
--muted-foreground: oklch(0.724 0.043 121.765);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.987 0.004 120.828);
--card: oklch(0 0 0);
--card-foreground: oklch(0.987 0.004 120.828);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.704 0.105 123.477);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.251 0.004 121.017);
--secondary-foreground: oklch(0.794 0.006 120.891);
--accent: oklch(0.251 0.004 121.017);
--accent-foreground: oklch(0.794 0.006 120.891);
--destructive: oklch(0.673 0.191 42.326);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.704 0.105 123.477);
--chart-1: oklch(0.704 0.105 123.477);
--chart-2: oklch(0.251 0.004 121.017);
--chart-3: oklch(0.251 0.004 121.017);
--chart-4: oklch(0.283 0.005 121.031);
--chart-5: oklch(0.713 0.114 123.713);
}