Same is a shadcn/ui theme built around a teal primary color (#13864e) with orange accents (#864e13). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#13864e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #000000black |
| Foreground | #020d08black | #ffffffwhite |
| Card | #f7fdfamintcream | #030303black |
| Card foreground | #010905black | #ffffffwhite |
| Popover | #f7fdfamintcream | #030303black |
| Popover foreground | #010905black | #ffffffwhite |
| Primary | #13864eseagreen | #13864eseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #4e1386indigo | #4e1386indigo |
| Secondary foreground | #e6d2f9lavender | #e6d2f9lavender |
| Muted | #f2f0f5whitesmoke | #0d0a0fblack |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #864e13saddlebrown | #864e13saddlebrown |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d01b0bfirebrick | #df1d0cred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #13864eseagreen | #13864eseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.44:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 4.62:1 | AA |
| Secondary button | 8.47:1 | AAA |
| Muted text | 6.18:1 | AA |
| Accent | 6.72:1 | AA |
| Destructive | 5.44:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 4.62:1 | AA |
| Secondary button | 8.47:1 | AAA |
| Muted text | 8.07:1 | AAA |
| Accent | 6.72:1 | AA |
| Destructive | 4.86:1 | AA |
Paste this into your globals.css to use Same in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 165.915);
--foreground: oklch(0.146 0.025 165.422);
--muted: oklch(0.958 0.007 309.045);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(0.989 0.008 165.81);
--popover-foreground: oklch(0.126 0.021 166.247);
--card: oklch(0.989 0.008 165.81);
--card-foreground: oklch(0.126 0.021 166.247);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.547 0.129 155.313);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.359 0.171 300.865);
--secondary-foreground: oklch(0.893 0.056 308.471);
--accent: oklch(0.48 0.102 61.594);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.548 0.213 30.081);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.547 0.129 155.313);
--chart-1: oklch(0.547 0.129 155.313);
--chart-2: oklch(0.359 0.171 300.865);
--chart-3: oklch(0.48 0.102 61.594);
--chart-4: oklch(0.383 0.184 300.684);
--chart-5: oklch(0.553 0.132 154.941);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.152 0.012 308.319);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.547 0.129 155.313);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.359 0.171 300.865);
--secondary-foreground: oklch(0.893 0.056 308.471);
--accent: oklch(0.48 0.102 61.594);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.576 0.224 30.075);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.547 0.129 155.313);
--chart-1: oklch(0.547 0.129 155.313);
--chart-2: oklch(0.359 0.171 300.865);
--chart-3: oklch(0.48 0.102 61.594);
--chart-4: oklch(0.383 0.184 300.684);
--chart-5: oklch(0.553 0.132 154.941);
}