Name for shadcn/ui

Name is a shadcn/ui theme built around a near-white primary color (#fdf7f9) with near-white accents (#f7f9fd). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the near-white primary (#fdf7f9) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fcf8f9snow
#040102black
Foreground
#15050ablack
#fbf8f9snow
Card
#fbf4f6lavenderblush
#070304black
Card foreground
#110408black
#fdfcfcsnow
Popover
#fbf4f6lavenderblush
#070304black
Popover foreground
#110408black
#fdfcfcsnow
Primary
#fdf7f9snow
#fdf7f9snow
Primary foreground
#a1214cbrown
#a1214cbrown
Secondary
#f9fdf7mintcream
#f9fdf7mintcream
Secondary foreground
#244c10darkgreen
#244c10darkgreen
Muted
#dcedd4gainsboro
#1b2b12black
Muted foreground
#515e4adarkolivegreen
#a7b5a1darkgray
Accent
#f7f9fdghostwhite
#f7f9fdghostwhite
Accent foreground
#214ca1darkslateblue
#214ca1darkslateblue
Destructive
#7d140cmaroon
#e92e20crimson
Destructive foreground
#f9c6c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdf7f9snow
#fdf7f9snow

Contrast

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

Light mode
Text on background18.81:1AAA
Text on card18.54:1AAA
Primary button6.97:1AA
Secondary button9.65:1AAA
Muted text5.59:1AA
Accent7.60:1AAA
Destructive7.01:1AAA
Dark mode
Text on background19.66:1AAA
Text on card20.03:1AAA
Primary button6.97:1AA
Secondary button9.65:1AAA
Muted text6.98:1AA
Accent7.60:1AAA
Destructive4.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 354.736);
  --foreground: oklch(0.146 0.032 358.117);
  --muted: oklch(0.926 0.037 135.029);
  --muted-foreground: oklch(0.465 0.036 135.235);
  --popover: oklch(0.973 0.008 354.812);
  --popover-foreground: oklch(0.133 0.028 356.128);
  --card: oklch(0.973 0.008 354.812);
  --card-foreground: oklch(0.133 0.028 356.128);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.981 0.008 354.815);
  --primary-foreground: oklch(0.472 0.164 6.869);
  --secondary: oklch(0.99 0.01 134.877);
  --secondary-foreground: oklch(0.374 0.1 137.289);
  --accent: oklch(0.981 0.006 264.53);
  --accent-foreground: oklch(0.437 0.147 262.206);
  --destructive: oklch(0.383 0.141 29.447);
  --destructive-foreground: oklch(0.871 0.058 23.083);
  --ring: oklch(0.981 0.008 354.815);
  --chart-1: oklch(0.981 0.008 354.815);
  --chart-2: oklch(0.99 0.01 134.877);
  --chart-3: oklch(0.981 0.006 264.53);
  --chart-4: oklch(1.005 0.005 314.803);
  --chart-5: oklch(0.98 0.008 354.826);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.012 354.316);
  --foreground: oklch(0.983 0.003 354.687);
  --muted: oklch(0.267 0.048 135.996);
  --muted-foreground: oklch(0.757 0.032 135.042);
  --popover: oklch(0.108 0.015 354.316);
  --popover-foreground: oklch(0.991 0.002 354.637);
  --card: oklch(0.108 0.015 354.316);
  --card-foreground: oklch(0.991 0.002 354.637);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.981 0.008 354.815);
  --primary-foreground: oklch(0.472 0.164 6.869);
  --secondary: oklch(0.99 0.01 134.877);
  --secondary-foreground: oklch(0.374 0.1 137.289);
  --accent: oklch(0.981 0.006 264.53);
  --accent-foreground: oklch(0.437 0.147 262.206);
  --destructive: oklch(0.605 0.223 29.464);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.981 0.008 354.815);
  --chart-1: oklch(0.981 0.008 354.815);
  --chart-2: oklch(0.99 0.01 134.877);
  --chart-3: oklch(0.981 0.006 264.53);
  --chart-4: oklch(1.005 0.005 314.803);
  --chart-5: oklch(0.98 0.008 354.826);
}