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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 6.49:1 | AA |
| Secondary button | 6.53:1 | AA |
| Muted text | 4.76:1 | AA |
| Accent | 7.22:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.49:1 | AA |
| Secondary button | 6.53:1 | AA |
| Muted text | 5.84:1 | AA |
| Accent | 7.22:1 | AAA |
| Destructive | 4.08:1 | AA Large |
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);
}