Glimpse for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.26:1AAA
Text on card18.92:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text5.16:1AA
Accent12.63:1AAA
Destructive6.82:1AA
Dark mode
Text on background20.01:1AAA
Text on card20.25:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text6.18:1AA
Accent12.63:1AAA
Destructive7.46:1AAA

CSS variables

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);
}