Shrine for shadcn/ui

Shrine is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted light red accents (#d1b3b3). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#0b0404).

Color palette

TokenLightDark
Background
#fdf7f7snow
#0b0404black
Foreground
#0c0303black
#faf5f5whitesmoke
Card
#fdf7f7snow
#0b0404black
Card foreground
#0c0303black
#faf5f5whitesmoke
Popover
#fdf7f7snow
#0b0404black
Popover foreground
#0c0303black
#faf5f5whitesmoke
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#dececelightgrey
#392d2ddarkslategray
Secondary foreground
#493232darkslategray
#d2c6c6lightgrey
Muted
#ecdadagainsboro
#251313black
Muted foreground
#504e4edarkslategray
#b1afafdarkgray
Accent
#d1b3b3silver
#4d3333darkslategray
Accent foreground
#331f1fblack
#e0d1d1lightgrey
Destructive
#c7210ffirebrick
#ed2812orangered
Destructive foreground
#ffffffwhite
#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 background19.25:1AAA
Text on card19.25:1AAA
Primary button12.63:1AAA
Secondary button7.76:1AAA
Muted text6.13:1AA
Accent7.93:1AAA
Destructive5.73:1AA
Dark mode
Text on background18.78:1AAA
Text on card18.78:1AAA
Primary button12.63:1AAA
Secondary button7.93:1AAA
Muted text8.14:1AAA
Accent7.75:1AAA
Destructive4.27:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 17.255);
  --foreground: oklch(0.119 0.02 20.52);
  --muted: oklch(0.902 0.02 17.538);
  --muted-foreground: oklch(0.426 0.002 17.239);
  --popover: oklch(0.981 0.006 17.255);
  --popover-foreground: oklch(0.119 0.02 20.52);
  --card: oklch(0.981 0.006 17.255);
  --card-foreground: oklch(0.119 0.02 20.52);
  --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(0.865 0.017 17.492);
  --secondary-foreground: oklch(0.343 0.034 18.965);
  --accent: oklch(0.792 0.035 17.925);
  --accent-foreground: oklch(0.264 0.032 19.426);
  --destructive: oklch(0.535 0.201 30.507);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.865 0.017 17.492);
  --chart-3: oklch(0.792 0.035 17.925);
  --chart-4: oklch(0.891 0.014 17.418);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.015 19.407);
  --foreground: oklch(0.974 0.005 17.239);
  --muted: oklch(0.212 0.031 19.958);
  --muted-foreground: oklch(0.756 0.002 17.197);
  --popover: oklch(0.123 0.015 19.407);
  --popover-foreground: oklch(0.974 0.005 17.239);
  --card: oklch(0.123 0.015 19.407);
  --card-foreground: oklch(0.974 0.005 17.239);
  --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(0.311 0.016 18.074);
  --secondary-foreground: oklch(0.837 0.013 17.408);
  --accent: oklch(0.351 0.037 19.099);
  --accent-foreground: oklch(0.873 0.017 17.484);
  --destructive: oklch(0.608 0.231 30.49);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.311 0.016 18.074);
  --chart-3: oklch(0.351 0.037 19.099);
  --chart-4: oklch(0.34 0.019 18.104);
  --chart-5: oklch(1 0 180);
}