Bratwurst is a shadcn/ui theme built around a vivid deep orange primary color (#855a0f) with vivid deep blue accents (#0f3a85). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the vivid deep orange primary (#855a0f) on an orange-tinted background (#0d0b07).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #0d0b07black |
| Foreground | #110c03black | #fdfdfcwhite |
| Card | #fcfbf8snow | #0d0b07black |
| Card foreground | #110c03black | #fdfdfcwhite |
| Popover | #fcfbf8snow | #0d0b07black |
| Popover foreground | #110c03black | #fdfdfcwhite |
| Primary | #855a0fsaddlebrown | #855a0fsaddlebrown |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #0f3a85midnightblue | #0f3a85midnightblue |
| Secondary foreground | #cdddf9lavender | #cdddf9lavender |
| Muted | #dfe0e2gainsboro | #1d1e20black |
| Muted foreground | #464f5ddarkslategray | #a2aab9darkgray |
| Accent | #0f3a85midnightblue | #0f3a85midnightblue |
| Accent foreground | #cdddf9lavender | #cdddf9lavender |
| Destructive | #880e0cdarkred | #eb211ecrimson |
| Destructive foreground | #fbcccbpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #855a0fsaddlebrown | #855a0fsaddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.78:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 6.26:1 | AA |
| Accent | 7.77:1 | AAA |
| Destructive | 6.90:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 7.77:1 | AAA |
| Destructive | 4.38:1 | AA Large |
Paste this into your globals.css to use Bratwurst in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 81.513);
--foreground: oklch(0.158 0.022 84.934);
--muted: oklch(0.906 0.003 261.513);
--muted-foreground: oklch(0.424 0.026 261.381);
--popover: oklch(0.987 0.004 81.513);
--popover-foreground: oklch(0.158 0.022 84.934);
--card: oklch(0.987 0.004 81.513);
--card-foreground: oklch(0.158 0.022 84.934);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.502 0.101 74.34);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.37 0.135 260.74);
--secondary-foreground: oklch(0.894 0.043 261.43);
--accent: oklch(0.37 0.135 260.74);
--accent-foreground: oklch(0.894 0.043 261.43);
--destructive: oklch(0.401 0.155 28.43);
--destructive-foreground: oklch(0.886 0.053 19.333);
--ring: oklch(0.502 0.101 74.34);
--chart-1: oklch(0.502 0.101 74.34);
--chart-2: oklch(0.37 0.135 260.74);
--chart-3: oklch(0.37 0.135 260.74);
--chart-4: oklch(0.396 0.146 260.773);
--chart-5: oklch(0.505 0.103 73.773);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.151 0.01 82.941);
--foreground: oklch(0.993 0.001 81.514);
--muted: oklch(0.235 0.004 261.501);
--muted-foreground: oklch(0.737 0.023 261.476);
--popover: oklch(0.151 0.01 82.941);
--popover-foreground: oklch(0.993 0.001 81.514);
--card: oklch(0.151 0.01 82.941);
--card-foreground: oklch(0.993 0.001 81.514);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.502 0.101 74.34);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.37 0.135 260.74);
--secondary-foreground: oklch(0.894 0.043 261.43);
--accent: oklch(0.37 0.135 260.74);
--accent-foreground: oklch(0.894 0.043 261.43);
--destructive: oklch(0.602 0.232 28.389);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.502 0.101 74.34);
--chart-1: oklch(0.502 0.101 74.34);
--chart-2: oklch(0.37 0.135 260.74);
--chart-3: oklch(0.37 0.135 260.74);
--chart-4: oklch(0.396 0.146 260.773);
--chart-5: oklch(0.505 0.103 73.773);
}