Glimpse is a shadcn/ui theme built around a near-white primary color (#ffffff) with near-white accents (#ffffff). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f7snow | #070303black |
| Foreground | #0e0202black | #fdfcfcsnow |
| Card | #fcf3f3lavenderblush | #0a0505black |
| Card foreground | #090101black | #ffffffwhite |
| Popover | #fcf3f3lavenderblush | #0a0505black |
| Popover foreground | #090101black | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #ffffffwhite | #ffffffwhite |
| Secondary foreground | #333333darkslategray | #333333darkslategray |
| Muted | #ede3e3mistyrose | #1c1212black |
| Muted foreground | #6e5959dimgray | #a69191rosybrown |
| Accent | #ffffffwhite | #ffffffwhite |
| Accent foreground | #333333darkslategray | #333333darkslategray |
| Destructive | #722d09saddlebrown | #f07838coral |
| Destructive foreground | #f9ccb3peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.26:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 12.63:1 | AAA |
| Muted text | 5.16:1 | AA |
| Accent | 12.63:1 | AAA |
| Destructive | 6.82:1 | AA |
| Text on background | 20.01:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 12.63:1 | AAA |
| Muted text | 6.18:1 | AA |
| Accent | 12.63:1 | AAA |
| Destructive | 7.46:1 | AAA |
Paste this into your globals.css to use Glimpse in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 17.265);
--foreground: oklch(0.113 0.031 23.351);
--muted: oklch(0.924 0.011 17.356);
--muted-foreground: oklch(0.484 0.029 18.197);
--popover: oklch(0.971 0.01 17.321);
--popover-foreground: oklch(0.098 0.026 23.261);
--card: oklch(0.971 0.01 17.321);
--card-foreground: oklch(0.098 0.026 23.261);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(1 0 180);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(1 0 180);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.391 0.107 43.905);
--destructive-foreground: oklch(0.878 0.062 49.832);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(1 0 180);
--chart-3: oklch(1 0 180);
--chart-4: oklch(1.023 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.011 19.049);
--foreground: oklch(0.992 0.001 17.17);
--muted: oklch(0.195 0.017 18.715);
--muted-foreground: oklch(0.675 0.026 17.822);
--popover: oklch(0.124 0.013 19.05);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.013 19.05);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(1 0 180);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(1 0 180);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.702 0.166 46.128);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(1 0 180);
--chart-3: oklch(1 0 180);
--chart-4: oklch(1.023 0 180);
--chart-5: oklch(1 0 180);
}