Phase for shadcn/ui

Phase is a shadcn/ui theme built around a vivid orange primary color (#e86130) with vivid yellow accents (#e8bd30). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid orange primary (#e86130) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefcfbsnow
#000000black
Foreground
#0e0502black
#f8f7f7whitesmoke
Card
#fefcfbsnow
#000000black
Card foreground
#0e0502black
#f8f7f7whitesmoke
Popover
#fefcfbsnow
#000000black
Popover foreground
#0e0502black
#f8f7f7whitesmoke
Primary
#e86130chocolate
#e86130chocolate
Primary foreground
#000000black
#000000black
Secondary
#e8305bcrimson
#e8305bcrimson
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4ebedlinen
#140b0dblack
Muted foreground
#564e4fdarkslategray
#b1a9abdarkgray
Accent
#e8bd30goldenrod
#e8bd30goldenrod
Accent foreground
#453708darkolivegreen
#453708darkolivegreen
Destructive
#991c00darkred
#ff3b0forangered
Destructive foreground
#ffd5ccbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e86130chocolate
#e86130chocolate

Contrast

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

Light mode
Text on background19.68:1AAA
Text on card19.68:1AAA
Primary button6.20:1AA
Secondary button4.18:1AA Large
Muted text6.91:1AA
Accent6.52:1AA
Destructive6.20:1AA
Dark mode
Text on background19.63:1AAA
Text on card19.63:1AAA
Primary button6.20:1AA
Secondary button4.18:1AA Large
Muted text8.44:1AAA
Accent6.52:1AA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 41.285);
  --foreground: oklch(0.128 0.022 52.137);
  --muted: oklch(0.948 0.011 1.273);
  --muted-foreground: oklch(0.431 0.011 1.679);
  --popover: oklch(0.992 0.002 41.285);
  --popover-foreground: oklch(0.128 0.022 52.137);
  --card: oklch(0.992 0.002 41.285);
  --card-foreground: oklch(0.128 0.022 52.137);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.657 0.178 39.243);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.613 0.216 13.994);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.815 0.154 90.595);
  --accent-foreground: oklch(0.341 0.064 90.745);
  --destructive: oklch(0.443 0.163 32.975);
  --destructive-foreground: oklch(0.907 0.049 32.774);
  --ring: oklch(0.657 0.178 39.243);
  --chart-1: oklch(0.657 0.178 39.243);
  --chart-2: oklch(0.613 0.216 13.994);
  --chart-3: oklch(0.815 0.154 90.595);
  --chart-4: oklch(0.629 0.207 12.223);
  --chart-5: oklch(0.66 0.184 39.023);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.977 0.001 41.294);
  --muted: oklch(0.162 0.017 3.818);
  --muted-foreground: oklch(0.743 0.01 1.324);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.977 0.001 41.294);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.977 0.001 41.294);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.657 0.178 39.243);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.613 0.216 13.994);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.815 0.154 90.595);
  --accent-foreground: oklch(0.341 0.064 90.745);
  --destructive: oklch(0.653 0.235 32.89);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.657 0.178 39.243);
  --chart-1: oklch(0.657 0.178 39.243);
  --chart-2: oklch(0.613 0.216 13.994);
  --chart-3: oklch(0.815 0.154 90.595);
  --chart-4: oklch(0.629 0.207 12.223);
  --chart-5: oklch(0.66 0.184 39.023);
}