Sandal is a shadcn/ui theme built around a deep blue primary color (#060d19) with deep orange accents (#191106). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#060d19) on a neutral background (#020204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020204black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #030507black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030507black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #060d19black | #060d19black |
| Primary foreground | #739eddcornflowerblue | #739eddcornflowerblue |
| Secondary | #191106black | #191106black |
| Secondary foreground | #ddb373burlywood | #ddb373burlywood |
| Muted | #f4f3f0whitesmoke | #0f0d0bblack |
| Muted foreground | #554e44darkolivegreen | #bbb4aadarkgray |
| Accent | #191106black | #191106black |
| Accent foreground | #ddb373burlywood | #ddb373burlywood |
| Destructive | #7f2b01saddlebrown | #fe6d25tomato |
| Destructive foreground | #ffccb3peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #060d19black | #060d19black |
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 | 7.08:1 | AAA |
| Secondary button | 9.57:1 | AAA |
| Muted text | 7.38:1 | AAA |
| Accent | 9.57:1 | AAA |
| Destructive | 6.48:1 | AA |
| Text on background | 20.71:1 | AAA |
| Text on card | 20.43:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 9.57:1 | AAA |
| Muted text | 9.43:1 | AAA |
| Accent | 9.57:1 | AAA |
| Destructive | 7.43:1 | AAA |
Paste this into your globals.css to use Sandal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.964 0.004 78.301);
--muted-foreground: oklch(0.428 0.018 78.094);
--popover: oklch(0.992 0 161.565);
--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.16 0.027 256.735);
--primary-foreground: oklch(0.693 0.105 258.285);
--secondary: oklch(0.185 0.025 77.773);
--secondary-foreground: oklch(0.79 0.095 76.835);
--accent: oklch(0.185 0.025 77.773);
--accent-foreground: oklch(0.79 0.095 76.835);
--destructive: oklch(0.409 0.125 41.068);
--destructive-foreground: oklch(0.883 0.067 47.944);
--ring: oklch(0.16 0.027 256.735);
--chart-1: oklch(0.16 0.027 256.735);
--chart-2: oklch(0.185 0.025 77.773);
--chart-3: oklch(0.185 0.025 77.773);
--chart-4: oklch(0.226 0.033 75.871);
--chart-5: oklch(0.159 0.028 256.428);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.007 252.806);
--foreground: oklch(1 0 180);
--muted: oklch(0.161 0.006 78.148);
--muted-foreground: oklch(0.773 0.016 78.233);
--popover: oklch(0.111 0.009 252.806);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.111 0.009 252.806);
--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.16 0.027 256.735);
--primary-foreground: oklch(0.693 0.105 258.285);
--secondary: oklch(0.185 0.025 77.773);
--secondary-foreground: oklch(0.79 0.095 76.835);
--accent: oklch(0.185 0.025 77.773);
--accent-foreground: oklch(0.79 0.095 76.835);
--destructive: oklch(0.705 0.193 42.932);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.16 0.027 256.735);
--chart-1: oklch(0.16 0.027 256.735);
--chart-2: oklch(0.185 0.025 77.773);
--chart-3: oklch(0.185 0.025 77.773);
--chart-4: oklch(0.226 0.033 75.871);
--chart-5: oklch(0.159 0.028 256.428);
}