Tortilla is a shadcn/ui theme built around a pink primary color (#cd3c91) with red accents (#cd3c48). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#cd3c91) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #faf5f8whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #fcf8fasnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #faf5f8whitesmoke |
| Primary | #cd3c91mediumvioletred | #cd3c91mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c13ccdmediumorchid | #c13ccdmediumorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f1e3f2lavender | #1b0d1cblack |
| Muted foreground | #4b484bdarkslategray | #b6b4b7silver |
| Accent | #cd3c48indianred | #cd3c48indianred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ab2c0dfirebrick | #e83c11orangered |
| Destructive foreground | #fef0ecseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cd3c91mediumvioletred | #cd3c91mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 4.51:1 | AA |
| Secondary button | 4.37:1 | AA Large |
| Muted text | 7.30:1 | AAA |
| Accent | 4.83:1 | AA |
| Destructive | 6.09:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 4.51:1 | AA |
| Secondary button | 4.37:1 | AA Large |
| Muted text | 9.11:1 | AAA |
| Accent | 4.83:1 | AA |
| Destructive | 4.10:1 | AA Large |
Paste this into your globals.css to use Tortilla in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.931 0.026 323.26);
--muted-foreground: oklch(0.407 0.006 323.202);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.593 0.197 348.949);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.605 0.232 324.321);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.573 0.18 20.487);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.491 0.167 34.068);
--destructive-foreground: oklch(0.964 0.016 34.298);
--ring: oklch(0.593 0.197 348.949);
--chart-1: oklch(0.593 0.197 348.949);
--chart-2: oklch(0.605 0.232 324.321);
--chart-3: oklch(0.573 0.18 20.487);
--chart-4: oklch(0.624 0.222 324.313);
--chart-5: oklch(0.596 0.205 349.364);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.974 0.007 341.19);
--muted: oklch(0.186 0.037 323.955);
--muted-foreground: oklch(0.772 0.005 323.165);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.974 0.007 341.19);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.983 0.005 341.13);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.593 0.197 348.949);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.605 0.232 324.321);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.573 0.18 20.487);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.615 0.214 33.821);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.593 0.197 348.949);
--chart-1: oklch(0.593 0.197 348.949);
--chart-2: oklch(0.605 0.232 324.321);
--chart-3: oklch(0.573 0.18 20.487);
--chart-4: oklch(0.624 0.222 324.313);
--chart-5: oklch(0.596 0.205 349.364);
}