Brace is a shadcn/ui theme built around a light yellow primary color (#ecdfc1) with light blue accents (#c1ceec). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the light yellow primary (#ecdfc1) on a yellow-tinted background (#0b0904).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbf7snow | #0b0904black |
| Foreground | #0c0903black | #ffffffwhite |
| Card | #fcf9f3floralwhite | #0f0c06black |
| Card foreground | #080602black | #ffffffwhite |
| Popover | #fdfbf7snow | #0b0904black |
| Popover foreground | #0c0903black | #ffffffwhite |
| Primary | #ecdfc1wheat | #ecdfc1wheat |
| Primary foreground | #5e4a1ddarkolivegreen | #5e4a1ddarkolivegreen |
| Secondary | #c1ceeclightblue | #c1ceeclightblue |
| Secondary foreground | #1d305emidnightblue | #1d305emidnightblue |
| Muted | #d8dfeegainsboro | #111827black |
| Muted foreground | #373c49darkslategray | #b6bcc8silver |
| Accent | #c1ceeclightblue | #c1ceeclightblue |
| Accent foreground | #1d305emidnightblue | #1d305emidnightblue |
| Destructive | #a33705saddlebrown | #df4b07orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ecdfc1wheat | #ecdfc1wheat |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.24:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 6.41:1 | AA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 8.22:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 6.74:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 6.41:1 | AA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 9.32:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Brace in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 87.451);
--foreground: oklch(0.143 0.018 92.554);
--muted: oklch(0.902 0.022 267.262);
--muted-foreground: oklch(0.357 0.023 266.929);
--popover: oklch(0.989 0.006 87.451);
--popover-foreground: oklch(0.143 0.018 92.554);
--card: oklch(0.983 0.009 87.465);
--card-foreground: oklch(0.125 0.015 93.234);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.906 0.042 87.569);
--primary-foreground: oklch(0.42 0.068 85.771);
--secondary: oklch(0.85 0.045 267.035);
--secondary-foreground: oklch(0.32 0.085 264.632);
--accent: oklch(0.85 0.045 267.035);
--accent-foreground: oklch(0.32 0.085 264.632);
--destructive: oklch(0.489 0.152 39.584);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.906 0.042 87.569);
--chart-1: oklch(0.906 0.042 87.569);
--chart-2: oklch(0.85 0.045 267.035);
--chart-3: oklch(0.85 0.045 267.035);
--chart-4: oklch(0.878 0.036 267.135);
--chart-5: oklch(0.907 0.045 87.57);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.013 91.71);
--foreground: oklch(1 0 180);
--muted: oklch(0.209 0.032 265.959);
--muted-foreground: oklch(0.794 0.019 267.27);
--popover: oklch(0.14 0.013 91.71);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.015 89.381);
--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.906 0.042 87.569);
--primary-foreground: oklch(0.42 0.068 85.771);
--secondary: oklch(0.85 0.045 267.035);
--secondary-foreground: oklch(0.32 0.085 264.632);
--accent: oklch(0.85 0.045 267.035);
--accent-foreground: oklch(0.32 0.085 264.632);
--destructive: oklch(0.613 0.194 38.899);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.906 0.042 87.569);
--chart-1: oklch(0.906 0.042 87.569);
--chart-2: oklch(0.85 0.045 267.035);
--chart-3: oklch(0.85 0.045 267.035);
--chart-4: oklch(0.878 0.036 267.135);
--chart-5: oklch(0.907 0.045 87.57);
}