Tortoise is a shadcn/ui theme built around a light purple primary color (#f7edf7) with neutral gray accents (#d2d1d2). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the light purple primary (#f7edf7) on a purple-tinted background (#100410).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fcsnow | #100410black |
| Foreground | #080208black | #ffffffwhite |
| Card | #faf4faghostwhite | #140514black |
| Card foreground | #040104black | #ffffffwhite |
| Popover | #fcf8fcsnow | #100410black |
| Popover foreground | #080208black | #ffffffwhite |
| Primary | #f7edf7whitesmoke | #f7edf7whitesmoke |
| Primary foreground | #7d367drebeccapurple | #7d367drebeccapurple |
| Secondary | #d2d1d2lightgrey | #2b272bdarkslategray |
| Secondary foreground | #393839darkslategray | #c5bfc5silver |
| Muted | #e2d5e2gainsboro | #2a1d2adarkslategray |
| Muted foreground | #553f55darkslategray | #c0aac0silver |
| Accent | #d2d1d2lightgrey | #2b272bdarkslategray |
| Accent foreground | #393839darkslategray | #c5bfc5silver |
| Destructive | #750b06maroon | #db150ared |
| Destructive foreground | #fbb5b1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f7edf7whitesmoke | #f7edf7whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.51:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 6.84:1 | AA |
| Secondary button | 7.63:1 | AAA |
| Muted text | 6.64:1 | AA |
| Accent | 7.63:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 6.84:1 | AA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 7.44:1 | AAA |
| Accent | 8.17:1 | AAA |
| Destructive | 5.08:1 | AA |
Paste this into your globals.css to use Tortoise in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.007 325.629);
--foreground: oklch(0.108 0.027 327.249);
--muted: oklch(0.886 0.023 325.773);
--muted-foreground: oklch(0.4 0.047 326.404);
--popover: oklch(0.983 0.007 325.629);
--popover-foreground: oklch(0.108 0.027 327.249);
--card: oklch(0.974 0.01 325.656);
--card-foreground: oklch(0.086 0.022 327.249);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.957 0.017 325.711);
--primary-foreground: oklch(0.456 0.136 327.523);
--secondary: oklch(0.861 0.002 325.59);
--secondary-foreground: oklch(0.34 0.002 325.631);
--accent: oklch(0.861 0.002 325.59);
--accent-foreground: oklch(0.34 0.002 325.631);
--destructive: oklch(0.359 0.139 29.478);
--destructive-foreground: oklch(0.837 0.083 22.375);
--ring: oklch(0.957 0.017 325.711);
--chart-1: oklch(0.957 0.017 325.711);
--chart-2: oklch(0.861 0.002 325.59);
--chart-3: oklch(0.861 0.002 325.59);
--chart-4: oklch(0.884 0.001 325.587);
--chart-5: oklch(0.957 0.019 325.721);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.035 327.253);
--foreground: oklch(1 0 180);
--muted: oklch(0.253 0.032 326.468);
--muted-foreground: oklch(0.764 0.04 325.959);
--popover: oklch(0.139 0.035 327.253);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.152 0.04 327.321);
--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.957 0.017 325.711);
--primary-foreground: oklch(0.456 0.136 327.523);
--secondary: oklch(0.278 0.009 325.828);
--secondary-foreground: oklch(0.811 0.011 325.676);
--accent: oklch(0.278 0.009 325.828);
--accent-foreground: oklch(0.811 0.011 325.676);
--destructive: oklch(0.566 0.224 29.485);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.957 0.017 325.711);
--chart-1: oklch(0.957 0.017 325.711);
--chart-2: oklch(0.278 0.009 325.828);
--chart-3: oklch(0.278 0.009 325.828);
--chart-4: oklch(0.308 0.011 325.838);
--chart-5: oklch(0.957 0.019 325.721);
}