Rest is a shadcn/ui theme built around a light green primary color (#ecf5e5) with muted light green accents (#dde3d9). The light mode uses a neutral background (#fafcf8). Dark mode keeps the light green primary (#ecf5e5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #000000black |
| Foreground | #091103black | #fcfdfcwhite |
| Card | #f7faf5whitesmoke | #030303black |
| Card foreground | #070d02black | #ffffffwhite |
| Popover | #f7faf5whitesmoke | #030303black |
| Popover foreground | #070d02black | #ffffffwhite |
| Primary | #ecf5e5beige | #ecf5e5beige |
| Primary foreground | #203012black | #203012black |
| Secondary | #dde3d9gainsboro | #2d3626darkslategray |
| Secondary foreground | #44503adarkslategray | #c6d0bdsilver |
| Muted | #d7e6cbgainsboro | #253419darkslategray |
| Muted foreground | #65715bdimgray | #98a48edarkseagreen |
| Accent | #dde3d9gainsboro | #2d3626darkslategray |
| Accent foreground | #44503adarkslategray | #c6d0bdsilver |
| Destructive | #cd2604firebrick | #e62a05orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ecf5e5beige | #ecf5e5beige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.56:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 12.60:1 | AAA |
| Secondary button | 6.55:1 | AA |
| Muted text | 3.95:1 | AA Large |
| Accent | 6.55:1 | AA |
| Destructive | 5.42:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 12.60:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 5.09:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 4.46:1 | AA Large |
Paste this into your globals.css to use Rest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 130.485);
--foreground: oklch(0.166 0.033 130.397);
--muted: oklch(0.907 0.039 130.85);
--muted-foreground: oklch(0.532 0.037 131.121);
--popover: oklch(0.981 0.007 130.509);
--popover-foreground: oklch(0.148 0.028 129.219);
--card: oklch(0.981 0.007 130.509);
--card-foreground: oklch(0.148 0.028 129.219);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.96 0.024 130.672);
--primary-foreground: oklch(0.287 0.056 132.743);
--secondary: oklch(0.909 0.016 130.599);
--secondary-foreground: oklch(0.413 0.039 131.374);
--accent: oklch(0.909 0.016 130.599);
--accent-foreground: oklch(0.413 0.039 131.374);
--destructive: oklch(0.547 0.205 32.047);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.96 0.024 130.672);
--chart-1: oklch(0.96 0.024 130.672);
--chart-2: oklch(0.909 0.016 130.599);
--chart-3: oklch(0.909 0.016 130.599);
--chart-4: oklch(0.93 0.012 130.558);
--chart-5: oklch(0.961 0.025 130.687);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 130.457);
--muted: oklch(0.303 0.049 132.249);
--muted-foreground: oklch(0.703 0.035 130.915);
--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.96 0.024 130.672);
--primary-foreground: oklch(0.287 0.056 132.743);
--secondary: oklch(0.319 0.029 131.355);
--secondary-foreground: oklch(0.846 0.028 130.757);
--accent: oklch(0.319 0.029 131.355);
--accent-foreground: oklch(0.846 0.028 130.757);
--destructive: oklch(0.596 0.224 31.923);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.96 0.024 130.672);
--chart-1: oklch(0.96 0.024 130.672);
--chart-2: oklch(0.319 0.029 131.355);
--chart-3: oklch(0.319 0.029 131.355);
--chart-4: oklch(0.351 0.033 131.387);
--chart-5: oklch(0.961 0.025 130.687);
}