Origin is a shadcn/ui theme built around a purple primary color (#e26ecd) with neutral gray accents (#d9d3d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#e26ecd) on a purple-tinted background (#10040e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #10040eblack |
| Foreground | #080207black | #f9f6f8whitesmoke |
| Card | #fcfcfcsnow | #140512black |
| Card foreground | #040104black | #fbf9fasnow |
| Popover | #fcfcfcsnow | #140512black |
| Popover foreground | #040104black | #fbf9fasnow |
| Primary | #e26ecdorchid | #e26ecdorchid |
| Primary foreground | #1a0516black | #1a0516black |
| Secondary | #d9d3d8lightgrey | #362b34darkslategray |
| Secondary foreground | #413940darkslategray | #cfc4cdthistle |
| Muted | #eeddeblavender | #22111fblack |
| Muted foreground | #595458dimgray | #aba6aadarkgray |
| Accent | #d9d3d8lightgrey | #362b34darkslategray |
| Accent foreground | #413940darkslategray | #cfc4cdthistle |
| Destructive | #ca0202firebrick | #fd1717red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e26ecdorchid | #e26ecdorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.54:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.84:1 | AA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 5.71:1 | AA |
| Accent | 7.58:1 | AAA |
| Destructive | 5.96:1 | AA |
| Text on background | 18.68:1 | AAA |
| Text on card | 18.87:1 | AAA |
| Primary button | 6.84:1 | AA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 7.50:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Origin in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.107 0.025 332.453);
--muted: oklch(0.915 0.026 331.803);
--muted-foreground: oklch(0.453 0.01 331.703);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.085 0.02 332.453);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.085 0.02 332.453);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.706 0.182 334.776);
--primary-foreground: oklch(0.162 0.048 334.888);
--secondary: oklch(0.874 0.009 331.551);
--secondary-foreground: oklch(0.356 0.017 332.056);
--accent: oklch(0.874 0.009 331.551);
--accent-foreground: oklch(0.356 0.017 332.056);
--destructive: oklch(0.527 0.216 29.148);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.706 0.182 334.776);
--chart-1: oklch(0.706 0.182 334.776);
--chart-2: oklch(0.874 0.009 331.551);
--chart-3: oklch(0.874 0.009 331.551);
--chart-4: oklch(0.898 0.007 331.52);
--chart-5: oklch(0.707 0.189 334.908);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.033 333.626);
--foreground: oklch(0.976 0.004 331.468);
--muted: oklch(0.208 0.037 333.74);
--muted-foreground: oklch(0.73 0.008 331.571);
--popover: oklch(0.15 0.037 334.178);
--popover-foreground: oklch(0.984 0.003 331.447);
--card: oklch(0.15 0.037 334.178);
--card-foreground: oklch(0.984 0.003 331.447);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.706 0.182 334.776);
--primary-foreground: oklch(0.162 0.048 334.888);
--secondary: oklch(0.305 0.022 332.374);
--secondary-foreground: oklch(0.831 0.019 331.72);
--accent: oklch(0.305 0.022 332.374);
--accent-foreground: oklch(0.831 0.019 331.72);
--destructive: oklch(0.629 0.25 28.561);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.706 0.182 334.776);
--chart-1: oklch(0.706 0.182 334.776);
--chart-2: oklch(0.305 0.022 332.374);
--chart-3: oklch(0.305 0.022 332.374);
--chart-4: oklch(0.334 0.024 332.404);
--chart-5: oklch(0.707 0.189 334.908);
}