Frail is a shadcn/ui theme built around a vivid indigo primary color (#190792) with vivid green accents (#079219). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#190792) on an indigo-tinted background (#07060e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #07060eblack |
| Foreground | #070514black | #f6f6f9whitesmoke |
| Card | #fcfcfcsnow | #090712black |
| Card foreground | #060410black | #f9f9fbghostwhite |
| Popover | #ffffffwhite | #07060eblack |
| Popover foreground | #070514black | #f6f6f9whitesmoke |
| Primary | #190792darkblue | #190792darkblue |
| Primary foreground | #d4cefdlavender | #d4cefdlavender |
| Secondary | #921907darkred | #921907darkred |
| Secondary foreground | #fdd4cebisque | #fdd4cebisque |
| Muted | #f1efeewhitesmoke | #110e0eblack |
| Muted foreground | #625755dimgray | #aa9e9ddarkgray |
| Accent | #079219forestgreen | #079219forestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #cb2601firebrick | #ef2d01orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #190792darkblue | #190792darkblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 9.43:1 | AAA |
| Secondary button | 6.53:1 | AA |
| Muted text | 6.07:1 | AA |
| Accent | 4.08:1 | AA Large |
| Destructive | 5.50:1 | AA |
| Text on background | 18.69:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 9.43:1 | AAA |
| Secondary button | 6.53:1 | AA |
| Muted text | 7.38:1 | AAA |
| Accent | 4.08:1 | AA Large |
| Destructive | 4.17:1 | AA Large |
Paste this into your globals.css to use Frail in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.132 0.034 288.466);
--muted: oklch(0.953 0.002 27.945);
--muted-foreground: oklch(0.467 0.015 28.126);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.132 0.034 288.466);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.121 0.029 289.452);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.313 0.197 270.817);
--primary-foreground: oklch(0.872 0.064 291.125);
--secondary: oklch(0.428 0.158 31.486);
--secondary-foreground: oklch(0.904 0.046 28.279);
--accent: oklch(0.574 0.186 143.56);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.544 0.203 32.462);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.313 0.197 270.817);
--chart-1: oklch(0.313 0.197 270.817);
--chart-2: oklch(0.428 0.158 31.486);
--chart-3: oklch(0.574 0.186 143.56);
--chart-4: oklch(0.458 0.17 31.414);
--chart-5: oklch(0.314 0.201 270.061);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.02 290.595);
--foreground: oklch(0.974 0.003 292.477);
--muted: oklch(0.168 0.004 28.055);
--muted-foreground: oklch(0.71 0.013 28.037);
--popover: oklch(0.129 0.02 290.595);
--popover-foreground: oklch(0.974 0.003 292.477);
--card: oklch(0.14 0.024 289.742);
--card-foreground: oklch(0.983 0.002 292.5);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.313 0.197 270.817);
--primary-foreground: oklch(0.872 0.064 291.125);
--secondary: oklch(0.428 0.158 31.486);
--secondary-foreground: oklch(0.904 0.046 28.279);
--accent: oklch(0.574 0.186 143.56);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.613 0.23 32.234);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.313 0.197 270.817);
--chart-1: oklch(0.313 0.197 270.817);
--chart-2: oklch(0.428 0.158 31.486);
--chart-3: oklch(0.574 0.186 143.56);
--chart-4: oklch(0.458 0.17 31.414);
--chart-5: oklch(0.314 0.201 270.061);
}