Mission is a shadcn/ui theme built around a vivid yellow primary color (#fab81e) with vivid blue accents (#1e60fa). The light mode uses a neutral background (#fefdfb). Dark mode keeps the vivid yellow primary (#fab81e) on a yellow-tinted background (#100d04).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #100d04black |
| Foreground | #120d02black | #ffffffwhite |
| Card | #fdfbf7snow | #141005black |
| Card foreground | #0e0a02black | #ffffffwhite |
| Popover | #fefdfbsnow | #100d04black |
| Popover foreground | #120d02black | #ffffffwhite |
| Primary | #fab81eorange | #fab81eorange |
| Primary foreground | #4b3502saddlebrown | #4b3502saddlebrown |
| Secondary | #1e60faroyalblue | #1e60faroyalblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #efeff0whitesmoke | #0f0f10black |
| Muted foreground | #373c49darkslategray | #b6bcc8silver |
| Accent | #1e60faroyalblue | #1e60faroyalblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6d1c08maroon | #e83c11orangered |
| Destructive foreground | #f9bdaelightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fab81eorange | #fab81eorange |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.05:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 5.09:1 | AA |
| Muted text | 9.61:1 | AAA |
| Accent | 5.09:1 | AA |
| Destructive | 7.07:1 | AAA |
| Text on background | 19.44:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 5.09:1 | AA |
| Muted text | 10.05:1 | AAA |
| Accent | 5.09:1 | AA |
| Destructive | 4.10:1 | AA Large |
Paste this into your globals.css to use Mission in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 87.435);
--foreground: oklch(0.163 0.026 90.913);
--muted: oklch(0.953 0.002 267.411);
--muted-foreground: oklch(0.357 0.023 266.929);
--popover: oklch(0.994 0.003 87.435);
--popover-foreground: oklch(0.163 0.026 90.913);
--card: oklch(0.989 0.006 87.451);
--card-foreground: oklch(0.146 0.024 93.439);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.823 0.164 81.431);
--primary-foreground: oklch(0.345 0.07 82.286);
--secondary: oklch(0.552 0.239 263.215);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.552 0.239 263.215);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.359 0.117 34.513);
--destructive-foreground: oklch(0.849 0.072 34.455);
--ring: oklch(0.823 0.164 81.431);
--chart-1: oklch(0.823 0.164 81.431);
--chart-2: oklch(0.552 0.239 263.215);
--chart-3: oklch(0.552 0.239 263.215);
--chart-4: oklch(0.576 0.224 263.429);
--chart-5: oklch(0.83 0.167 81.002);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.02 90.114);
--foreground: oklch(1 0 180);
--muted: oklch(0.168 0.002 267.335);
--muted-foreground: oklch(0.794 0.019 267.27);
--popover: oklch(0.159 0.02 90.114);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.174 0.023 88.562);
--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.823 0.164 81.431);
--primary-foreground: oklch(0.345 0.07 82.286);
--secondary: oklch(0.552 0.239 263.215);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.552 0.239 263.215);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.615 0.214 33.821);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.823 0.164 81.431);
--chart-1: oklch(0.823 0.164 81.431);
--chart-2: oklch(0.552 0.239 263.215);
--chart-3: oklch(0.552 0.239 263.215);
--chart-4: oklch(0.576 0.224 263.429);
--chart-5: oklch(0.83 0.167 81.002);
}