Bail is a shadcn/ui theme built around an indigo primary color (#303397) with violet accents (#603097). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#303397) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #000000black |
| Foreground | #040510black | #f5f5f9whitesmoke |
| Card | #fbfbfeghostwhite | #000000black |
| Card foreground | #040510black | #f5f5f9whitesmoke |
| Popover | #fbfbfeghostwhite | #000000black |
| Popover foreground | #040510black | #f5f5f9whitesmoke |
| Primary | #303397darkslateblue | #303397darkslateblue |
| Primary foreground | #fbfbfeghostwhite | #fbfbfeghostwhite |
| Secondary | #306797steelblue | #306797steelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d2dfeagainsboro | #15222dblack |
| Muted foreground | #485056darkslategray | #a9b0b7darkgray |
| Accent | #603097rebeccapurple | #603097rebeccapurple |
| Accent foreground | #fcfbfewhite | #fcfbfewhite |
| Destructive | #692507maroon | #f06428chocolate |
| Destructive foreground | #f9c1a9lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #303397darkslateblue | #303397darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.67:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 9.92:1 | AAA |
| Secondary button | 5.98:1 | AA |
| Muted text | 6.03:1 | AA |
| Accent | 8.61:1 | AAA |
| Destructive | 7.10:1 | AAA |
| Text on background | 19.31:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 9.92:1 | AAA |
| Secondary button | 5.98:1 | AA |
| Muted text | 7.37:1 | AAA |
| Accent | 8.61:1 | AAA |
| Destructive | 6.57:1 | AA |
Paste this into your globals.css to use Bail in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 284.745);
--foreground: oklch(0.121 0.028 279.24);
--muted: oklch(0.896 0.021 244.374);
--muted-foreground: oklch(0.425 0.015 244.52);
--popover: oklch(0.989 0.004 284.745);
--popover-foreground: oklch(0.121 0.028 279.24);
--card: oklch(0.989 0.004 284.745);
--card-foreground: oklch(0.121 0.028 279.24);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.387 0.16 274.541);
--primary-foreground: oklch(0.989 0.003 284.747);
--secondary: oklch(0.499 0.097 247.577);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.427 0.161 301.2);
--accent-foreground: oklch(0.99 0.004 307.066);
--destructive: oklch(0.362 0.105 40.351);
--destructive-foreground: oklch(0.855 0.072 44.313);
--ring: oklch(0.387 0.16 274.541);
--chart-1: oklch(0.387 0.16 274.541);
--chart-2: oklch(0.499 0.097 247.577);
--chart-3: oklch(0.427 0.161 301.2);
--chart-4: oklch(0.526 0.103 247.624);
--chart-5: oklch(0.383 0.168 273.684);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.972 0.005 284.712);
--muted: oklch(0.245 0.028 245.661);
--muted-foreground: oklch(0.755 0.013 244.3);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.972 0.005 284.712);
--card: oklch(0 0 0);
--card-foreground: oklch(0.972 0.005 284.712);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.387 0.16 274.541);
--primary-foreground: oklch(0.989 0.003 284.747);
--secondary: oklch(0.499 0.097 247.577);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.427 0.161 301.2);
--accent-foreground: oklch(0.99 0.004 307.066);
--destructive: oklch(0.672 0.186 40.992);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.387 0.16 274.541);
--chart-1: oklch(0.387 0.16 274.541);
--chart-2: oklch(0.499 0.097 247.577);
--chart-3: oklch(0.427 0.161 301.2);
--chart-4: oklch(0.526 0.103 247.624);
--chart-5: oklch(0.383 0.168 273.684);
}