Tunic is a shadcn/ui theme built around a deep orange primary color (#3d2d1a) with deep violet accents (#2d1a3d). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep orange primary (#3d2d1a) on an orange-tinted background (#0f0b05).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #0f0b05black |
| Foreground | #0c0803black | #faf8f5whitesmoke |
| Card | #fefdfbsnow | #0f0b05black |
| Card foreground | #0c0803black | #faf8f5whitesmoke |
| Popover | #fefdfbsnow | #0f0b05black |
| Popover foreground | #0c0803black | #faf8f5whitesmoke |
| Primary | #3d2d1adarkslategray | #3d2d1adarkslategray |
| Primary foreground | #dcc7acwheat | #dcc7acwheat |
| Secondary | #1a3d2ddarkslategray | #1a3d2ddarkslategray |
| Secondary foreground | #acdcc7lightblue | #acdcc7lightblue |
| Muted | #e3eee9lavender | #111c18black |
| Muted foreground | #616b67dimgray | #949e9adarkgray |
| Accent | #2d1a3dmidnightblue | #2d1a3dmidnightblue |
| Accent foreground | #c7acdcplum | #c7acdcplum |
| Destructive | #840701maroon | #ef0d01red |
| Destructive foreground | #ffbbb8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3d2d1adarkslategray | #3d2d1adarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 4.62:1 | AA |
| Accent | 7.82:1 | AAA |
| Destructive | 6.48:1 | AA |
| Text on background | 18.53:1 | AAA |
| Text on card | 18.53:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 7.82:1 | AAA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Tunic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 73.196);
--foreground: oklch(0.138 0.015 80.182);
--muted: oklch(0.938 0.013 167.412);
--muted-foreground: oklch(0.518 0.014 167.027);
--popover: oklch(0.994 0.003 73.196);
--popover-foreground: oklch(0.138 0.015 80.182);
--card: oklch(0.994 0.003 73.196);
--card-foreground: oklch(0.138 0.015 80.182);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.311 0.039 71.127);
--primary-foreground: oklch(0.84 0.043 72.73);
--secondary: oklch(0.329 0.051 162.305);
--secondary-foreground: oklch(0.856 0.058 165.771);
--accent: oklch(0.26 0.068 307.749);
--accent-foreground: oklch(0.784 0.073 309.573);
--destructive: oklch(0.388 0.155 30.034);
--destructive-foreground: oklch(0.854 0.078 22.248);
--ring: oklch(0.311 0.039 71.127);
--chart-1: oklch(0.311 0.039 71.127);
--chart-2: oklch(0.329 0.051 162.305);
--chart-3: oklch(0.26 0.068 307.749);
--chart-4: oklch(0.365 0.058 162.099);
--chart-5: oklch(0.313 0.042 70.858);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.014 75.952);
--foreground: oklch(0.979 0.004 73.187);
--muted: oklch(0.216 0.019 165.152);
--muted-foreground: oklch(0.69 0.013 167.267);
--popover: oklch(0.152 0.014 75.952);
--popover-foreground: oklch(0.979 0.004 73.187);
--card: oklch(0.152 0.014 75.952);
--card-foreground: oklch(0.979 0.004 73.187);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.311 0.039 71.127);
--primary-foreground: oklch(0.84 0.043 72.73);
--secondary: oklch(0.329 0.051 162.305);
--secondary-foreground: oklch(0.856 0.058 165.771);
--accent: oklch(0.26 0.068 307.749);
--accent-foreground: oklch(0.784 0.073 309.573);
--destructive: oklch(0.6 0.242 29.63);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.311 0.039 71.127);
--chart-1: oklch(0.311 0.039 71.127);
--chart-2: oklch(0.329 0.051 162.305);
--chart-3: oklch(0.26 0.068 307.749);
--chart-4: oklch(0.365 0.058 162.099);
--chart-5: oklch(0.313 0.042 70.858);
}