Barrier for shadcn/ui

Barrier is a shadcn/ui theme built around a light teal primary color (#a7f1e2) with light cyan accents (#a7dbf1). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#a7f1e2) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#04100eblack
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#04100eblack
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#04100eblack
#ffffffwhite
Primary
#a7f1e2paleturquoise
#a7f1e2paleturquoise
Primary foreground
#0e5849darkslategray
#0e5849darkslategray
Secondary
#a7f1bdpalegreen
#a7f1bdpalegreen
Secondary foreground
#0e5824darkgreen
#0e5824darkgreen
Muted
#d1e0d6gainsboro
#1f2e23darkslategray
Muted foreground
#57605adimgray
#9fa8a1darkgray
Accent
#a7dbf1lightblue
#a7dbf1lightblue
Accent foreground
#0e4258darkslategray
#0e4258darkslategray
Destructive
#882e07saddlebrown
#df4b0corangered
Destructive foreground
#fcd5c5peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a7f1e2paleturquoise
#a7f1e2paleturquoise

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button6.49:1AA
Secondary button6.53:1AA
Muted text4.76:1AA
Accent7.22:1AAA
Destructive6.36:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.49:1AA
Secondary button6.53:1AA
Muted text5.84:1AA
Accent7.22:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.161 0.02 180.712);
  --muted: oklch(0.893 0.022 155.396);
  --muted-foreground: oklch(0.48 0.015 155.25);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.161 0.02 180.712);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.161 0.02 180.712);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.905 0.076 180.65);
  --primary-foreground: oklch(0.413 0.072 175.29);
  --secondary: oklch(0.895 0.102 153.46);
  --secondary-foreground: oklch(0.404 0.108 148.315);
  --accent: oklch(0.862 0.061 226.109);
  --accent-foreground: oklch(0.356 0.064 231.543);
  --destructive: oklch(0.429 0.131 39.421);
  --destructive-foreground: oklch(0.902 0.049 44.517);
  --ring: oklch(0.905 0.076 180.65);
  --chart-1: oklch(0.905 0.076 180.65);
  --chart-2: oklch(0.895 0.102 153.46);
  --chart-3: oklch(0.862 0.061 226.109);
  --chart-4: oklch(0.91 0.087 153.89);
  --chart-5: oklch(0.908 0.078 180.55);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.283 0.028 153.775);
  --muted-foreground: oklch(0.722 0.014 155.5);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.905 0.076 180.65);
  --primary-foreground: oklch(0.413 0.072 175.29);
  --secondary: oklch(0.895 0.102 153.46);
  --secondary-foreground: oklch(0.404 0.108 148.315);
  --accent: oklch(0.862 0.061 226.109);
  --accent-foreground: oklch(0.356 0.064 231.543);
  --destructive: oklch(0.613 0.194 38.482);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.905 0.076 180.65);
  --chart-1: oklch(0.905 0.076 180.65);
  --chart-2: oklch(0.895 0.102 153.46);
  --chart-3: oklch(0.862 0.061 226.109);
  --chart-4: oklch(0.91 0.087 153.89);
  --chart-5: oklch(0.908 0.078 180.55);
}