1 is a shadcn/ui theme built around a vivid blue primary color (#297dfa) with deep teal accents (#184e4e). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#297dfa) on a blue-tinted background (#040b16).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b16black |
| Foreground | #103264midnightblue | #fcfcfdwhite |
| Card | #ffffffwhite | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfcfewhite | #0c0f12black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #297dfadodgerblue | #297dfadodgerblue |
| Primary foreground | #ffffffwhite | #030303black |
| Secondary | #184e4edarkslategray | #5acc6cmediumseagreen |
| Secondary foreground | #ecf3fealiceblue | #040b16black |
| Muted | #d7e8eagainsboro | #152628black |
| Muted foreground | #57696bdimgray | #94a6a8darkgray |
| Accent | #184e4edarkslategray | #07162cblack |
| Accent foreground | #5acc6cmediumseagreen | #297dfadodgerblue |
| Destructive | #d11010firebrick | #ef2525crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #64d0d0mediumturquoise | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #297dfadodgerblue | #297dfadodgerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.63:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 3.90:1 | AA Large |
| Secondary button | 8.40:1 | AAA |
| Muted text | 4.56:1 | AA |
| Accent | 4.59:1 | AA |
| Destructive | 5.55:1 | AA |
| Text on background | 19.24:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.31:1 | AA |
| Secondary button | 9.66:1 | AAA |
| Muted text | 6.16:1 | AA |
| Accent | 4.66:1 | AA |
| Destructive | 4.24:1 | AA Large |
Paste this into your globals.css to use 1 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.324 0.097 258.435);
--muted: oklch(0.919 0.018 204.849);
--muted-foreground: oklch(0.506 0.021 204.739);
--popover: oklch(0.991 0.003 264.542);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.794 0.099 195.339);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.609 0.203 259.054);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.389 0.056 195.114);
--secondary-foreground: oklch(0.962 0.017 259.424);
--accent: oklch(0.389 0.056 195.114);
--accent-foreground: oklch(0.757 0.17 146.804);
--destructive: oklch(0.544 0.217 28.608);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.609 0.203 259.054);
--chart-1: oklch(0.609 0.203 259.054);
--chart-2: oklch(0.389 0.056 195.114);
--chart-3: oklch(0.389 0.056 195.114);
--chart-4: oklch(0.428 0.062 195.091);
--chart-5: oklch(0.61 0.209 259.171);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.028 253.376);
--foreground: oklch(0.992 0.001 258.315);
--muted: oklch(0.255 0.023 204.729);
--muted-foreground: oklch(0.712 0.02 204.804);
--popover: oklch(0.166 0.009 258.372);
--popover-foreground: oklch(0.992 0.001 258.315);
--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.611 0.203 258.966);
--primary-foreground: oklch(0.097 0 180);
--secondary: oklch(0.757 0.17 146.804);
--secondary-foreground: oklch(0.148 0.027 255.181);
--accent: oklch(0.201 0.049 257.727);
--accent-foreground: oklch(0.611 0.203 258.966);
--destructive: oklch(0.61 0.232 27.682);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.609 0.203 259.054);
--chart-1: oklch(0.611 0.203 258.966);
--chart-2: oklch(0.757 0.17 146.804);
--chart-3: oklch(0.201 0.049 257.727);
--chart-4: oklch(0.772 0.159 147.185);
--chart-5: oklch(0.611 0.209 259.087);
}