Bold is a shadcn/ui theme built around a near-black primary color (#0d0c0d) with muted light violet accents (#beb9ca). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0d0c0d) on a violet-tinted background (#09060e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #09060eblack |
| Foreground | #040109black | #f9f8fbghostwhite |
| Card | #fcfcfcsnow | #0b0812black |
| Card foreground | #020104black | #fcfcfdwhite |
| Popover | #ffffffwhite | #09060eblack |
| Popover foreground | #040109black | #f9f8fbghostwhite |
| Primary | #0d0c0dblack | #0d0c0dblack |
| Primary foreground | #a5a4a8darkgray | #a5a4a8darkgray |
| Secondary | #d5d3d9lightgrey | #2c2a32darkslategray |
| Secondary foreground | #3b3941darkslategray | #c5c2cbsilver |
| Muted | #f2f0f4whitesmoke | #0c0b0fblack |
| Muted foreground | #615d69dimgray | #9996a2darkgray |
| Accent | #beb9casilver | #403a50darkslategray |
| Accent foreground | #27232fdarkslategray | #dcd9e3gainsboro |
| Destructive | #6c1509maroon | #e62c14orangered |
| Destructive foreground | #f8b8aflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0d0c0dblack | #0d0c0dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.72:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 5.66:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 7.13:1 | AAA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 6.76:1 | AA |
| Accent | 7.77:1 | AAA |
| Destructive | 4.43:1 | AA Large |
Paste this into your globals.css to use Bold in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.094 0.028 300.351);
--muted: oklch(0.958 0.005 299.953);
--muted-foreground: oklch(0.488 0.019 299.37);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.094 0.028 300.351);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.074 0.022 300.351);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.157 0.001 299.921);
--primary-foreground: oklch(0.721 0.005 299.916);
--secondary: oklch(0.871 0.008 299.884);
--secondary-foreground: oklch(0.35 0.015 299.312);
--accent: oklch(0.796 0.025 299.519);
--accent-foreground: oklch(0.265 0.022 298.656);
--destructive: oklch(0.349 0.122 31.038);
--destructive-foreground: oklch(0.839 0.076 27.31);
--ring: oklch(0.157 0.001 299.921);
--chart-1: oklch(0.157 0.001 299.921);
--chart-2: oklch(0.871 0.008 299.884);
--chart-3: oklch(0.796 0.025 299.519);
--chart-4: oklch(0.895 0.006 299.917);
--chart-5: oklch(0.156 0.003 299.742);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.02 299.217);
--foreground: oklch(0.982 0.004 299.965);
--muted: oklch(0.152 0.008 299.181);
--muted-foreground: oklch(0.679 0.018 299.597);
--popover: oklch(0.132 0.02 299.217);
--popover-foreground: oklch(0.982 0.004 299.965);
--card: oklch(0.142 0.023 297.798);
--card-foreground: oklch(0.991 0.002 300.002);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.157 0.001 299.921);
--primary-foreground: oklch(0.721 0.005 299.916);
--secondary: oklch(0.291 0.014 299.254);
--secondary-foreground: oklch(0.82 0.013 299.777);
--accent: oklch(0.364 0.038 298.23);
--accent-foreground: oklch(0.89 0.015 299.759);
--destructive: oklch(0.598 0.222 30.977);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.157 0.001 299.921);
--chart-1: oklch(0.157 0.001 299.921);
--chart-2: oklch(0.291 0.014 299.254);
--chart-3: oklch(0.364 0.038 298.23);
--chart-4: oklch(0.32 0.015 299.225);
--chart-5: oklch(0.156 0.003 299.742);
}