Safari is a shadcn/ui theme built around a vivid green primary color (#05941d) with muted green accents (#b9c6bb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#05941d) on a green-tinted background (#060e07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060e07black |
| Foreground | #031607black | #ffffffwhite |
| Card | #fcfcfcsnow | #081209black |
| Card foreground | #031205black | #ffffffwhite |
| Popover | #fcfcfcsnow | #081209black |
| Popover foreground | #031205black | #ffffffwhite |
| Primary | #05941dforestgreen | #05941dforestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cecfcelightgrey | #1f2320black |
| Secondary foreground | #353635darkslategray | #b7beb8silver |
| Muted | #f1f3f2whitesmoke | #0c0e0cblack |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #b9c6bbsilver | #303b32darkslategray |
| Accent foreground | #222a24darkslategray | #c9d4cblightgrey |
| Destructive | #991700darkred | #ff2f0aorangered |
| Destructive foreground | #ffd4ccbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #05941dforestgreen | #05941dforestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.72:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 3.97:1 | AA Large |
| Secondary button | 7.77:1 | AAA |
| Muted text | 8.34:1 | AAA |
| Accent | 8.29:1 | AAA |
| Destructive | 6.27:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 3.97:1 | AA Large |
| Secondary button | 8.39:1 | AAA |
| Muted text | 9.78:1 | AAA |
| Accent | 7.62:1 | AAA |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Safari in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.179 0.041 148.169);
--muted: oklch(0.963 0.003 150.782);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.161 0.036 148.785);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.161 0.036 148.785);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.58 0.188 143.845);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.854 0.002 150.796);
--secondary-foreground: oklch(0.332 0.002 150.733);
--accent: oklch(0.812 0.02 150.475);
--accent-foreground: oklch(0.276 0.016 150.005);
--destructive: oklch(0.439 0.167 31.962);
--destructive-foreground: oklch(0.904 0.05 29.766);
--ring: oklch(0.58 0.188 143.845);
--chart-1: oklch(0.58 0.188 143.845);
--chart-2: oklch(0.854 0.002 150.796);
--chart-3: oklch(0.812 0.02 150.475);
--chart-4: oklch(0.877 0.001 150.801);
--chart-5: oklch(0.586 0.191 143.745);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.021 149.667);
--foreground: oklch(1 0 180);
--muted: oklch(0.159 0.004 150.45);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0.168 0.024 149.05);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.168 0.024 149.05);
--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.58 0.188 143.845);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.251 0.007 150.43);
--secondary-foreground: oklch(0.793 0.011 150.63);
--accent: oklch(0.34 0.023 149.848);
--accent-foreground: oklch(0.859 0.017 150.552);
--destructive: oklch(0.644 0.243 31.562);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.58 0.188 143.845);
--chart-1: oklch(0.58 0.188 143.845);
--chart-2: oklch(0.251 0.007 150.43);
--chart-3: oklch(0.34 0.023 149.848);
--chart-4: oklch(0.283 0.008 150.407);
--chart-5: oklch(0.586 0.191 143.745);
}