Assumption is a shadcn/ui theme built around a muted violet primary color (#ae9bb5) with muted violet accents (#b9a5c0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#ae9bb5) on a neutral background (#060307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060307black |
| Foreground | #100614black | #fbf9fbsnow |
| Card | #fcfcfcsnow | #09040bblack |
| Card foreground | #0d0510black | #fdfcfdwhite |
| Popover | #ffffffwhite | #060307black |
| Popover foreground | #100614black | #fbf9fbsnow |
| Primary | #ae9bb5darkgray | #ae9bb5darkgray |
| Primary foreground | #100d12black | #100d12black |
| Secondary | #cec7d1lightgrey | #1e1820black |
| Secondary foreground | #352e38darkslategray | #baabbfsilver |
| Muted | #f1edf2whitesmoke | #100d12black |
| Muted foreground | #4f4f4fdarkslategray | #b0b0b0darkgray |
| Accent | #b9a5c0silver | #38273fdarkslategray |
| Accent foreground | #1c151eblack | #d1c0d8thistle |
| Destructive | #b10d02firebrick | #fd1808red |
| Destructive foreground | #ffe7e6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ae9bb5darkgray | #ae9bb5darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.84:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 7.81:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 19.59:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 8.89:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Assumption in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.034 317.047);
--muted: oklch(0.951 0.007 317.172);
--muted-foreground: oklch(0.428 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.034 317.047);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.134 0.029 317.676);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.715 0.043 317.053);
--primary-foreground: oklch(0.165 0.011 317.039);
--secondary: oklch(0.838 0.016 317.145);
--secondary-foreground: oklch(0.313 0.021 317.039);
--accent: oklch(0.747 0.045 317.053);
--accent-foreground: oklch(0.208 0.021 316.961);
--destructive: oklch(0.481 0.192 29.972);
--destructive-foreground: oklch(0.948 0.026 22.535);
--ring: oklch(0.715 0.043 317.053);
--chart-1: oklch(0.715 0.043 317.053);
--chart-2: oklch(0.838 0.016 317.145);
--chart-3: oklch(0.747 0.045 317.053);
--chart-4: oklch(0.863 0.014 317.153);
--chart-5: oklch(0.712 0.051 317.024);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.019 318.782);
--foreground: oklch(0.983 0.004 317.18);
--muted: oklch(0.165 0.011 317.039);
--muted-foreground: oklch(0.757 0 180);
--popover: oklch(0.107 0.019 318.782);
--popover-foreground: oklch(0.983 0.004 317.18);
--card: oklch(0.123 0.022 318.642);
--card-foreground: oklch(0.992 0.002 317.185);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.715 0.043 317.053);
--primary-foreground: oklch(0.165 0.011 317.039);
--secondary: oklch(0.22 0.017 317.009);
--secondary-foreground: oklch(0.76 0.034 317.089);
--accent: oklch(0.304 0.047 316.809);
--accent-foreground: oklch(0.83 0.037 317.087);
--destructive: oklch(0.629 0.251 29.742);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.715 0.043 317.053);
--chart-1: oklch(0.715 0.043 317.053);
--chart-2: oklch(0.22 0.017 317.009);
--chart-3: oklch(0.304 0.047 316.809);
--chart-4: oklch(0.251 0.021 316.994);
--chart-5: oklch(0.712 0.051 317.024);
}