Theme1 is a shadcn/ui theme built around an indigo primary color (#6c5cc7) with violet accents (#a15cc7). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#6c5cc7) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #000000black |
| Foreground | #04030dblack | #fcfcfdwhite |
| Card | #f8f7fdghostwhite | #030303black |
| Card foreground | #030208black | #ffffffwhite |
| Popover | #f8f7fdghostwhite | #030303black |
| Popover foreground | #030208black | #ffffffwhite |
| Primary | #6c5cc7slateblue | #6c5cc7slateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #5c81c7steelblue | #5c81c7steelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d1d8e6gainsboro | #19202eblack |
| Muted foreground | #44464bdarkslategray | #b4b7bbsilver |
| Accent | #a15cc7mediumorchid | #a15cc7mediumorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d03906firebrick | #f96939tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e2e1e5gainsboro | #252429darkslategray |
| Input | #e2e1e5gainsboro | #252429darkslategray |
| Ring | #6c5cc7slateblue | #6c5cc7slateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.84:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 5.27:1 | AA |
| Secondary button | 3.86:1 | AA Large |
| Muted text | 6.59:1 | AA |
| Accent | 4.31:1 | AA Large |
| Destructive | 4.93:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.27:1 | AA |
| Secondary button | 3.86:1 | AA Large |
| Muted text | 8.06:1 | AAA |
| Accent | 4.31:1 | AA Large |
| Destructive | 7.10:1 | AAA |
Paste this into your globals.css to use Theme1 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 293.225);
--foreground: oklch(0.106 0.029 290.728);
--muted: oklch(0.881 0.021 262.997);
--muted-foreground: oklch(0.395 0.008 263.004);
--popover: oklch(0.978 0.009 293.142);
--popover-foreground: oklch(0.093 0.025 290.965);
--card: oklch(0.978 0.009 293.142);
--card-foreground: oklch(0.093 0.025 290.965);
--border: oklch(0.912 0.005 293.212);
--input: oklch(0.912 0.005 293.212);
--primary: oklch(0.544 0.161 286.634);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.607 0.115 262.006);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.598 0.17 312.365);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.568 0.194 35.386);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.544 0.161 286.634);
--chart-1: oklch(0.544 0.161 286.634);
--chart-2: oklch(0.607 0.115 262.006);
--chart-3: oklch(0.598 0.17 312.365);
--chart-4: oklch(0.635 0.106 262.156);
--chart-5: oklch(0.538 0.17 286.048);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 293.264);
--muted: oklch(0.245 0.029 262.492);
--muted-foreground: oklch(0.777 0.007 263.036);
--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.263 0.009 292.692);
--input: oklch(0.263 0.009 292.692);
--primary: oklch(0.544 0.161 286.634);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.607 0.115 262.006);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.598 0.17 312.365);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.693 0.187 38.271);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.544 0.161 286.634);
--chart-1: oklch(0.544 0.161 286.634);
--chart-2: oklch(0.607 0.115 262.006);
--chart-3: oklch(0.598 0.17 312.365);
--chart-4: oklch(0.635 0.106 262.156);
--chart-5: oklch(0.538 0.17 286.048);
}