Index is a shadcn/ui theme built around a near-black primary color (#060703) with near-black accents (#040703). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the near-black primary (#060703) on a neutral background (#060703).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #060703black |
| Foreground | #0e1202black | #fafbf9snow |
| Card | #fbfdf7snow | #060703black |
| Card foreground | #0e1202black | #fafbf9snow |
| Popover | #fbfdf7snow | #060703black |
| Popover foreground | #0e1202black | #fafbf9snow |
| Primary | #060703black | #060703black |
| Primary foreground | #adc07cdarkkhaki | #adc07cdarkkhaki |
| Secondary | #070603black | #070603black |
| Secondary foreground | #c0b17cdarkkhaki | #c0b17cdarkkhaki |
| Muted | #e3e2degainsboro | #21201cblack |
| Muted foreground | #5f5e58dimgray | #a7a5a0darkgray |
| Accent | #040703black | #040703black |
| Accent foreground | #8bc07cdarkseagreen | #8bc07cdarkseagreen |
| Destructive | #6e0907maroon | #f12b27crimson |
| Destructive foreground | #faafaelightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #060703black | #060703black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.51:1 | AAA |
| Text on card | 18.51:1 | AAA |
| Primary button | 10.21:1 | AAA |
| Secondary button | 9.47:1 | AAA |
| Muted text | 5.00:1 | AA |
| Accent | 9.57:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 19.42:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 10.21:1 | AAA |
| Secondary button | 9.47:1 | AAA |
| Muted text | 6.63:1 | AA |
| Accent | 9.57:1 | AAA |
| Destructive | 4.10:1 | AA Large |
Paste this into your globals.css to use Index in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.008 119.442);
--foreground: oklch(0.173 0.035 121.37);
--muted: oklch(0.911 0.005 93.92);
--muted-foreground: oklch(0.481 0.009 94.064);
--popover: oklch(0.991 0.008 119.442);
--popover-foreground: oklch(0.173 0.035 121.37);
--card: oklch(0.991 0.008 119.442);
--card-foreground: oklch(0.173 0.035 121.37);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.124 0.012 119.287);
--primary-foreground: oklch(0.777 0.093 121.464);
--secondary: oklch(0.122 0.01 96.85);
--secondary-foreground: oklch(0.761 0.073 94.495);
--accent: oklch(0.121 0.014 137.806);
--accent-foreground: oklch(0.754 0.109 139.018);
--destructive: oklch(0.344 0.133 28.539);
--destructive-foreground: oklch(0.824 0.088 20.227);
--ring: oklch(0.124 0.012 119.287);
--chart-1: oklch(0.124 0.012 119.287);
--chart-2: oklch(0.122 0.01 96.85);
--chart-3: oklch(0.121 0.014 137.806);
--chart-4: oklch(0.17 0.014 94.654);
--chart-5: oklch(0.125 0.013 119.285);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.015 119.282);
--foreground: oklch(0.987 0.004 119.366);
--muted: oklch(0.242 0.006 94.131);
--muted-foreground: oklch(0.722 0.008 93.988);
--popover: oklch(0.127 0.015 119.282);
--popover-foreground: oklch(0.987 0.004 119.366);
--card: oklch(0.127 0.015 119.282);
--card-foreground: oklch(0.987 0.004 119.366);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.124 0.012 119.287);
--primary-foreground: oklch(0.777 0.093 121.464);
--secondary: oklch(0.122 0.01 96.85);
--secondary-foreground: oklch(0.761 0.073 94.495);
--accent: oklch(0.121 0.014 137.806);
--accent-foreground: oklch(0.754 0.109 139.018);
--destructive: oklch(0.618 0.231 27.939);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.124 0.012 119.287);
--chart-1: oklch(0.124 0.012 119.287);
--chart-2: oklch(0.122 0.01 96.85);
--chart-3: oklch(0.121 0.014 137.806);
--chart-4: oklch(0.17 0.014 94.654);
--chart-5: oklch(0.125 0.013 119.285);
}