Sunglasses for shadcn/ui

Sunglasses 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 (#fcf8f8). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#0c0404).

Color palette

TokenLightDark
Background
#fcf8f8snow
#0c0404black
Foreground
#150505black
#faf5f5whitesmoke
Card
#faf4f4whitesmoke
#100505black
Card foreground
#110404black
#fbf8f8snow
Popover
#faf4f4whitesmoke
#100505black
Popover foreground
#110404black
#fbf8f8snow
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#ffffffwhite
#ffffffwhite
Secondary foreground
#333333darkslategray
#333333darkslategray
Muted
#ebe5e5linen
#1a1414black
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#ffffffwhite
#ffffffwhite
Accent foreground
#333333darkslategray
#333333darkslategray
Destructive
#8f1105darkred
#f61d09red
Destructive foreground
#fdcdc9pink
#ffffffwhite
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 background18.84:1AAA
Text on card18.56:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text6.07:1AA
Accent12.63:1AAA
Destructive6.57:1AA
Dark mode
Text on background18.83:1AAA
Text on card19.04:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text7.94:1AAA
Accent12.63:1AAA
Destructive4.11:1AA Large

CSS variables

Paste this into your globals.css to use Sunglasses in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 17.233);
  --foreground: oklch(0.143 0.031 21.755);
  --muted: oklch(0.926 0.007 17.292);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(0.973 0.007 17.272);
  --popover-foreground: oklch(0.131 0.027 21.472);
  --card: oklch(0.973 0.007 17.272);
  --card-foreground: oklch(0.131 0.027 21.472);
  --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.415 0.16 30.221);
  --destructive-foreground: oklch(0.889 0.055 24.288);
  --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.12 0.019 20.328);
  --foreground: oklch(0.974 0.005 17.239);
  --muted: oklch(0.198 0.011 18.156);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0.133 0.022 20.498);
  --popover-foreground: oklch(0.983 0.003 17.211);
  --card: oklch(0.133 0.022 20.498);
  --card-foreground: oklch(0.983 0.003 17.211);
  --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.619 0.244 30.024);
  --destructive-foreground: oklch(1 0 180);
  --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);
}