Wit is a shadcn/ui theme built around a muted light blue primary color (#eeeff1) with muted light indigo accents (#eeeef1). The light mode uses a neutral background (#f7fafd). Dark mode keeps the muted light blue primary (#eeeff1) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fafdghostwhite | #010204black |
| Foreground | #010204black | #ffffffwhite |
| Card | #f7fafdghostwhite | #010204black |
| Card foreground | #010204black | #ffffffwhite |
| Popover | #f7fafdghostwhite | #010204black |
| Popover foreground | #010204black | #ffffffwhite |
| Primary | #eeeff1whitesmoke | #eeeff1whitesmoke |
| Primary foreground | #4d5560darkslategray | #4d5560darkslategray |
| Secondary | #eef1f1whitesmoke | #eef1f1whitesmoke |
| Secondary foreground | #202728darkslategray | #202728darkslategray |
| Muted | #e6f3f4lavender | #0b1819black |
| Muted foreground | #5f6363dimgray | #9ca0a0darkgray |
| Accent | #eeeef1whitesmoke | #eeeef1whitesmoke |
| Accent foreground | #4e4d60darkslategray | #4e4d60darkslategray |
| Destructive | #c24814chocolate | #d44f16chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eeeff1whitesmoke | #eeeff1whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.76:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 13.39:1 | AAA |
| Muted text | 5.36:1 | AA |
| Accent | 7.10:1 | AAA |
| Destructive | 4.95:1 | AA |
| Text on background | 20.71:1 | AAA |
| Text on card | 20.71:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 13.39:1 | AAA |
| Muted text | 6.86:1 | AA |
| Accent | 7.10:1 | AAA |
| Destructive | 4.24:1 | AA Large |
Paste this into your globals.css to use Wit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 254.98);
--foreground: oklch(0.086 0.014 243.879);
--muted: oklch(0.955 0.014 202.063);
--muted-foreground: oklch(0.495 0.005 202.117);
--popover: oklch(0.983 0.005 254.98);
--popover-foreground: oklch(0.086 0.014 243.879);
--card: oklch(0.983 0.005 254.98);
--card-foreground: oklch(0.086 0.014 243.879);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.953 0.003 254.971);
--primary-foreground: oklch(0.448 0.021 255.154);
--secondary: oklch(0.956 0.003 202.176);
--secondary-foreground: oklch(0.266 0.01 201.838);
--accent: oklch(0.95 0.004 289.39);
--accent-foreground: oklch(0.429 0.031 288.058);
--destructive: oklch(0.563 0.166 39.96);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.953 0.003 254.971);
--chart-1: oklch(0.953 0.003 254.971);
--chart-2: oklch(0.956 0.003 202.176);
--chart-3: oklch(0.95 0.004 289.39);
--chart-4: oklch(0.978 0.002 202.196);
--chart-5: oklch(0.953 0.004 254.976);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.009 247.411);
--foreground: oklch(1 0 180);
--muted: oklch(0.197 0.018 201.56);
--muted-foreground: oklch(0.702 0.004 202.15);
--popover: oklch(0.088 0.009 247.411);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.088 0.009 247.411);
--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.953 0.003 254.971);
--primary-foreground: oklch(0.448 0.021 255.154);
--secondary: oklch(0.956 0.003 202.176);
--secondary-foreground: oklch(0.266 0.01 201.838);
--accent: oklch(0.95 0.004 289.39);
--accent-foreground: oklch(0.429 0.031 288.058);
--destructive: oklch(0.601 0.179 39.843);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.953 0.003 254.971);
--chart-1: oklch(0.953 0.003 254.971);
--chart-2: oklch(0.956 0.003 202.176);
--chart-3: oklch(0.95 0.004 289.39);
--chart-4: oklch(0.978 0.002 202.196);
--chart-5: oklch(0.953 0.004 254.976);
}