Poster for shadcn/ui

Poster is a shadcn/ui theme built around a teal primary color (#1bac8a) with muted light teal accents (#dce5e3). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the teal primary (#1bac8a) on a teal-tinted background (#050f0d).

Color palette

TokenLightDark
Background
#f7fdfcmintcream
#050f0dblack
Foreground
#000000black
#ffffffwhite
Card
#f2fcfamintcream
#061310black
Card foreground
#000000black
#ffffffwhite
Popover
#f2fcfamintcream
#061310black
Popover foreground
#000000black
#ffffffwhite
Primary
#1bac8alightseagreen
#1bac8alightseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dce5e3gainsboro
#121615black
Secondary foreground
#3c534ddarkslategray
#a5b6b2darkgray
Muted
#d4ece7gainsboro
#132b25black
Muted foreground
#555858dimgray
#a7aaa9darkgray
Accent
#dce5e3gainsboro
#121615black
Accent foreground
#3c534ddarkslategray
#a5b6b2darkgray
Destructive
#8b0b09darkred
#f12b27crimson
Destructive foreground
#fccbcapink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1bac8alightseagreen
#1bac8alightseagreen

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.13:1AAA
Primary button2.86:1Fail
Secondary button6.45:1AA
Muted text5.81:1AA
Accent6.45:1AA
Destructive6.75:1AA
Dark mode
Text on background19.39:1AAA
Text on card18.90:1AAA
Primary button2.86:1Fail
Secondary button8.59:1AAA
Muted text6.43:1AA
Accent8.59:1AAA
Destructive4.10:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 180.753);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.925 0.026 180.142);
  --muted-foreground: oklch(0.459 0.005 180.676);
  --popover: oklch(0.984 0.011 180.647);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.011 180.647);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.665 0.125 171.435);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.915 0.011 180.622);
  --secondary-foreground: oklch(0.421 0.029 178.818);
  --accent: oklch(0.915 0.011 180.622);
  --accent-foreground: oklch(0.421 0.029 178.818);
  --destructive: oklch(0.405 0.159 28.69);
  --destructive-foreground: oklch(0.884 0.055 19.387);
  --ring: oklch(0.665 0.125 171.435);
  --chart-1: oklch(0.665 0.125 171.435);
  --chart-2: oklch(0.915 0.011 180.622);
  --chart-3: oklch(0.915 0.011 180.622);
  --chart-4: oklch(0.936 0.008 180.714);
  --chart-5: oklch(0.673 0.128 171.079);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.018 178.704);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.266 0.032 176.782);
  --muted-foreground: oklch(0.735 0.004 180.803);
  --popover: oklch(0.174 0.02 177.622);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.174 0.02 177.622);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.665 0.125 171.435);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.197 0.007 179.994);
  --secondary-foreground: oklch(0.761 0.019 180.247);
  --accent: oklch(0.197 0.007 179.994);
  --accent-foreground: oklch(0.761 0.019 180.247);
  --destructive: oklch(0.618 0.231 27.939);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.665 0.125 171.435);
  --chart-1: oklch(0.665 0.125 171.435);
  --chart-2: oklch(0.197 0.007 179.994);
  --chart-3: oklch(0.197 0.007 179.994);
  --chart-4: oklch(0.232 0.009 179.875);
  --chart-5: oklch(0.673 0.128 171.079);
}