Safe is a shadcn/ui theme built around an orange primary color (#e78d55) with yellow accents (#e7d655). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#e78d55) on an orange-tinted background (#0c0704).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0704black |
| Foreground | #0c0703black | #ffffffwhite |
| Card | #fcfcfcsnow | #100905black |
| Card foreground | #080402black | #ffffffwhite |
| Popover | #ffffffwhite | #0c0704black |
| Popover foreground | #0c0703black | #ffffffwhite |
| Primary | #e78d55coral | #e78d55coral |
| Primary foreground | #090401black | #090401black |
| Secondary | #e75566indianred | #e75566indianred |
| Secondary foreground | #000000black | #000000black |
| Muted | #e2d0d2lightgrey | #2f1d1fblack |
| Muted foreground | #444141darkslategray | #bebbbcsilver |
| Accent | #e7d655sandybrown | #e7d655sandybrown |
| Accent foreground | #090801black | #090801black |
| Destructive | #6b2c0asaddlebrown | #ed793bcoral |
| Destructive foreground | #f8c9b0peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e78d55coral | #e78d55coral |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.05:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 5.89:1 | AA |
| Muted text | 6.80:1 | AA |
| Accent | 13.49:1 | AAA |
| Destructive | 7.00:1 | AAA |
| Text on background | 20.07:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 5.89:1 | AA |
| Muted text | 8.35:1 | AAA |
| Accent | 13.49:1 | AAA |
| Destructive | 7.40:1 | AAA |
Paste this into your globals.css to use Safe in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.015 62.688);
--muted: oklch(0.872 0.021 9.468);
--muted-foreground: oklch(0.378 0.004 9.138);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.015 62.688);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.116 0.013 63.243);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.727 0.13 51.289);
--primary-foreground: oklch(0.116 0.018 66.295);
--secondary: oklch(0.648 0.18 16.834);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.866 0.148 101.784);
--accent-foreground: oklch(0.132 0.022 104.513);
--destructive: oklch(0.378 0.1 44.443);
--destructive-foreground: oklch(0.87 0.063 49.802);
--ring: oklch(0.727 0.13 51.289);
--chart-1: oklch(0.727 0.13 51.289);
--chart-2: oklch(0.648 0.18 16.834);
--chart-3: oklch(0.866 0.148 101.784);
--chart-4: oklch(0.67 0.166 15.668);
--chart-5: oklch(0.729 0.135 51.082);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.014 61.856);
--foreground: oklch(1 0 180);
--muted: oklch(0.255 0.029 11.648);
--muted-foreground: oklch(0.795 0.003 9);
--popover: oklch(0.133 0.014 61.856);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.147 0.016 59.027);
--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.727 0.13 51.289);
--primary-foreground: oklch(0.116 0.018 66.295);
--secondary: oklch(0.648 0.18 16.834);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.866 0.148 101.784);
--accent-foreground: oklch(0.132 0.022 104.513);
--destructive: oklch(0.699 0.161 46.419);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.727 0.13 51.289);
--chart-1: oklch(0.727 0.13 51.289);
--chart-2: oklch(0.648 0.18 16.834);
--chart-3: oklch(0.866 0.148 101.784);
--chart-4: oklch(0.67 0.166 15.668);
--chart-5: oklch(0.729 0.135 51.082);
}