Grim Bracing Blue is a shadcn/ui theme built around a vivid deep blue primary color (#094381) with vivid deep green accents (#438109). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep blue primary (#094381) on a blue-tinted background (#060a0f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060a0fblack |
| Foreground | #040c16black | #f9fafbghostwhite |
| Card | #fcfcfcsnow | #070d12black |
| Card foreground | #030a11black | #fcfcfdwhite |
| Popover | #fcfcfcsnow | #070d12black |
| Popover foreground | #030a11black | #fcfcfdwhite |
| Primary | #094381midnightblue | #094381midnightblue |
| Primary foreground | #c1ddfbpowderblue | #c1ddfbpowderblue |
| Secondary | #810943brown | #810943brown |
| Secondary foreground | #fbc1ddpink | #fbc1ddpink |
| Muted | #f7eef2whitesmoke | #11080dblack |
| Muted foreground | #55494fdarkslategray | #b6aab0darkgray |
| Accent | #438109forestgreen | #438109forestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b31f0ffirebrick | #f05442tomato |
| Destructive foreground | #fef6f6snow | #000000black |
| Border | #e3e5e8gainsboro | #1e2124black |
| Input | #e3e5e8gainsboro | #1e2124black |
| Ring | #094381midnightblue | #094381midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 6.72:1 | AA |
| Muted text | 7.51:1 | AAA |
| Accent | 4.80:1 | AA |
| Destructive | 6.31:1 | AA |
| Text on background | 19.00:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 6.72:1 | AA |
| Muted text | 8.78:1 | AAA |
| Accent | 4.80:1 | AA |
| Destructive | 6.03:1 | AA |
Paste this into your globals.css to use Grim Bracing Blue in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.152 0.026 247.033);
--muted: oklch(0.957 0.011 346.324);
--muted-foreground: oklch(0.419 0.02 347.215);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.14 0.022 243.993);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.14 0.022 243.993);
--border: oklch(0.922 0.004 249.687);
--input: oklch(0.922 0.004 249.687);
--primary: oklch(0.385 0.118 254.845);
--primary-foreground: oklch(0.886 0.051 250.149);
--secondary: oklch(0.395 0.153 359.976);
--secondary-foreground: oklch(0.871 0.075 348.173);
--accent: oklch(0.539 0.154 134.996);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.496 0.185 30.519);
--destructive-foreground: oklch(0.98 0.008 25.061);
--ring: oklch(0.385 0.118 254.845);
--chart-1: oklch(0.385 0.118 254.845);
--chart-2: oklch(0.395 0.153 359.976);
--chart-3: oklch(0.539 0.154 134.996);
--chart-4: oklch(0.425 0.166 0.258);
--chart-5: oklch(0.386 0.122 255.13);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.013 246.471);
--foreground: oklch(0.984 0.001 249.664);
--muted: oklch(0.151 0.018 348.702);
--muted-foreground: oklch(0.749 0.017 346.604);
--popover: oklch(0.154 0.016 249.189);
--popover-foreground: oklch(0.992 0.001 249.657);
--card: oklch(0.154 0.016 249.189);
--card-foreground: oklch(0.992 0.001 249.657);
--border: oklch(0.246 0.006 249.886);
--input: oklch(0.246 0.006 249.886);
--primary: oklch(0.385 0.118 254.845);
--primary-foreground: oklch(0.886 0.051 250.149);
--secondary: oklch(0.395 0.153 359.976);
--secondary-foreground: oklch(0.871 0.075 348.173);
--accent: oklch(0.539 0.154 134.996);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.654 0.195 29.602);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.385 0.118 254.845);
--chart-1: oklch(0.385 0.118 254.845);
--chart-2: oklch(0.395 0.153 359.976);
--chart-3: oklch(0.539 0.154 134.996);
--chart-4: oklch(0.425 0.166 0.258);
--chart-5: oklch(0.386 0.122 255.13);
}