Trial for shadcn/ui

Trial is a shadcn/ui theme built around a muted teal primary color (#519088) with muted teal accents (#b3c6c4). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#519088) on a teal-tinted background (#040b0a).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b0ablack
Foreground
#020d0cblack
#f9fbfbghostwhite
Card
#fcfcfcsnow
#050f0eblack
Card foreground
#020908black
#fcfdfdwhite
Popover
#ffffffwhite
#040b0ablack
Popover foreground
#020d0cblack
#f9fbfbghostwhite
Primary
#519088cadetblue
#519088cadetblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d0d7d6lightgrey
#171c1cblack
Secondary foreground
#363f3edarkslategray
#aabbb9silver
Muted
#d7e5e3gainsboro
#1a2827darkslategray
Muted foreground
#485b59darkslategray
#a4b7b5darkgray
Accent
#b3c6c4silver
#293d3bdarkslategray
Accent foreground
#1f2928darkslategray
#c2d6d4lightgrey
Destructive
#cb240bfirebrick
#f4492ftomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#519088cadetblue
#519088cadetblue

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.66:1AAA
Primary button3.70:1AA Large
Secondary button7.42:1AAA
Muted text5.55:1AA
Accent8.39:1AAA
Destructive5.50:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.05:1AAA
Primary button3.70:1AA Large
Secondary button8.61:1AAA
Muted text7.24:1AAA
Accent7.58:1AAA
Destructive3.59:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.019 187.396);
  --muted: oklch(0.911 0.016 188.497);
  --muted-foreground: oklch(0.456 0.024 187.605);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.146 0.019 187.396);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.127 0.016 188.172);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.608 0.066 185.98);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.874 0.008 188.703);
  --secondary-foreground: oklch(0.36 0.013 188.067);
  --accent: oklch(0.812 0.02 188.305);
  --accent-foreground: oklch(0.27 0.014 187.627);
  --destructive: oklch(0.544 0.204 31.317);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.608 0.066 185.98);
  --chart-1: oklch(0.608 0.066 185.98);
  --chart-2: oklch(0.874 0.008 188.703);
  --chart-3: oklch(0.812 0.02 188.305);
  --chart-4: oklch(0.896 0.006 188.744);
  --chart-5: oklch(0.615 0.072 185.706);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.014 188.046);
  --foreground: oklch(0.987 0.003 188.847);
  --muted: oklch(0.265 0.02 186.999);
  --muted-foreground: oklch(0.764 0.022 188.222);
  --popover: oklch(0.142 0.014 188.046);
  --popover-foreground: oklch(0.987 0.003 188.847);
  --card: oklch(0.158 0.016 187.032);
  --card-foreground: oklch(0.993 0.001 188.879);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.608 0.066 185.98);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.222 0.008 187.987);
  --secondary-foreground: oklch(0.778 0.019 188.332);
  --accent: oklch(0.343 0.026 186.973);
  --accent-foreground: oklch(0.861 0.022 188.292);
  --destructive: oklch(0.648 0.212 31.63);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.608 0.066 185.98);
  --chart-1: oklch(0.608 0.066 185.98);
  --chart-2: oklch(0.222 0.008 187.987);
  --chart-3: oklch(0.343 0.026 186.973);
  --chart-4: oklch(0.256 0.011 187.909);
  --chart-5: oklch(0.615 0.072 185.706);
}