Page for shadcn/ui

Page is a shadcn/ui theme built around a red primary color (#c07a72) with indigo accents (#7a72c0). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the red primary (#c07a72) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf8f7snow
#000000black
Foreground
#0d0302black
#ffffffwhite
Card
#fcf4f3lavenderblush
#030303black
Card foreground
#090201black
#ffffffwhite
Popover
#fdf8f7snow
#000000black
Popover foreground
#0d0302black
#ffffffwhite
Primary
#c07a72rosybrown
#c07a72rosybrown
Primary foreground
#000000black
#000000black
Secondary
#72c07adarkseagreen
#72c07adarkseagreen
Secondary foreground
#000000black
#000000black
Muted
#e9ede9linen
#121613black
Muted foreground
#495f4bdarkslategray
#a0b6a2darkgray
Accent
#7a72c0slateblue
#7a72c0slateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#721404maroon
#e92907orangered
Destructive foreground
#fcb7ablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c07a72rosybrown
#c07a72rosybrown

Contrast

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

Light mode
Text on background19.29:1AAA
Text on card18.95:1AAA
Primary button6.26:1AA
Secondary button9.51:1AAA
Muted text5.85:1AA
Accent4.19:1AA Large
Destructive6.88:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.26:1AA
Secondary button9.51:1AAA
Muted text8.41:1AAA
Accent4.19:1AA Large
Destructive4.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 25.036);
  --foreground: oklch(0.119 0.026 33.083);
  --muted: oklch(0.941 0.007 148.516);
  --muted-foreground: oklch(0.462 0.041 147.541);
  --popover: oklch(0.982 0.006 25.036);
  --popover-foreground: oklch(0.119 0.026 33.083);
  --card: oklch(0.973 0.008 25.061);
  --card-foreground: oklch(0.104 0.022 33.295);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.651 0.089 26.66);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.739 0.126 146.445);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.593 0.116 286.864);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.359 0.13 32.399);
  --destructive-foreground: oklch(0.841 0.083 30.142);
  --ring: oklch(0.651 0.089 26.66);
  --chart-1: oklch(0.651 0.089 26.66);
  --chart-2: oklch(0.739 0.126 146.445);
  --chart-3: oklch(0.593 0.116 286.864);
  --chart-4: oklch(0.758 0.117 146.681);
  --chart-5: oklch(0.65 0.096 26.844);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.196 0.01 148.033);
  --muted-foreground: oklch(0.753 0.037 148.034);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.651 0.089 26.66);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.739 0.126 146.445);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.593 0.116 286.864);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.6 0.227 31.53);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.651 0.089 26.66);
  --chart-1: oklch(0.651 0.089 26.66);
  --chart-2: oklch(0.739 0.126 146.445);
  --chart-3: oklch(0.593 0.116 286.864);
  --chart-4: oklch(0.758 0.117 146.681);
  --chart-5: oklch(0.65 0.096 26.844);
}