Explorer is a shadcn/ui theme built around a neutral gray primary color (#292424) with neutral gray accents (#242429). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#292424) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030202black |
| Foreground | #000000black | #f9f5f5whitesmoke |
| Card | #fcfcfcsnow | #070303black |
| Card foreground | #000000black | #fbf9f9snow |
| Popover | #fcfcfcsnow | #070303black |
| Popover foreground | #000000black | #fbf9f9snow |
| Primary | #292424darkslategray | #292424darkslategray |
| Primary foreground | #c3bbbcsilver | #c3bbbcsilver |
| Secondary | #242924darkslategray | #242924darkslategray |
| Secondary foreground | #bcc3bbsilver | #bcc3bbsilver |
| Muted | #ecefecwhitesmoke | #101310black |
| Muted foreground | #586b57dimgray | #95a894darkseagreen |
| Accent | #242429darkslategray | #242429darkslategray |
| Accent foreground | #bbbcc3silver | #bbbcc3silver |
| Destructive | #a32d0ffirebrick | #e53f15orangered |
| Destructive foreground | #fdece8linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #292424darkslategray | #292424darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.14:1 | AAA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 4.94:1 | AA |
| Accent | 8.16:1 | AAA |
| Destructive | 6.23:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 8.14:1 | AAA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 7.37:1 | AAA |
| Accent | 8.16:1 | AAA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Explorer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.948 0.005 145.06);
--muted-foreground: oklch(0.505 0.038 144.556);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.265 0.007 16.44);
--primary-foreground: oklch(0.8 0.009 16.165);
--secondary: oklch(0.273 0.011 144.825);
--secondary-foreground: oklch(0.809 0.013 144.984);
--accent: oklch(0.262 0.008 285.033);
--accent-foreground: oklch(0.796 0.011 285.379);
--destructive: oklch(0.478 0.159 34.307);
--destructive-foreground: oklch(0.955 0.019 34.297);
--ring: oklch(0.265 0.007 16.44);
--chart-1: oklch(0.265 0.007 16.44);
--chart-2: oklch(0.273 0.011 144.825);
--chart-3: oklch(0.262 0.008 285.033);
--chart-4: oklch(0.305 0.012 144.813);
--chart-5: oklch(0.263 0.01 16.694);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.008 17.543);
--foreground: oklch(0.974 0.004 16.051);
--muted: oklch(0.184 0.008 144.785);
--muted-foreground: oklch(0.71 0.035 144.748);
--popover: oklch(0.109 0.011 17.543);
--popover-foreground: oklch(0.983 0.003 16.025);
--card: oklch(0.109 0.011 17.543);
--card-foreground: oklch(0.983 0.003 16.025);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.265 0.007 16.44);
--primary-foreground: oklch(0.8 0.009 16.165);
--secondary: oklch(0.273 0.011 144.825);
--secondary-foreground: oklch(0.809 0.013 144.984);
--accent: oklch(0.262 0.008 285.033);
--accent-foreground: oklch(0.796 0.011 285.379);
--destructive: oklch(0.61 0.208 34.066);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.265 0.007 16.44);
--chart-1: oklch(0.265 0.007 16.44);
--chart-2: oklch(0.273 0.011 144.825);
--chart-3: oklch(0.262 0.008 285.033);
--chart-4: oklch(0.305 0.012 144.813);
--chart-5: oklch(0.263 0.01 16.694);
}