Flash is a shadcn/ui theme built around a muted deep cyan primary color (#263e40) with neutral gray accents (#e1e4e5). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted deep cyan primary (#263e40) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #000000black |
| Foreground | #010809black | #fcfdfdwhite |
| Card | #f8fbfcghostwhite | #030303black |
| Card foreground | #010404black | #ffffffwhite |
| Popover | #f8fbfcghostwhite | #030303black |
| Popover foreground | #010404black | #ffffffwhite |
| Primary | #263e40darkslategray | #263e40darkslategray |
| Primary foreground | #bfd7d9lightgrey | #bfd7d9lightgrey |
| Secondary | #e1e4e5gainsboro | #263536darkslategray |
| Secondary foreground | #464e4edarkslategray | #bdcfd1lightsteelblue |
| Muted | #dce4e5gainsboro | #1a2223black |
| Muted foreground | #525f60dimgray | #9facaddarkgray |
| Accent | #e1e4e5gainsboro | #263536darkslategray |
| Accent foreground | #464e4edarkslategray | #bdcfd1lightsteelblue |
| Destructive | #cb2301firebrick | #fe340borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #263e40darkslategray | #263e40darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 6.69:1 | AA |
| Muted text | 5.14:1 | AA |
| Accent | 6.69:1 | AA |
| Destructive | 5.56:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 6.89:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Flash in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 203.566);
--foreground: oklch(0.125 0.016 200.631);
--muted: oklch(0.913 0.009 203.491);
--muted-foreground: oklch(0.475 0.016 203.304);
--popover: oklch(0.987 0.003 203.55);
--popover-foreground: oklch(0.099 0.013 200.631);
--card: oklch(0.987 0.003 203.55);
--card-foreground: oklch(0.099 0.013 200.631);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.345 0.03 203.122);
--primary-foreground: oklch(0.862 0.026 203.33);
--secondary: oklch(0.918 0.003 203.547);
--secondary-foreground: oklch(0.416 0.011 203.366);
--accent: oklch(0.918 0.003 203.547);
--accent-foreground: oklch(0.416 0.011 203.366);
--destructive: oklch(0.542 0.205 31.961);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.345 0.03 203.122);
--chart-1: oklch(0.345 0.03 203.122);
--chart-2: oklch(0.918 0.003 203.547);
--chart-3: oklch(0.918 0.003 203.547);
--chart-4: oklch(0.94 0.002 203.557);
--chart-5: oklch(0.348 0.033 203.135);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 203.573);
--muted: oklch(0.246 0.012 203.216);
--muted-foreground: oklch(0.734 0.015 203.406);
--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.345 0.03 203.122);
--primary-foreground: oklch(0.862 0.026 203.33);
--secondary: oklch(0.315 0.02 203.155);
--secondary-foreground: oklch(0.842 0.02 203.377);
--accent: oklch(0.315 0.02 203.155);
--accent-foreground: oklch(0.842 0.02 203.377);
--destructive: oklch(0.645 0.239 32.126);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.345 0.03 203.122);
--chart-1: oklch(0.345 0.03 203.122);
--chart-2: oklch(0.315 0.02 203.155);
--chart-3: oklch(0.315 0.02 203.155);
--chart-4: oklch(0.348 0.023 203.149);
--chart-5: oklch(0.348 0.033 203.135);
}