Generate feedback colors (success, warning, error, and info) for shadcn/ui

Go to generator

10000+Themes for shadcn/ui

Phrase for shadcn/ui

Phrase is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted light red accents (#e7dfdf). The light mode uses a neutral background (#fdfbfb). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfbsnow
#000000black
Foreground
#170303black
#fcf8f8snow
Card
#fdfbfbsnow
#000000black
Card foreground
#170303black
#fcf8f8snow
Popover
#fdfbfbsnow
#000000black
Popover foreground
#170303black
#fcf8f8snow
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#e7dfdfgainsboro
#291e1eblack
Secondary foreground
#553f3fdarkslategray
#c7b2b2silver
Muted
#f4f1f1whitesmoke
#0e0b0bblack
Muted foreground
#4a3b3bdarkslategray
#c4b5b5silver
Accent
#e7dfdfgainsboro
#291e1eblack
Accent foreground
#553f3fdarkslategray
#c7b2b2silver
Destructive
#872403darkred
#eb3e05orangered
Destructive foreground
#fecebepeachpuff
#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.45:1AAA
Text on card19.45:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text9.42:1AAA
Accent7.37:1AAA
Destructive6.48:1AA
Dark mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button12.63:1AAA
Secondary button8.02:1AAA
Muted text9.90:1AAA
Accent8.02:1AAA
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 17.194);
  --foreground: oklch(0.14 0.04 23.913);
  --muted: oklch(0.96 0.003 17.215);
  --muted-foreground: oklch(0.368 0.021 18.128);
  --popover: oklch(0.991 0.002 17.194);
  --popover-foreground: oklch(0.14 0.04 23.913);
  --card: oklch(0.991 0.002 17.194);
  --card-foreground: oklch(0.14 0.04 23.913);
  --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.91 0.009 17.326);
  --secondary-foreground: oklch(0.391 0.031 18.575);
  --accent: oklch(0.91 0.009 17.326);
  --accent-foreground: oklch(0.391 0.031 18.575);
  --destructive: oklch(0.416 0.139 36.154);
  --destructive-foreground: oklch(0.888 0.059 39.252);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.91 0.009 17.326);
  --chart-3: oklch(0.91 0.009 17.326);
  --chart-4: oklch(0.934 0.007 17.275);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.004 17.218);
  --muted: oklch(0.155 0.005 17.739);
  --muted-foreground: oklch(0.787 0.017 17.513);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.982 0.004 17.218);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.982 0.004 17.218);
  --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.249 0.018 18.429);
  --secondary-foreground: oklch(0.782 0.024 17.687);
  --accent: oklch(0.249 0.018 18.429);
  --accent-foreground: oklch(0.782 0.024 17.687);
  --destructive: oklch(0.62 0.216 34.995);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.249 0.018 18.429);
  --chart-3: oklch(0.249 0.018 18.429);
  --chart-4: oklch(0.278 0.021 18.507);
  --chart-5: oklch(1 0 180);
}