Condition is a shadcn/ui theme built around a vivid deep indigo primary color (#180660) with vivid deep violet accents (#450660). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid deep indigo primary (#180660) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #000000black |
| Foreground | #05040cblack | #ffffffwhite |
| Card | #f5f4fbwhitesmoke | #030303black |
| Card foreground | #040208black | #ffffffwhite |
| Popover | #f8f8fcghostwhite | #000000black |
| Popover foreground | #05040cblack | #ffffffwhite |
| Primary | #180660midnightblue | #180660midnightblue |
| Primary foreground | #b19ff9lightsteelblue | #b19ff9lightsteelblue |
| Secondary | #062160midnightblue | #062160midnightblue |
| Secondary foreground | #9fbaf9lightskyblue | #9fbaf9lightskyblue |
| Muted | #e1e5eflavender | #10141eblack |
| Muted foreground | #61646bdimgray | #94979edarkgray |
| Accent | #450660indigo | #450660indigo |
| Accent foreground | #de9ff9plum | #de9ff9plum |
| Destructive | #650f06maroon | #f34330tomato |
| Destructive foreground | #faaca3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #180660midnightblue | #180660midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 18.87:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 4.70:1 | AA |
| Accent | 7.20:1 | AAA |
| Destructive | 7.05:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 6.29:1 | AA |
| Accent | 7.20:1 | AAA |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Condition in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 295.461);
--foreground: oklch(0.114 0.022 294.558);
--muted: oklch(0.922 0.014 267.325);
--muted-foreground: oklch(0.503 0.012 267.268);
--popover: oklch(0.98 0.006 295.461);
--popover-foreground: oklch(0.114 0.022 294.558);
--card: oklch(0.97 0.009 295.399);
--card-foreground: oklch(0.099 0.019 294.67);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.244 0.14 277.476);
--primary-foreground: oklch(0.753 0.128 292.229);
--secondary: oklch(0.277 0.116 263.109);
--secondary-foreground: oklch(0.792 0.095 266.353);
--accent: oklch(0.301 0.143 311.884);
--accent-foreground: oklch(0.794 0.14 315.351);
--destructive: oklch(0.33 0.12 30.697);
--destructive-foreground: oklch(0.817 0.093 26.311);
--ring: oklch(0.244 0.14 277.476);
--chart-1: oklch(0.244 0.14 277.476);
--chart-2: oklch(0.277 0.116 263.109);
--chart-3: oklch(0.301 0.143 311.884);
--chart-4: oklch(0.302 0.13 263.154);
--chart-5: oklch(0.243 0.143 276.665);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.192 0.021 266.446);
--muted-foreground: oklch(0.676 0.011 267.319);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.244 0.14 277.476);
--primary-foreground: oklch(0.753 0.128 292.229);
--secondary: oklch(0.277 0.116 263.109);
--secondary-foreground: oklch(0.792 0.095 266.353);
--accent: oklch(0.301 0.143 311.884);
--accent-foreground: oklch(0.794 0.14 315.351);
--destructive: oklch(0.641 0.215 30.224);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.244 0.14 277.476);
--chart-1: oklch(0.244 0.14 277.476);
--chart-2: oklch(0.277 0.116 263.109);
--chart-3: oklch(0.301 0.143 311.884);
--chart-4: oklch(0.302 0.13 263.154);
--chart-5: oklch(0.243 0.143 276.665);
}