Phrasing for shadcn/ui

Phrasing is a shadcn/ui theme built around a neutral gray primary color (#e6e6e5) with neutral gray accents (#e5e6e5). The light mode uses a neutral background (#fefefb). Dark mode keeps the neutral gray primary (#e6e6e5) on a neutral background (#070703).

Color palette

TokenLightDark
Background
#fefefbwhite
#070703black
Foreground
#131505black
#f9faf5whitesmoke
Card
#fcfdf7snow
#0a0b04black
Card foreground
#0f1004black
#fbfbf8snow
Popover
#fefefbwhite
#070703black
Popover foreground
#131505black
#f9faf5whitesmoke
Primary
#e6e6e5gainsboro
#e6e6e5gainsboro
Primary foreground
#4e4e4bdarkslategray
#4e4e4bdarkslategray
Secondary
#e6e6e5gainsboro
#e6e6e5gainsboro
Secondary foreground
#4e4d4bdarkslategray
#4e4d4bdarkslategray
Muted
#e1ddd5gainsboro
#2a251eblack
Muted foreground
#665e52dimgray
#ada699darkgray
Accent
#e5e6e5gainsboro
#e5e6e5gainsboro
Accent foreground
#4c4e4bdarkslategray
#4c4e4bdarkslategray
Destructive
#ac3f11brown
#eb6a33tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e6e6e5gainsboro
#e6e6e5gainsboro

Contrast

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

Light mode
Text on background18.24:1AAA
Text on card18.69:1AAA
Primary button6.68:1AA
Secondary button6.74:1AA
Muted text4.71:1AA
Accent6.72:1AA
Destructive6.04:1AA
Dark mode
Text on background19.22:1AAA
Text on card19.06:1AAA
Primary button6.68:1AA
Secondary button6.74:1AA
Muted text6.28:1AA
Accent6.72:1AA
Destructive6.63:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 111.849);
  --foreground: oklch(0.187 0.03 114.49);
  --muted: oklch(0.898 0.011 79.909);
  --muted-foreground: oklch(0.486 0.022 79.766);
  --popover: oklch(0.996 0.004 111.849);
  --popover-foreground: oklch(0.187 0.03 114.49);
  --card: oklch(0.991 0.007 111.92);
  --card-foreground: oklch(0.169 0.026 114.074);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.925 0.001 111.807);
  --primary-foreground: oklch(0.423 0.005 112.001);
  --secondary: oklch(0.924 0.001 79.932);
  --secondary-foreground: oklch(0.42 0.003 79.919);
  --accent: oklch(0.924 0.002 132.997);
  --accent-foreground: oklch(0.421 0.006 133.076);
  --destructive: oklch(0.514 0.152 39.997);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.925 0.001 111.807);
  --chart-1: oklch(0.925 0.001 111.807);
  --chart-2: oklch(0.924 0.001 79.932);
  --chart-3: oklch(0.924 0.002 132.997);
  --chart-4: oklch(0.947 0.001 79.932);
  --chart-5: oklch(0.926 0.003 111.849);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.014 112.739);
  --foreground: oklch(0.982 0.006 111.892);
  --muted: oklch(0.268 0.015 79.678);
  --muted-foreground: oklch(0.727 0.02 79.859);
  --popover: oklch(0.127 0.014 112.739);
  --popover-foreground: oklch(0.982 0.006 111.892);
  --card: oklch(0.145 0.016 112.838);
  --card-foreground: oklch(0.988 0.004 111.854);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.925 0.001 111.807);
  --primary-foreground: oklch(0.423 0.005 112.001);
  --secondary: oklch(0.924 0.001 79.932);
  --secondary-foreground: oklch(0.42 0.003 79.919);
  --accent: oklch(0.924 0.002 132.997);
  --accent-foreground: oklch(0.421 0.006 133.076);
  --destructive: oklch(0.673 0.173 41.773);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.925 0.001 111.807);
  --chart-1: oklch(0.925 0.001 111.807);
  --chart-2: oklch(0.924 0.001 79.932);
  --chart-3: oklch(0.924 0.002 132.997);
  --chart-4: oklch(0.947 0.001 79.932);
  --chart-5: oklch(0.926 0.003 111.849);
}