Belt is a shadcn/ui theme built around a near-black primary color (#000000) with near-white accents (#ebeaea). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-black primary (#000000) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f7snow | #070303black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #fdf7f7snow | #070303black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fdf7f7snow | #070303black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #000000black | #000000black |
| Primary foreground | #999999darkgray | #999999darkgray |
| Secondary | #ebeaealinen | #191515black |
| Secondary foreground | #525151darkslategray | #b6aaaadarkgray |
| Muted | #f0e6e6linen | #1a0f0fblack |
| Muted foreground | #605252dimgray | #ad9f9fdarkgray |
| Accent | #ebeaealinen | #191515black |
| Accent foreground | #525151darkslategray | #b6aaaadarkgray |
| Destructive | #882802saddlebrown | #fb4e09orangered |
| Destructive foreground | #fed0bepeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000000black | #000000black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 6.60:1 | AA |
| Muted text | 6.04:1 | AA |
| Accent | 6.60:1 | AA |
| Destructive | 6.39:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 7.35:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 3.39:1 | AA Large |
Paste this into your globals.css to use Belt in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 17.278);
--foreground: oklch(0 0 0);
--muted: oklch(0.931 0.011 17.356);
--muted-foreground: oklch(0.453 0.019 17.874);
--popover: oklch(0.98 0.007 17.278);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.007 17.278);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.939 0 17.166);
--secondary-foreground: oklch(0.436 0.002 17.239);
--accent: oklch(0.939 0 17.166);
--accent-foreground: oklch(0.436 0.002 17.239);
--destructive: oklch(0.422 0.137 37.857);
--destructive-foreground: oklch(0.892 0.058 42.681);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.939 0 17.166);
--chart-3: oklch(0.939 0 17.166);
--chart-4: oklch(0.962 0 17.163);
--chart-5: oklch(0 0 0);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.013 19.328);
--foreground: oklch(0.992 0.001 17.168);
--muted: oklch(0.184 0.017 18.875);
--muted-foreground: oklch(0.714 0.017 17.552);
--popover: oklch(0.107 0.013 19.328);
--popover-foreground: oklch(0.992 0.001 17.168);
--card: oklch(0.107 0.013 19.328);
--card-foreground: oklch(0.992 0.001 17.168);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.201 0.006 17.658);
--secondary-foreground: oklch(0.747 0.015 17.485);
--accent: oklch(0.201 0.006 17.658);
--accent-foreground: oklch(0.747 0.015 17.485);
--destructive: oklch(0.662 0.219 36.887);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.201 0.006 17.658);
--chart-3: oklch(0.201 0.006 17.658);
--chart-4: oklch(0.233 0.008 17.714);
--chart-5: oklch(0 0 0);
}