Strict is a shadcn/ui theme built around a light pink primary color (#e7b1ce) with muted light pink accents (#dcd6d9). The light mode uses a neutral background (#fefbfd). Dark mode keeps the light pink primary (#e7b1ce) on a neutral background (#070305).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #070305black |
| Foreground | #12030bblack | #ffffffwhite |
| Card | #fefbfdsnow | #070305black |
| Card foreground | #12030bblack | #ffffffwhite |
| Popover | #fefbfdsnow | #070305black |
| Popover foreground | #12030bblack | #ffffffwhite |
| Primary | #e7b1cethistle | #e7b1cethistle |
| Primary foreground | #4e1835darkslategray | #4e1835darkslategray |
| Secondary | #dcd6d9gainsboro | #242424darkslategray |
| Secondary foreground | #453b40darkslategray | #bdbdbdsilver |
| Muted | #e8dee3gainsboro | #211717black |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #dcd6d9gainsboro | #242424darkslategray |
| Accent foreground | #453b40darkslategray | #bdbdbdsilver |
| Destructive | #c51d11firebrick | #dd2113crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e7b1cethistle | #e7b1cethistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 7.68:1 | AAA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 7.07:1 | AAA |
| Accent | 7.49:1 | AAA |
| Destructive | 5.89:1 | AA |
| Text on background | 20.49:1 | AAA |
| Text on card | 20.49:1 | AAA |
| Primary button | 7.68:1 | AAA |
| Secondary button | 8.29:1 | AAA |
| Muted text | 8.82:1 | AAA |
| Accent | 8.29:1 | AAA |
| Destructive | 4.90:1 | AA |
Paste this into your globals.css to use Strict in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 343.525);
--foreground: oklch(0.133 0.037 345.966);
--muted: oklch(0.91 0.013 343.802);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(0.991 0.003 343.525);
--popover-foreground: oklch(0.133 0.037 345.966);
--card: oklch(0.991 0.003 343.525);
--card-foreground: oklch(0.133 0.037 345.966);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.818 0.073 345.554);
--primary-foreground: oklch(0.305 0.088 350.569);
--secondary: oklch(0.881 0.008 343.671);
--secondary-foreground: oklch(0.364 0.017 344.563);
--accent: oklch(0.881 0.008 343.671);
--accent-foreground: oklch(0.364 0.017 344.563);
--destructive: oklch(0.528 0.202 29.677);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.818 0.073 345.554);
--chart-1: oklch(0.818 0.073 345.554);
--chart-2: oklch(0.881 0.008 343.671);
--chart-3: oklch(0.881 0.008 343.671);
--chart-4: oklch(0.905 0.006 343.62);
--chart-5: oklch(0.817 0.077 345.673);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.015 343.38);
--foreground: oklch(1 0 180);
--muted: oklch(0.217 0.016 18.495);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0.109 0.015 343.38);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.109 0.015 343.38);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.818 0.073 345.554);
--primary-foreground: oklch(0.305 0.088 350.569);
--secondary: oklch(0.259 0 167.471);
--secondary-foreground: oklch(0.797 0 180);
--accent: oklch(0.259 0 167.471);
--accent-foreground: oklch(0.797 0 180);
--destructive: oklch(0.574 0.22 29.698);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.818 0.073 345.554);
--chart-1: oklch(0.818 0.073 345.554);
--chart-2: oklch(0.259 0 167.471);
--chart-3: oklch(0.259 0 167.471);
--chart-4: oklch(0.29 0 180);
--chart-5: oklch(0.817 0.077 345.673);
}