Ambassador is a shadcn/ui theme built around a light violet primary color (#e7d2ef) with light green accents (#daefd2). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the light violet primary (#e7d2ef) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #030104black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fbf6fdghostwhite | #060308black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfbfewhite | #030104black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #e7d2eflavender | #e7d2eflavender |
| Primary foreground | #56256adarkslateblue | #56256adarkslateblue |
| Secondary | #daefd2gainsboro | #daefd2gainsboro |
| Secondary foreground | #101e0bblack | #101e0bblack |
| Muted | #e6eee3beige | #151c11black |
| Muted foreground | #4f584bdarkslategray | #abb4a7darkgray |
| Accent | #daefd2gainsboro | #daefd2gainsboro |
| Accent foreground | #101e0bblack | #101e0bblack |
| Destructive | #ca320cfirebrick | #de370dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e7d2eflavender | #e7d2eflavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 14.23:1 | AAA |
| Muted text | 6.23:1 | AA |
| Accent | 14.23:1 | AAA |
| Destructive | 5.27:1 | AA |
| Text on background | 20.76:1 | AAA |
| Text on card | 20.53:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 14.23:1 | AAA |
| Muted text | 8.11:1 | AAA |
| Accent | 14.23:1 | AAA |
| Destructive | 4.52:1 | AA |
Paste this into your globals.css to use Ambassador in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 316.593);
--foreground: oklch(0 0 0);
--muted: oklch(0.939 0.017 136.663);
--muted-foreground: oklch(0.448 0.024 136.776);
--popover: oklch(0.99 0.005 316.593);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.01 316.578);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.889 0.046 316.459);
--primary-foreground: oklch(0.367 0.122 315.167);
--secondary: oklch(0.929 0.045 136.759);
--secondary-foreground: oklch(0.217 0.041 137.435);
--accent: oklch(0.929 0.045 136.759);
--accent-foreground: oklch(0.217 0.041 137.435);
--destructive: oklch(0.553 0.194 33.688);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.889 0.046 316.459);
--chart-1: oklch(0.889 0.046 316.459);
--chart-2: oklch(0.929 0.045 136.759);
--chart-3: oklch(0.929 0.045 136.759);
--chart-4: oklch(0.947 0.034 136.717);
--chart-5: oklch(0.888 0.048 316.45);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.016 318.239);
--foreground: oklch(1 0 180);
--muted: oklch(0.217 0.024 136.991);
--muted-foreground: oklch(0.759 0.021 136.693);
--popover: oklch(0.085 0.016 318.239);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.107 0.02 318.239);
--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.889 0.046 316.459);
--primary-foreground: oklch(0.367 0.122 315.167);
--secondary: oklch(0.929 0.045 136.759);
--secondary-foreground: oklch(0.217 0.041 137.435);
--accent: oklch(0.929 0.045 136.759);
--accent-foreground: oklch(0.217 0.041 137.435);
--destructive: oklch(0.591 0.208 33.609);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.889 0.046 316.459);
--chart-1: oklch(0.889 0.046 316.459);
--chart-2: oklch(0.929 0.045 136.759);
--chart-3: oklch(0.929 0.045 136.759);
--chart-4: oklch(0.947 0.034 136.717);
--chart-5: oklch(0.888 0.048 316.45);
}