Glorious for shadcn/ui

Glorious is a shadcn/ui theme built around a muted blue primary color (#5b879f) with muted blue accents (#5b659f). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted blue primary (#5b879f) on a blue-tinted background (#070b0e).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#070b0eblack
Foreground
#010304black
#f6f8f9whitesmoke
Card
#fcfdfdwhite
#070b0eblack
Card foreground
#010304black
#f6f8f9whitesmoke
Popover
#fcfdfdwhite
#070b0eblack
Popover foreground
#010304black
#f6f8f9whitesmoke
Primary
#5b879fcadetblue
#5b879fcadetblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5b9f95cadetblue
#5b9f95cadetblue
Secondary foreground
#000000black
#000000black
Muted
#d3dedcgainsboro
#212c2adarkslategray
Muted foreground
#515857dimgray
#a7aeaddarkgray
Accent
#5b659fslategray
#5b659fslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c52f02firebrick
#f73c02orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5b879fcadetblue
#5b879fcadetblue

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button3.87:1AA Large
Secondary button6.81:1AA
Muted text5.29:1AA
Accent5.49:1AA
Destructive5.54:1AA
Dark mode
Text on background18.53:1AAA
Text on card18.53:1AAA
Primary button3.87:1AA Large
Secondary button6.81:1AA
Muted text6.40:1AA
Accent5.49:1AA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.001 230.679);
  --foreground: oklch(0.093 0.012 222.672);
  --muted: oklch(0.892 0.012 186.26);
  --muted-foreground: oklch(0.452 0.009 186.102);
  --popover: oklch(0.992 0.001 230.679);
  --popover-foreground: oklch(0.093 0.012 222.672);
  --card: oklch(0.992 0.001 230.679);
  --card-foreground: oklch(0.093 0.012 222.672);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.601 0.06 232.635);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.654 0.071 183.414);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.525 0.091 275.199);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.54 0.191 34.398);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.601 0.06 232.635);
  --chart-1: oklch(0.601 0.06 232.635);
  --chart-2: oklch(0.654 0.071 183.414);
  --chart-3: oklch(0.525 0.091 275.199);
  --chart-4: oklch(0.677 0.07 183.623);
  --chart-5: oklch(0.603 0.066 232.935);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.01 229.64);
  --foreground: oklch(0.977 0.002 230.69);
  --muted: oklch(0.281 0.015 185.173);
  --muted-foreground: oklch(0.746 0.008 186.331);
  --popover: oklch(0.147 0.01 229.64);
  --popover-foreground: oklch(0.977 0.002 230.69);
  --card: oklch(0.147 0.01 229.64);
  --card-foreground: oklch(0.977 0.002 230.69);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.601 0.06 232.635);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.654 0.071 183.414);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.525 0.091 275.199);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.639 0.229 34.015);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.601 0.06 232.635);
  --chart-1: oklch(0.601 0.06 232.635);
  --chart-2: oklch(0.654 0.071 183.414);
  --chart-3: oklch(0.525 0.091 275.199);
  --chart-4: oklch(0.677 0.07 183.623);
  --chart-5: oklch(0.603 0.066 232.935);
}