Strict is a shadcn/ui theme built around a light indigo primary color (#ece9fb) with light violet accents (#f5e9fb). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the light indigo primary (#ece9fb) on a neutral background (#030208).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #030208black |
| Foreground | #04020dblack | #f9f9fbghostwhite |
| Card | #f8f7fdghostwhite | #030208black |
| Card foreground | #04020dblack | #f9f9fbghostwhite |
| Popover | #f8f7fdghostwhite | #030208black |
| Popover foreground | #04020dblack | #f9f9fbghostwhite |
| Primary | #ece9fblavender | #ece9fblavender |
| Primary foreground | #2d1a99midnightblue | #2d1a99midnightblue |
| Secondary | #e9f0fblavender | #e9f0fblavender |
| Secondary foreground | #1a4699darkslateblue | #1a4699darkslateblue |
| Muted | #e9ecf1lavender | #0e1116black |
| Muted foreground | #424852darkslategray | #adb3bddarkgray |
| Accent | #f5e9fbwhitesmoke | #f5e9fbwhitesmoke |
| Accent foreground | #6c1a99rebeccapurple | #6c1a99rebeccapurple |
| Destructive | #a4360esaddlebrown | #ec5c27chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ece9fblavender | #ece9fblavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.36:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 10.25:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 7.78:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.72:1 | AA |
| Text on background | 19.62:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 10.25:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 8.98:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.12:1 | AA |
Paste this into your globals.css to use Strict in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.007 293.173);
--foreground: oklch(0.102 0.034 289.989);
--muted: oklch(0.943 0.007 263.04);
--muted-foreground: oklch(0.399 0.019 262.898);
--popover: oklch(0.979 0.007 293.173);
--popover-foreground: oklch(0.102 0.034 289.989);
--card: oklch(0.979 0.007 293.173);
--card-foreground: oklch(0.102 0.034 289.989);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.942 0.024 292.817);
--primary-foreground: oklch(0.35 0.188 277.227);
--secondary: oklch(0.952 0.017 263.014);
--secondary-foreground: oklch(0.416 0.144 261.395);
--accent: oklch(0.949 0.027 314.063);
--accent-foreground: oklch(0.421 0.19 309.66);
--destructive: oklch(0.49 0.152 37.723);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.942 0.024 292.817);
--chart-1: oklch(0.942 0.024 292.817);
--chart-2: oklch(0.952 0.017 263.014);
--chart-3: oklch(0.949 0.027 314.063);
--chart-4: oklch(0.981 0.007 263.041);
--chart-5: oklch(0.941 0.025 292.795);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.02 291.607);
--foreground: oklch(0.983 0.002 293.272);
--muted: oklch(0.176 0.011 262.829);
--muted-foreground: oklch(0.764 0.016 263.004);
--popover: oklch(0.098 0.02 291.607);
--popover-foreground: oklch(0.983 0.002 293.272);
--card: oklch(0.098 0.02 291.607);
--card-foreground: oklch(0.983 0.002 293.272);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.942 0.024 292.817);
--primary-foreground: oklch(0.35 0.188 277.227);
--secondary: oklch(0.952 0.017 263.014);
--secondary-foreground: oklch(0.416 0.144 261.395);
--accent: oklch(0.949 0.027 314.063);
--accent-foreground: oklch(0.421 0.19 309.66);
--destructive: oklch(0.655 0.19 38.678);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.942 0.024 292.817);
--chart-1: oklch(0.942 0.024 292.817);
--chart-2: oklch(0.952 0.017 263.014);
--chart-3: oklch(0.949 0.027 314.063);
--chart-4: oklch(0.981 0.007 263.041);
--chart-5: oklch(0.941 0.025 292.795);
}