Ambassador is a shadcn/ui theme built around a vivid deep green primary color (#074514) with muted light green accents (#cbd2cc). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#074514) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #010903black | #f8fbf9mintcream |
| Card | #ffffffwhite | #000000black |
| Card foreground | #010903black | #f8fbf9mintcream |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #010903black | #f8fbf9mintcream |
| Primary | #074514darkgreen | #074514darkgreen |
| Primary foreground | #2fe954limegreen | #2fe954limegreen |
| Secondary | #cbd2cclightgrey | #1b271dblack |
| Secondary foreground | #313a33darkslategray | #adc7b2silver |
| Muted | #edf2eewhitesmoke | #0d120eblack |
| Muted foreground | #4c6150darkslategray | #9eb3a2darkgray |
| Accent | #cbd2cclightgrey | #1b271dblack |
| Accent foreground | #313a33darkslategray | #adc7b2silver |
| Destructive | #ab0803darkred | #fc2e27orangered |
| Destructive foreground | #ffe2e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #074514darkgreen | #074514darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 7.66:1 | AAA |
| Destructive | 6.22:1 | AA |
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 8.51:1 | AAA |
| Muted text | 8.49:1 | AAA |
| Accent | 8.51:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Ambassador in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.028 150.814);
--muted: oklch(0.957 0.008 151.883);
--muted-foreground: oklch(0.471 0.037 150.768);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.125 0.028 150.814);
--card: oklch(1 0 180);
--card-foreground: oklch(0.125 0.028 150.814);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.342 0.099 145.703);
--primary-foreground: oklch(0.818 0.239 145.59);
--secondary: oklch(0.857 0.012 151.796);
--secondary-foreground: oklch(0.337 0.017 151.247);
--accent: oklch(0.857 0.012 151.796);
--accent-foreground: oklch(0.337 0.017 151.247);
--destructive: oklch(0.468 0.188 29.497);
--destructive-foreground: oklch(0.936 0.032 20.101);
--ring: oklch(0.342 0.099 145.703);
--chart-1: oklch(0.342 0.099 145.703);
--chart-2: oklch(0.857 0.012 151.796);
--chart-3: oklch(0.857 0.012 151.796);
--chart-4: oklch(0.88 0.01 151.835);
--chart-5: oklch(0.346 0.102 145.561);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.005 151.934);
--muted: oklch(0.174 0.012 150.943);
--muted-foreground: oklch(0.745 0.033 151.323);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.005 151.934);
--card: oklch(0 0 0);
--card-foreground: oklch(0.986 0.005 151.934);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.342 0.099 145.703);
--primary-foreground: oklch(0.818 0.239 145.59);
--secondary: oklch(0.259 0.026 150.406);
--secondary-foreground: oklch(0.805 0.041 151.223);
--accent: oklch(0.259 0.026 150.406);
--accent-foreground: oklch(0.805 0.041 151.223);
--destructive: oklch(0.639 0.238 28.47);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.342 0.099 145.703);
--chart-1: oklch(0.342 0.099 145.703);
--chart-2: oklch(0.259 0.026 150.406);
--chart-3: oklch(0.259 0.026 150.406);
--chart-4: oklch(0.293 0.031 150.312);
--chart-5: oklch(0.346 0.102 145.561);
}