Gladiolus is a shadcn/ui theme built around an indigo primary color (#242ee0) with muted light indigo accents (#bebfd5). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the indigo primary (#242ee0) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfdwhite | #000000black |
| Foreground | #000000black | #fbfcfdwhite |
| Card | #f8f8fcghostwhite | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8f8fcghostwhite | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #242ee0mediumblue | #242ee0mediumblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dadae2gainsboro | #18181bblack |
| Secondary foreground | #3c3d4edarkslategray | #adaeb8darkgray |
| Muted | #e4e5f1lavender | #0e0f1bblack |
| Muted foreground | #58585adimgray | #a5a5a7darkgray |
| Accent | #bebfd5lightsteelblue | #23232fdarkslategray |
| Accent foreground | #26273bdarkslategray | #b9bacbsilver |
| Destructive | #e02900orangered | #e62a00orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #242ee0mediumblue | #242ee0mediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 5.67:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 4.66:1 | AA |
| Text on background | 20.44:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 7.75:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 4.48:1 | AA Large |
Paste this into your globals.css to use Gladiolus in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 283.927);
--foreground: oklch(0 0 0);
--muted: oklch(0.925 0.016 283.664);
--muted-foreground: oklch(0.463 0.003 283.87);
--popover: oklch(0.98 0.005 283.88);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.005 283.88);
--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.45 0.256 268.271);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.89 0.011 283.753);
--secondary-foreground: oklch(0.365 0.029 282.484);
--accent: oklch(0.811 0.03 283.313);
--accent-foreground: oklch(0.282 0.035 281.535);
--destructive: oklch(0.585 0.22 32.273);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.45 0.256 268.271);
--chart-1: oklch(0.45 0.256 268.271);
--chart-2: oklch(0.89 0.011 283.753);
--chart-3: oklch(0.811 0.03 283.313);
--chart-4: oklch(0.916 0.008 283.81);
--chart-5: oklch(0.449 0.264 267.608);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.99 0.002 283.929);
--muted: oklch(0.173 0.025 281.137);
--muted-foreground: oklch(0.722 0.002 283.913);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.45 0.256 268.271);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.21 0.007 283.408);
--secondary-foreground: oklch(0.753 0.014 283.634);
--accent: oklch(0.262 0.022 282.425);
--accent-foreground: oklch(0.792 0.025 283.421);
--destructive: oklch(0.595 0.224 32.24);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.45 0.256 268.271);
--chart-1: oklch(0.45 0.256 268.271);
--chart-2: oklch(0.21 0.007 283.408);
--chart-3: oklch(0.262 0.022 282.425);
--chart-4: oklch(0.241 0.008 283.353);
--chart-5: oklch(0.449 0.264 267.608);
}