Tortoise is a shadcn/ui theme built around a deep green primary color (#526a10) with deep purple accents (#6a1052). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the deep green primary (#526a10) on a green-tinted background (#090b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #090b04black |
| Foreground | #070902black | #ffffffwhite |
| Card | #fbfcf8snow | #090b04black |
| Card foreground | #070902black | #ffffffwhite |
| Popover | #fbfcf8snow | #090b04black |
| Popover foreground | #070902black | #ffffffwhite |
| Primary | #526a10darkolivegreen | #526a10darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #10526adarkslategray | #10526adarkslategray |
| Secondary foreground | #b8e4f4paleturquoise | #b8e4f4paleturquoise |
| Muted | #e3eef2lavender | #0d181cblack |
| Muted foreground | #414a4edarkslategray | #b1bbbesilver |
| Accent | #6a1052purple | #6a1052purple |
| Accent foreground | #f4b8e4pink | #f4b8e4pink |
| Destructive | #bb4c0cchocolate | #f16b1echocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #526a10darkolivegreen | #526a10darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 6.08:1 | AA |
| Secondary button | 6.30:1 | AA |
| Muted text | 7.69:1 | AAA |
| Accent | 7.06:1 | AAA |
| Destructive | 5.05:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 6.08:1 | AA |
| Secondary button | 6.30:1 | AA |
| Muted text | 9.20:1 | AAA |
| Accent | 7.06:1 | AAA |
| Destructive | 6.84:1 | AA |
Paste this into your globals.css to use Tortoise in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 118.68);
--foreground: oklch(0.132 0.023 118.666);
--muted: oklch(0.942 0.013 221.434);
--muted-foreground: oklch(0.403 0.013 221.656);
--popover: oklch(0.99 0.006 118.68);
--popover-foreground: oklch(0.132 0.023 118.666);
--card: oklch(0.99 0.006 118.68);
--card-foreground: oklch(0.132 0.023 118.666);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.489 0.115 124.332);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.412 0.074 228.124);
--secondary-foreground: oklch(0.894 0.051 222.014);
--accent: oklch(0.363 0.141 341.737);
--accent-foreground: oklch(0.851 0.09 336.273);
--destructive: oklch(0.556 0.158 43.734);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.489 0.115 124.332);
--chart-1: oklch(0.489 0.115 124.332);
--chart-2: oklch(0.412 0.074 228.124);
--chart-3: oklch(0.363 0.141 341.737);
--chart-4: oklch(0.447 0.081 228.354);
--chart-5: oklch(0.495 0.117 124.535);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.016 118.729);
--foreground: oklch(1 0 180);
--muted: oklch(0.2 0.018 222.783);
--muted-foreground: oklch(0.784 0.012 221.44);
--popover: oklch(0.144 0.016 118.729);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.016 118.729);
--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.489 0.115 124.332);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.412 0.074 228.124);
--secondary-foreground: oklch(0.894 0.051 222.014);
--accent: oklch(0.363 0.141 341.737);
--accent-foreground: oklch(0.851 0.09 336.273);
--destructive: oklch(0.682 0.183 45.084);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.489 0.115 124.332);
--chart-1: oklch(0.489 0.115 124.332);
--chart-2: oklch(0.412 0.074 228.124);
--chart-3: oklch(0.363 0.141 341.737);
--chart-4: oklch(0.447 0.081 228.354);
--chart-5: oklch(0.495 0.117 124.535);
}