Extra-small is a shadcn/ui theme built around a green primary color (#327138) with red accents (#713832). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#327138) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010402black |
| Foreground | #020803black | #f8fcf8mintcream |
| Card | #ffffffwhite | #010402black |
| Card foreground | #020803black | #f8fcf8mintcream |
| Popover | #ffffffwhite | #010402black |
| Popover foreground | #020803black | #f8fcf8mintcream |
| Primary | #327138darkolivegreen | #327138darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #383271darkslateblue | #383271darkslateblue |
| Secondary foreground | #e4e3f3lavender | #e4e3f3lavender |
| Muted | #cfcce5lightgrey | #1c1a33midnightblue |
| Muted foreground | #3f3d4cdarkslategray | #b4b3c2silver |
| Accent | #713832saddlebrown | #713832saddlebrown |
| Accent foreground | #f3e4e3mistyrose | #f3e4e3mistyrose |
| Destructive | #a62f11firebrick | #ec6746tomato |
| Destructive foreground | #fdf0edseashell | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #327138darkolivegreen | #327138darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 5.87:1 | AA |
| Secondary button | 8.90:1 | AAA |
| Muted text | 6.77:1 | AA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.19:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 5.87:1 | AA |
| Secondary button | 8.90:1 | AAA |
| Muted text | 8.18:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.60:1 | AA |
Paste this into your globals.css to use Extra-small in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.122 0.022 147.355);
--muted: oklch(0.855 0.035 290.234);
--muted-foreground: oklch(0.369 0.026 289.65);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.122 0.022 147.355);
--card: oklch(1 0 180);
--card-foreground: oklch(0.122 0.022 147.355);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.493 0.11 145.612);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.359 0.106 284.241);
--secondary-foreground: oklch(0.921 0.021 290.57);
--accent: oklch(0.414 0.082 27.719);
--accent-foreground: oklch(0.931 0.016 25.136);
--destructive: oklch(0.486 0.16 34.42);
--destructive-foreground: oklch(0.964 0.015 34.298);
--ring: oklch(0.493 0.11 145.612);
--chart-1: oklch(0.493 0.11 145.612);
--chart-2: oklch(0.359 0.106 284.241);
--chart-3: oklch(0.414 0.082 27.719);
--chart-4: oklch(0.381 0.114 284.118);
--chart-5: oklch(0.499 0.117 145.416);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.016 147.446);
--foreground: oklch(0.987 0.006 148.527);
--muted: oklch(0.233 0.048 286.643);
--muted-foreground: oklch(0.771 0.021 290.486);
--popover: oklch(0.097 0.016 147.446);
--popover-foreground: oklch(0.987 0.006 148.527);
--card: oklch(0.097 0.016 147.446);
--card-foreground: oklch(0.987 0.006 148.527);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.493 0.11 145.612);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.359 0.106 284.241);
--secondary-foreground: oklch(0.921 0.021 290.57);
--accent: oklch(0.414 0.082 27.719);
--accent-foreground: oklch(0.931 0.016 25.136);
--destructive: oklch(0.673 0.171 35.21);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.493 0.11 145.612);
--chart-1: oklch(0.493 0.11 145.612);
--chart-2: oklch(0.359 0.106 284.241);
--chart-3: oklch(0.414 0.082 27.719);
--chart-4: oklch(0.381 0.114 284.118);
--chart-5: oklch(0.499 0.117 145.416);
}