Brief is a shadcn/ui theme built around a light violet primary color (#f5e9fb) with muted light violet accents (#cebed5). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the light violet primary (#f5e9fb) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf7fdghostwhite | #030104black |
| Foreground | #030104black | #fdfcfdwhite |
| Card | #fbf7fdghostwhite | #030104black |
| Card foreground | #030104black | #fdfcfdwhite |
| Popover | #fbf7fdghostwhite | #030104black |
| Popover foreground | #030104black | #fdfcfdwhite |
| Primary | #f5e9fbwhitesmoke | #f5e9fbwhitesmoke |
| Primary foreground | #701c97rebeccapurple | #701c97rebeccapurple |
| Secondary | #dfdae2gainsboro | #252027darkslategray |
| Secondary foreground | #483c4edarkslategray | #bfb7c3silver |
| Muted | #e7e1ealavender | #1b151eblack |
| Muted foreground | #6a5a72dimgray | #9d8da5darkgray |
| Accent | #cebed5thistle | #382e3ddarkslategray |
| Accent foreground | #34263bdarkslategray | #d1c8d5lightgrey |
| Destructive | #990a05darkred | #f8140dred |
| Destructive foreground | #fed4d2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5e9fbwhitesmoke | #f5e9fbwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 4.92:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 6.46:1 | AA |
| Text on background | 20.29:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 8.16:1 | AAA |
| Muted text | 5.79:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Brief in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.01 315.385);
--foreground: oklch(0.082 0.02 317.552);
--muted: oklch(0.917 0.015 315.359);
--muted-foreground: oklch(0.492 0.043 315.055);
--popover: oklch(0.98 0.01 315.385);
--popover-foreground: oklch(0.082 0.02 317.552);
--card: oklch(0.98 0.01 315.385);
--card-foreground: oklch(0.082 0.02 317.552);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.95 0.027 315.31);
--primary-foreground: oklch(0.426 0.188 311.827);
--secondary: oklch(0.894 0.013 315.365);
--secondary-foreground: oklch(0.376 0.034 315.046);
--accent: oklch(0.821 0.037 315.238);
--accent-foreground: oklch(0.294 0.043 314.799);
--destructive: oklch(0.433 0.173 29.348);
--destructive-foreground: oklch(0.905 0.047 20.387);
--ring: oklch(0.95 0.027 315.31);
--chart-1: oklch(0.95 0.027 315.31);
--chart-2: oklch(0.894 0.013 315.365);
--chart-3: oklch(0.821 0.037 315.238);
--chart-4: oklch(0.919 0.01 315.381);
--chart-5: oklch(0.949 0.028 315.304);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.017 317.164);
--foreground: oklch(0.991 0.002 315.418);
--muted: oklch(0.207 0.021 314.99);
--muted-foreground: oklch(0.665 0.04 315.172);
--popover: oklch(0.084 0.017 317.164);
--popover-foreground: oklch(0.991 0.002 315.418);
--card: oklch(0.084 0.017 317.164);
--card-foreground: oklch(0.991 0.002 315.418);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.95 0.027 315.31);
--primary-foreground: oklch(0.426 0.188 311.827);
--secondary: oklch(0.253 0.014 315.203);
--secondary-foreground: oklch(0.789 0.019 315.326);
--accent: oklch(0.319 0.03 315.035);
--accent-foreground: oklch(0.844 0.021 315.322);
--destructive: oklch(0.619 0.247 29.259);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.95 0.027 315.31);
--chart-1: oklch(0.95 0.027 315.31);
--chart-2: oklch(0.253 0.014 315.203);
--chart-3: oklch(0.319 0.03 315.035);
--chart-4: oklch(0.284 0.016 315.191);
--chart-5: oklch(0.949 0.028 315.304);
}