Intent is a shadcn/ui theme built around a near-black primary color (#000000) with near-black accents (#000000). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the near-black primary (#000000) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #070303black |
| Foreground | #080202black | #f9f5f5whitesmoke |
| Card | #faf5f5whitesmoke | #0a0505black |
| Card foreground | #040101black | #fbf8f8snow |
| Popover | #fcf8f8snow | #070303black |
| Popover foreground | #080202black | #f9f5f5whitesmoke |
| Primary | #000000black | #000000black |
| Primary foreground | #999999darkgray | #999999darkgray |
| Secondary | #000000black | #000000black |
| Secondary foreground | #999999darkgray | #999999darkgray |
| Muted | #e5d7d7gainsboro | #281a1ablack |
| Muted foreground | #685a5adimgray | #a59797rosybrown |
| Accent | #000000black | #000000black |
| Accent foreground | #999999darkgray | #999999darkgray |
| Destructive | #6e140cmaroon | #d32717firebrick |
| Destructive foreground | #f7bbb6lightpink | #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.54:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 4.69:1 | AA |
| Accent | 7.37:1 | AAA |
| Destructive | 7.18:1 | AAA |
| Text on background | 18.92:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 7.37:1 | AAA |
| Destructive | 5.14:1 | AA |
Paste this into your globals.css to use Intent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 17.218);
--foreground: oklch(0.102 0.021 21.445);
--muted: oklch(0.89 0.015 17.446);
--muted-foreground: oklch(0.481 0.018 17.784);
--popover: oklch(0.982 0.004 17.218);
--popover-foreground: oklch(0.102 0.021 21.445);
--card: oklch(0.974 0.005 17.25);
--card-foreground: oklch(0.081 0.017 21.445);
--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 0 0);
--secondary-foreground: oklch(0.683 0 180);
--accent: oklch(0 0 0);
--accent-foreground: oklch(0.683 0 180);
--destructive: oklch(0.353 0.125 29.808);
--destructive-foreground: oklch(0.845 0.07 24.584);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0 0 0);
--chart-3: oklch(0 0 0);
--chart-4: oklch(0.132 0 165.964);
--chart-5: oklch(0 0 0);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.01 18.726);
--foreground: oklch(0.974 0.005 17.236);
--muted: oklch(0.236 0.022 18.867);
--muted-foreground: oklch(0.689 0.016 17.549);
--popover: oklch(0.109 0.01 18.726);
--popover-foreground: oklch(0.974 0.005 17.236);
--card: oklch(0.125 0.011 18.726);
--card-foreground: oklch(0.983 0.003 17.209);
--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 0 0);
--secondary-foreground: oklch(0.683 0 180);
--accent: oklch(0 0 0);
--accent-foreground: oklch(0.683 0 180);
--destructive: oklch(0.561 0.208 30.032);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0 0 0);
--chart-3: oklch(0 0 0);
--chart-4: oklch(0.132 0 165.964);
--chart-5: oklch(0 0 0);
}