Breath is a shadcn/ui theme built around a light violet primary color (#f4effb) with light purple accents (#faeffb). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#f4effb) on a violet-tinted background (#07040b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #07040bblack |
| Foreground | #020104black | #fcfcfdwhite |
| Card | #ffffffwhite | #07040bblack |
| Card foreground | #020104black | #fcfcfdwhite |
| Popover | #ffffffwhite | #07040bblack |
| Popover foreground | #020104black | #fcfcfdwhite |
| Primary | #f4effbwhitesmoke | #f4effbwhitesmoke |
| Primary foreground | #55288frebeccapurple | #55288frebeccapurple |
| Secondary | #eff0fbaliceblue | #eff0fbaliceblue |
| Secondary foreground | #282f8fdarkslateblue | #282f8fdarkslateblue |
| Muted | #dddeeelavender | #111222black |
| Muted foreground | #575975dimgray | #8a8ca8lightslategray |
| Accent | #faeffblavenderblush | #faeffblavenderblush |
| Accent foreground | #88288frebeccapurple | #88288frebeccapurple |
| Destructive | #bc1d0bfirebrick | #de220dfirebrick |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4effbwhitesmoke | #f4effbwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.81:1 | AAA |
| Text on card | 20.81:1 | AAA |
| Primary button | 8.91:1 | AAA |
| Secondary button | 9.77:1 | AAA |
| Muted text | 5.08:1 | AA |
| Accent | 6.84:1 | AA |
| Destructive | 6.16:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 8.91:1 | AAA |
| Secondary button | 9.77:1 | AAA |
| Muted text | 5.65:1 | AA |
| Accent | 6.84:1 | AA |
| Destructive | 4.85:1 | AA |
Paste this into your globals.css to use Breath in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.081 0.016 306.892);
--muted: oklch(0.904 0.023 282.671);
--muted-foreground: oklch(0.473 0.046 281.289);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.081 0.016 306.892);
--card: oklch(1 0 180);
--card-foreground: oklch(0.081 0.016 306.892);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.96 0.016 305.517);
--primary-foreground: oklch(0.398 0.16 298.654);
--secondary: oklch(0.957 0.014 282.851);
--secondary-foreground: oklch(0.368 0.156 272.775);
--accent: oklch(0.964 0.019 323.737);
--accent-foreground: oklch(0.468 0.178 325.068);
--destructive: oklch(0.51 0.194 30.482);
--destructive-foreground: oklch(0.99 0.004 25.026);
--ring: oklch(0.96 0.016 305.517);
--chart-1: oklch(0.96 0.016 305.517);
--chart-2: oklch(0.957 0.014 282.851);
--chart-3: oklch(0.964 0.019 323.737);
--chart-4: oklch(0.989 0.004 283.046);
--chart-5: oklch(0.959 0.017 305.505);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.02 306.617);
--foreground: oklch(0.991 0.002 305.709);
--muted: oklch(0.189 0.034 279.536);
--muted-foreground: oklch(0.647 0.043 281.92);
--popover: oklch(0.119 0.02 306.617);
--popover-foreground: oklch(0.991 0.002 305.709);
--card: oklch(0.119 0.02 306.617);
--card-foreground: oklch(0.991 0.002 305.709);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.96 0.016 305.517);
--primary-foreground: oklch(0.398 0.16 298.654);
--secondary: oklch(0.957 0.014 282.851);
--secondary-foreground: oklch(0.368 0.156 272.775);
--accent: oklch(0.964 0.019 323.737);
--accent-foreground: oklch(0.468 0.178 325.068);
--destructive: oklch(0.576 0.221 30.454);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.96 0.016 305.517);
--chart-1: oklch(0.96 0.016 305.517);
--chart-2: oklch(0.957 0.014 282.851);
--chart-3: oklch(0.964 0.019 323.737);
--chart-4: oklch(0.989 0.004 283.046);
--chart-5: oklch(0.959 0.017 305.505);
}