Bracket is a shadcn/ui theme built around a green primary color (#a8db29) with muted light green accents (#d4d8ca). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the green primary (#a8db29) on a green-tinted background (#090b05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #090b05black |
| Foreground | #101505black | #fbfbf8snow |
| Card | #f9faf4whitesmoke | #0c0e06black |
| Card foreground | #0d1104black | #fdfdfcwhite |
| Popover | #f9faf4whitesmoke | #0c0e06black |
| Popover foreground | #0d1104black | #fdfdfcwhite |
| Primary | #a8db29yellowgreen | #a8db29yellowgreen |
| Primary foreground | #253008black | #253008black |
| Secondary | #ebecealinen | #1c1f14black |
| Secondary foreground | #53564edarkslategray | #b9c2a3silver |
| Muted | #e7e9e2gainsboro | #1b1d16black |
| Muted foreground | #40413edarkslategray | #c0c1besilver |
| Accent | #d4d8calightgrey | #363e23darkslategray |
| Accent foreground | #3c4130darkslategray | #d0d8bblightgrey |
| Destructive | #cc2605firebrick | #e02a06orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a8db29yellowgreen | #a8db29yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.99:1 | AAA |
| Text on card | 18.24:1 | AAA |
| Primary button | 8.51:1 | AAA |
| Secondary button | 6.29:1 | AA |
| Muted text | 8.41:1 | AAA |
| Accent | 7.27:1 | AAA |
| Destructive | 5.45:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 8.51:1 | AAA |
| Secondary button | 9.04:1 | AAA |
| Muted text | 9.38:1 | AAA |
| Accent | 7.64:1 | AAA |
| Destructive | 4.67:1 | AA |
Paste this into your globals.css to use Bracket in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 119.4);
--foreground: oklch(0.185 0.032 121.892);
--muted: oklch(0.931 0.01 119.497);
--muted-foreground: oklch(0.374 0.004 119.505);
--popover: oklch(0.983 0.008 119.448);
--popover-foreground: oklch(0.168 0.028 121.069);
--card: oklch(0.983 0.008 119.448);
--card-foreground: oklch(0.168 0.028 121.069);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.826 0.197 125.22);
--primary-foreground: oklch(0.289 0.062 123.976);
--secondary: oklch(0.941 0.003 119.355);
--secondary-foreground: oklch(0.447 0.013 119.818);
--accent: oklch(0.875 0.019 119.679);
--accent-foreground: oklch(0.364 0.029 120.677);
--destructive: oklch(0.546 0.203 32.093);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.826 0.197 125.22);
--chart-1: oklch(0.826 0.197 125.22);
--chart-2: oklch(0.941 0.003 119.355);
--chart-3: oklch(0.875 0.019 119.679);
--chart-4: oklch(0.963 0.002 119.335);
--chart-5: oklch(0.836 0.202 125.441);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.015 119.325);
--foreground: oklch(0.988 0.004 119.376);
--muted: oklch(0.227 0.015 120.427);
--muted-foreground: oklch(0.808 0.004 119.381);
--popover: oklch(0.159 0.017 120.499);
--popover-foreground: oklch(0.994 0.002 119.34);
--card: oklch(0.159 0.017 120.499);
--card-foreground: oklch(0.994 0.002 119.34);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.826 0.197 125.22);
--primary-foreground: oklch(0.289 0.062 123.976);
--secondary: oklch(0.231 0.019 120.772);
--secondary-foreground: oklch(0.798 0.043 120.237);
--accent: oklch(0.348 0.044 121.585);
--accent-foreground: oklch(0.868 0.04 120.098);
--destructive: oklch(0.585 0.219 31.998);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.826 0.197 125.22);
--chart-1: oklch(0.826 0.197 125.22);
--chart-2: oklch(0.231 0.019 120.772);
--chart-3: oklch(0.348 0.044 121.585);
--chart-4: oklch(0.268 0.024 120.892);
--chart-5: oklch(0.836 0.202 125.441);
}