Corner for shadcn/ui

Corner is a shadcn/ui theme built around a vivid deep pink primary color (#91033c) with vivid deep blue accents (#033c91). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the vivid deep pink primary (#91033c) on a neutral background (#080305).

Color palette

TokenLightDark
Background
#fdf7f9snow
#080305black
Foreground
#090204black
#ffffffwhite
Card
#fcf3f6lavenderblush
#0b0407black
Card foreground
#040102black
#ffffffwhite
Popover
#fcf3f6lavenderblush
#0b0407black
Popover foreground
#040102black
#ffffffwhite
Primary
#91033cbrown
#91033cbrown
Primary foreground
#fec8depink
#fec8depink
Secondary
#3c9103forestgreen
#3c9103forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dae2d5gainsboro
#222a1dblack
Muted foreground
#616d5adimgray
#9aa592darkseagreen
Accent
#033c91midnightblue
#033c91midnightblue
Accent foreground
#c8defelavender
#c8defelavender
Destructive
#e61f00red
#ff4124orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#91033cbrown
#91033cbrown

Contrast

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

Light mode
Text on background19.39:1AAA
Text on card19.05:1AAA
Primary button6.37:1AA
Secondary button4.00:1AA Large
Muted text4.11:1AA Large
Accent7.46:1AAA
Destructive4.62:1AA
Dark mode
Text on background20.52:1AAA
Text on card20.29:1AAA
Primary button6.37:1AA
Secondary button4.00:1AA Large
Muted text5.73:1AA
Accent7.46:1AAA
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.008 350.839);
  --foreground: oklch(0.103 0.025 350.137);
  --muted: oklch(0.903 0.02 132.528);
  --muted-foreground: oklch(0.52 0.034 132.866);
  --popover: oklch(0.971 0.011 350.951);
  --popover-foreground: oklch(0.082 0.02 350.137);
  --card: oklch(0.971 0.011 350.951);
  --card-foreground: oklch(0.082 0.02 350.137);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.422 0.167 8.06);
  --primary-foreground: oklch(0.886 0.067 352.657);
  --secondary: oklch(0.581 0.178 137.798);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.382 0.151 259.92);
  --accent-foreground: oklch(0.894 0.05 258.371);
  --destructive: oklch(0.589 0.23 30.957);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.422 0.167 8.06);
  --chart-1: oklch(0.422 0.167 8.06);
  --chart-2: oklch(0.581 0.178 137.798);
  --chart-3: oklch(0.382 0.151 259.92);
  --chart-4: oklch(0.624 0.191 137.9);
  --chart-5: oklch(0.425 0.17 8.63);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.016 350.311);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.275 0.027 133.15);
  --muted-foreground: oklch(0.708 0.031 132.699);
  --popover: oklch(0.123 0.019 350.456);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.123 0.019 350.456);
  --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.422 0.167 8.06);
  --primary-foreground: oklch(0.886 0.067 352.657);
  --secondary: oklch(0.581 0.178 137.798);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.382 0.151 259.92);
  --accent-foreground: oklch(0.894 0.05 258.371);
  --destructive: oklch(0.658 0.229 31.644);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.422 0.167 8.06);
  --chart-1: oklch(0.422 0.167 8.06);
  --chart-2: oklch(0.581 0.178 137.798);
  --chart-3: oklch(0.382 0.151 259.92);
  --chart-4: oklch(0.624 0.191 137.9);
  --chart-5: oklch(0.425 0.17 8.63);
}