Glossy for shadcn/ui

Glossy is a shadcn/ui theme built around an orange primary color (#db7e48) with blue accents (#48a5db). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the orange primary (#db7e48) on a neutral background (#080403).

Color palette

TokenLightDark
Background
#fcf9f8snow
#080403black
Foreground
#000000black
#ffffffwhite
Card
#fcf9f8snow
#080403black
Card foreground
#000000black
#ffffffwhite
Popover
#fcf9f8snow
#080403black
Popover foreground
#000000black
#ffffffwhite
Primary
#db7e48peru
#db7e48peru
Primary foreground
#000000black
#000000black
Secondary
#48a5dbcornflowerblue
#48a5dbcornflowerblue
Secondary foreground
#000000black
#000000black
Muted
#e3e9edlavender
#12181cblack
Muted foreground
#3a454bdarkslategray
#b4bfc5silver
Accent
#48a5dbcornflowerblue
#48a5dbcornflowerblue
Accent foreground
#000000black
#000000black
Destructive
#953509saddlebrown
#de4f0dchocolate
Destructive foreground
#fce1d4antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#db7e48peru
#db7e48peru

Contrast

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

Light mode
Text on background20.08:1AAA
Text on card20.08:1AAA
Primary button7.07:1AAA
Secondary button7.67:1AAA
Muted text8.06:1AAA
Accent7.67:1AAA
Destructive6.01:1AA
Dark mode
Text on background20.38:1AAA
Text on card20.38:1AAA
Primary button7.07:1AAA
Secondary button7.67:1AAA
Muted text9.52:1AAA
Accent7.67:1AAA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 52.536);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.931 0.009 232.715);
  --muted-foreground: oklch(0.382 0.018 233.318);
  --popover: oklch(0.985 0.003 52.536);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.003 52.536);
  --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.684 0.134 49.15);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.689 0.118 237.434);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.689 0.118 237.434);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.463 0.139 40.412);
  --destructive-foreground: oklch(0.928 0.036 46.463);
  --ring: oklch(0.684 0.134 49.15);
  --chart-1: oklch(0.684 0.134 49.15);
  --chart-2: oklch(0.689 0.118 237.434);
  --chart-3: oklch(0.689 0.118 237.434);
  --chart-4: oklch(0.709 0.111 236.649);
  --chart-5: oklch(0.686 0.14 48.888);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.011 59.761);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.206 0.013 233.604);
  --muted-foreground: oklch(0.798 0.015 232.853);
  --popover: oklch(0.115 0.011 59.761);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.115 0.011 59.761);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.684 0.134 49.15);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.689 0.118 237.434);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.689 0.118 237.434);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.616 0.19 39.687);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.684 0.134 49.15);
  --chart-1: oklch(0.684 0.134 49.15);
  --chart-2: oklch(0.689 0.118 237.434);
  --chart-3: oklch(0.689 0.118 237.434);
  --chart-4: oklch(0.709 0.111 236.649);
  --chart-5: oklch(0.686 0.14 48.888);
}