Same is a shadcn/ui theme built around a green primary color (#78e88b) with teal accents (#78e8c3). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#78e88b) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030704black |
| Foreground | #020903black | #fcfdfcwhite |
| Card | #ffffffwhite | #030704black |
| Card foreground | #020903black | #fcfdfcwhite |
| Popover | #ffffffwhite | #030704black |
| Popover foreground | #020903black | #fcfdfcwhite |
| Primary | #78e88blightgreen | #78e88blightgreen |
| Primary foreground | #07270cblack | #07270cblack |
| Secondary | #9de878lightgreen | #9de878lightgreen |
| Secondary foreground | #122707black | #122707black |
| Muted | #daded9gainsboro | #232621black |
| Muted foreground | #495841darkolivegreen | #afbea7darkgray |
| Accent | #78e8c3aquamarine | #78e8c3aquamarine |
| Accent foreground | #07271cblack | #07271cblack |
| Destructive | #d04416chocolate | #e85726chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #78e88blightgreen | #78e88blightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.13:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 10.51:1 | AAA |
| Secondary button | 10.81:1 | AAA |
| Muted text | 5.59:1 | AA |
| Accent | 10.73:1 | AAA |
| Destructive | 4.64:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 10.51:1 | AAA |
| Secondary button | 10.81:1 | AAA |
| Muted text | 7.82:1 | AAA |
| Accent | 10.73:1 | AAA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Same in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.025 149.632);
--muted: oklch(0.896 0.008 134.869);
--muted-foreground: oklch(0.44 0.041 135.333);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.025 149.632);
--card: oklch(1 0 180);
--card-foreground: oklch(0.124 0.025 149.632);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.842 0.166 147.603);
--primary-foreground: oklch(0.242 0.062 146.394);
--secondary: oklch(0.857 0.164 136.101);
--secondary-foreground: oklch(0.247 0.062 136.739);
--accent: oklch(0.854 0.117 169.445);
--accent-foreground: oklch(0.246 0.043 167.139);
--destructive: oklch(0.581 0.184 36.82);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.842 0.166 147.603);
--chart-1: oklch(0.842 0.166 147.603);
--chart-2: oklch(0.857 0.164 136.101);
--chart-3: oklch(0.854 0.117 169.445);
--chart-4: oklch(0.87 0.149 135.91);
--chart-5: oklch(0.847 0.172 147.477);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.013 150.214);
--foreground: oklch(0.993 0.001 150.806);
--muted: oklch(0.264 0.01 135.025);
--muted-foreground: oklch(0.783 0.036 135.061);
--popover: oklch(0.12 0.013 150.214);
--popover-foreground: oklch(0.993 0.001 150.806);
--card: oklch(0.12 0.013 150.214);
--card-foreground: oklch(0.993 0.001 150.806);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.842 0.166 147.603);
--primary-foreground: oklch(0.242 0.062 146.394);
--secondary: oklch(0.857 0.164 136.101);
--secondary-foreground: oklch(0.247 0.062 136.739);
--accent: oklch(0.854 0.117 169.445);
--accent-foreground: oklch(0.246 0.043 167.139);
--destructive: oklch(0.643 0.19 37.607);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.842 0.166 147.603);
--chart-1: oklch(0.842 0.166 147.603);
--chart-2: oklch(0.857 0.164 136.101);
--chart-3: oklch(0.854 0.117 169.445);
--chart-4: oklch(0.87 0.149 135.91);
--chart-5: oklch(0.847 0.172 147.477);
}