Promise is a shadcn/ui theme built around a deep purple primary color (#120416) with deep green accents (#071604). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#120416) on a neutral background (#030204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030204black |
| Foreground | #120416black | #fbf9fbsnow |
| Card | #ffffffwhite | #030204black |
| Card foreground | #120416black | #fbf9fbsnow |
| Popover | #ffffffwhite | #030204black |
| Popover foreground | #120416black | #fbf9fbsnow |
| Primary | #120416black | #120416black |
| Primary foreground | #cb68e3orchid | #cb68e3orchid |
| Secondary | #071604black | #071604black |
| Secondary foreground | #43c224limegreen | #43c224limegreen |
| Muted | #ecefebwhitesmoke | #111410black |
| Muted foreground | #424a40darkslategray | #b7bfb5silver |
| Accent | #071604black | #071604black |
| Accent foreground | #43c224limegreen | #43c224limegreen |
| Destructive | #940f00darkred | #e61700red |
| Destructive foreground | #ffcdc7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #120416black | #120416black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 7.93:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.37:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 9.85:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 4.69:1 | AA |
Paste this into your globals.css to use Promise in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.145 0.045 319.971);
--muted: oklch(0.949 0.006 139.442);
--muted-foreground: oklch(0.398 0.019 139.434);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.145 0.045 319.971);
--card: oklch(1 0 180);
--card-foreground: oklch(0.145 0.045 319.971);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.145 0.045 319.971);
--primary-foreground: oklch(0.68 0.197 319.264);
--secondary: oklch(0.179 0.041 138.41);
--secondary-foreground: oklch(0.716 0.218 140.457);
--accent: oklch(0.179 0.041 138.41);
--accent-foreground: oklch(0.716 0.218 140.457);
--destructive: oklch(0.424 0.166 30.839);
--destructive-foreground: oklch(0.889 0.058 25.656);
--ring: oklch(0.145 0.045 319.971);
--chart-1: oklch(0.145 0.045 319.971);
--chart-2: oklch(0.179 0.041 138.41);
--chart-3: oklch(0.179 0.041 138.41);
--chart-4: oklch(0.228 0.058 139.546);
--chart-5: oklch(0.145 0.047 320.017);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.014 320.799);
--foreground: oklch(0.984 0.003 319.445);
--muted: oklch(0.185 0.009 139.433);
--muted-foreground: oklch(0.796 0.016 139.439);
--popover: oklch(0.086 0.014 320.799);
--popover-foreground: oklch(0.984 0.003 319.445);
--card: oklch(0.086 0.014 320.799);
--card-foreground: oklch(0.984 0.003 319.445);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.145 0.045 319.971);
--primary-foreground: oklch(0.68 0.197 319.264);
--secondary: oklch(0.179 0.041 138.41);
--secondary-foreground: oklch(0.716 0.218 140.457);
--accent: oklch(0.179 0.041 138.41);
--accent-foreground: oklch(0.716 0.218 140.457);
--destructive: oklch(0.586 0.233 30.327);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.145 0.045 319.971);
--chart-1: oklch(0.145 0.045 319.971);
--chart-2: oklch(0.179 0.041 138.41);
--chart-3: oklch(0.179 0.041 138.41);
--chart-4: oklch(0.228 0.058 139.546);
--chart-5: oklch(0.145 0.047 320.017);
}