Frail is a shadcn/ui theme built around a deep yellow primary color (#161309) with deep blue accents (#090b16). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#161309) on a yellow-tinted background (#0c0a04).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0a04black |
| Foreground | #080702black | #fcfbf8snow |
| Card | #ffffffwhite | #0c0a04black |
| Card foreground | #080702black | #fcfbf8snow |
| Popover | #ffffffwhite | #0c0a04black |
| Popover foreground | #080702black | #fcfbf8snow |
| Primary | #161309black | #161309black |
| Primary foreground | #a89543peru | #a89543peru |
| Secondary | #090b16black | #090b16black |
| Secondary foreground | #8391cemediumpurple | #8391cemediumpurple |
| Muted | #d1d5e5gainsboro | #1a1d2eblack |
| Muted foreground | #494c5adarkslategray | #a5a8b6darkgray |
| Accent | #090b16black | #090b16black |
| Accent foreground | #8391cemediumpurple | #8391cemediumpurple |
| Destructive | #a90f0afirebrick | #f21f18red |
| Destructive foreground | #fee8e7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #161309black | #161309black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 6.21:1 | AA |
| Secondary button | 6.44:1 | AA |
| Muted text | 5.83:1 | AA |
| Accent | 6.44:1 | AA |
| Destructive | 6.50:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 6.21:1 | AA |
| Secondary button | 6.44:1 | AA |
| Muted text | 7.03:1 | AAA |
| Accent | 6.44:1 | AA |
| Destructive | 4.22: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.129 0.018 100.769);
--muted: oklch(0.875 0.023 275.813);
--muted-foreground: oklch(0.42 0.022 275.405);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.129 0.018 100.769);
--card: oklch(1 0 180);
--card-foreground: oklch(0.129 0.018 100.769);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.188 0.02 97.105);
--primary-foreground: oklch(0.67 0.105 96.771);
--secondary: oklch(0.154 0.023 273.487);
--secondary-foreground: oklch(0.669 0.092 273.96);
--accent: oklch(0.154 0.023 273.487);
--accent-foreground: oklch(0.669 0.092 273.96);
--destructive: oklch(0.466 0.184 29.113);
--destructive-foreground: oklch(0.947 0.024 19.972);
--ring: oklch(0.188 0.02 97.105);
--chart-1: oklch(0.188 0.02 97.105);
--chart-2: oklch(0.154 0.023 273.487);
--chart-3: oklch(0.154 0.023 273.487);
--chart-4: oklch(0.182 0.034 273.041);
--chart-5: oklch(0.19 0.022 97.15);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.017 99.655);
--foreground: oklch(0.988 0.004 96.214);
--muted: oklch(0.237 0.032 274.008);
--muted-foreground: oklch(0.734 0.019 275.807);
--popover: oklch(0.145 0.017 99.655);
--popover-foreground: oklch(0.988 0.004 96.214);
--card: oklch(0.145 0.017 99.655);
--card-foreground: oklch(0.988 0.004 96.214);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.188 0.02 97.105);
--primary-foreground: oklch(0.67 0.105 96.771);
--secondary: oklch(0.154 0.023 273.487);
--secondary-foreground: oklch(0.669 0.092 273.96);
--accent: oklch(0.154 0.023 273.487);
--accent-foreground: oklch(0.669 0.092 273.96);
--destructive: oklch(0.612 0.238 28.992);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.188 0.02 97.105);
--chart-1: oklch(0.188 0.02 97.105);
--chart-2: oklch(0.154 0.023 273.487);
--chart-3: oklch(0.154 0.023 273.487);
--chart-4: oklch(0.182 0.034 273.041);
--chart-5: oklch(0.19 0.022 97.15);
}