Announcement is a shadcn/ui theme built around a neutral gray primary color (#303635) with neutral gray accents (#363031). The light mode uses a neutral background (#f8fcfc). Dark mode keeps the neutral gray primary (#303635) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfcmintcream | #000000black |
| Foreground | #020808black | #fcfdfdwhite |
| Card | #f8fcfcmintcream | #000000black |
| Card foreground | #020808black | #fcfdfdwhite |
| Popover | #f8fcfcmintcream | #000000black |
| Popover foreground | #020808black | #fcfdfdwhite |
| Primary | #303635darkslategray | #303635darkslategray |
| Primary foreground | #c9cfcelightgrey | #c9cfcelightgrey |
| Secondary | #363031darkslategray | #363031darkslategray |
| Secondary foreground | #cfc9calightgrey | #cfc9calightgrey |
| Muted | #e0d6d7gainsboro | #291f1fblack |
| Muted foreground | #5d4b4cdimgray | #b4a2a2darkgray |
| Accent | #363031darkslategray | #363031darkslategray |
| Accent foreground | #cfc9calightgrey | #cfc9calightgrey |
| Destructive | #a73902saddlebrown | #fd5d0dorangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #303635darkslategray | #303635darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 7.82:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 5.74:1 | AA |
| Accent | 7.89:1 | AAA |
| Destructive | 6.53:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 7.82:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 6.60:1 | AA |
| Accent | 7.89:1 | AAA |
| Destructive | 6.71:1 | AA |
Paste this into your globals.css to use Announcement in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 194.698);
--foreground: oklch(0.124 0.013 193.579);
--muted: oklch(0.885 0.011 15.024);
--muted-foreground: oklch(0.432 0.025 15.918);
--popover: oklch(0.988 0.005 194.698);
--popover-foreground: oklch(0.124 0.013 193.579);
--card: oklch(0.988 0.005 194.698);
--card-foreground: oklch(0.124 0.013 193.579);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.326 0.007 194.391);
--primary-foreground: oklch(0.849 0.006 194.667);
--secondary: oklch(0.316 0.007 15.229);
--secondary-foreground: oklch(0.841 0.006 14.916);
--accent: oklch(0.316 0.007 15.229);
--accent-foreground: oklch(0.841 0.006 14.916);
--destructive: oklch(0.497 0.154 40.158);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.326 0.007 194.391);
--chart-1: oklch(0.326 0.007 194.391);
--chart-2: oklch(0.316 0.007 15.229);
--chart-3: oklch(0.316 0.007 15.229);
--chart-4: oklch(0.346 0.008 15.242);
--chart-5: oklch(0.329 0.011 194.17);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 194.754);
--muted: oklch(0.25 0.016 16.001);
--muted-foreground: oklch(0.727 0.022 15.357);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 194.754);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.002 194.754);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.326 0.007 194.391);
--primary-foreground: oklch(0.849 0.006 194.667);
--secondary: oklch(0.316 0.007 15.229);
--secondary-foreground: oklch(0.841 0.006 14.916);
--accent: oklch(0.316 0.007 15.229);
--accent-foreground: oklch(0.841 0.006 14.916);
--destructive: oklch(0.681 0.208 40.336);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.326 0.007 194.391);
--chart-1: oklch(0.326 0.007 194.391);
--chart-2: oklch(0.316 0.007 15.229);
--chart-3: oklch(0.316 0.007 15.229);
--chart-4: oklch(0.346 0.008 15.242);
--chart-5: oklch(0.329 0.011 194.17);
}