Attention is a shadcn/ui theme built around a muted light yellow primary color (#deddca) with muted yellow accents (#c7c6b8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light yellow primary (#deddca) on a yellow-tinted background (#0c0c03).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0c03black |
| Foreground | #111103black | #fbfbf9snow |
| Card | #ffffffwhite | #0c0c03black |
| Card foreground | #111103black | #fbfbf9snow |
| Popover | #ffffffwhite | #0c0c03black |
| Popover foreground | #111103black | #fbfbf9snow |
| Primary | #deddcalightgrey | #deddcalightgrey |
| Primary foreground | #48472ddarkolivegreen | #48472ddarkolivegreen |
| Secondary | #d7d7d5lightgrey | #363630darkslategray |
| Secondary foreground | #3f3f3bdarkslategray | #cfcfc9lightgrey |
| Muted | #f2f2eewhitesmoke | #11110dblack |
| Muted foreground | #434342darkslategray | #bdbdbcsilver |
| Accent | #c7c6b8silver | #4a493bdarkslategray |
| Accent foreground | #2b2b22darkslategray | #dfdfd7gainsboro |
| Destructive | #7f0301maroon | #f90501red |
| Destructive foreground | #ffb4b3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #deddcalightgrey | #deddcalightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.99:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 8.79:1 | AAA |
| Accent | 8.31:1 | AAA |
| Destructive | 6.50:1 | AA |
| Text on background | 18.94:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 10.04:1 | AAA |
| Accent | 6.79:1 | AA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Attention in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.173 0.028 107.457);
--muted: oklch(0.959 0.005 104.901);
--muted-foreground: oklch(0.382 0.002 104.906);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.173 0.028 107.457);
--card: oklch(1 0 180);
--card-foreground: oklch(0.173 0.028 107.457);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.893 0.026 105.303);
--primary-foreground: oklch(0.392 0.041 106.458);
--secondary: oklch(0.88 0.003 104.872);
--secondary-foreground: oklch(0.366 0.006 105.09);
--accent: oklch(0.824 0.02 105.23);
--accent-foreground: oklch(0.284 0.016 105.724);
--destructive: oklch(0.376 0.152 29.462);
--destructive-foreground: oklch(0.84 0.087 20.16);
--ring: oklch(0.893 0.026 105.303);
--chart-1: oklch(0.893 0.026 105.303);
--chart-2: oklch(0.88 0.003 104.872);
--chart-3: oklch(0.824 0.02 105.23);
--chart-4: oklch(0.902 0.003 104.858);
--chart-5: oklch(0.896 0.029 105.362);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.151 0.021 107.335);
--foreground: oklch(0.988 0.003 104.865);
--muted: oklch(0.177 0.008 105.539);
--muted-foreground: oklch(0.799 0.002 104.847);
--popover: oklch(0.151 0.021 107.335);
--popover-foreground: oklch(0.988 0.003 104.865);
--card: oklch(0.151 0.021 107.335);
--card-foreground: oklch(0.988 0.003 104.865);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.893 0.026 105.303);
--primary-foreground: oklch(0.392 0.041 106.458);
--secondary: oklch(0.33 0.01 105.333);
--secondary-foreground: oklch(0.853 0.008 104.973);
--accent: oklch(0.402 0.023 105.751);
--accent-foreground: oklch(0.902 0.01 105.005);
--destructive: oklch(0.617 0.252 29.334);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.893 0.026 105.303);
--chart-1: oklch(0.893 0.026 105.303);
--chart-2: oklch(0.33 0.01 105.333);
--chart-3: oklch(0.402 0.023 105.751);
--chart-4: oklch(0.362 0.011 105.347);
--chart-5: oklch(0.896 0.029 105.362);
}