Framework is a shadcn/ui theme built around an indigo primary color (#9982e3) with green accents (#cce382). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#9982e3) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #080316black | #f6f4fawhitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #060312black | #f9f8fcghostwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #080316black | #f6f4fawhitesmoke |
| Primary | #9982e3mediumpurple | #9982e3mediumpurple |
| Primary foreground | #11092ablack | #11092ablack |
| Secondary | #cce382khaki | #cce382khaki |
| Secondary foreground | #222a09black | #222a09black |
| Muted | #e1e3d8gainsboro | #24271cblack |
| Muted foreground | #585c4ddarkolivegreen | #afb2a3darkgray |
| Accent | #cce382khaki | #cce382khaki |
| Accent foreground | #222a09black | #222a09black |
| Destructive | #691802maroon | #f53905orangered |
| Destructive foreground | #fdb4a0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9982e3mediumpurple | #9982e3mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.29:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 10.58:1 | AAA |
| Muted text | 5.31:1 | AA |
| Accent | 10.58:1 | AAA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 10.58:1 | AAA |
| Muted text | 7.04:1 | AAA |
| Accent | 10.58:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Framework in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.127 0.044 293.015);
--muted: oklch(0.912 0.015 117.381);
--muted-foreground: oklch(0.466 0.024 118.014);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.127 0.044 293.015);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.116 0.038 294.54);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.669 0.141 292.936);
--primary-foreground: oklch(0.176 0.062 289.095);
--secondary: oklch(0.877 0.124 119.783);
--secondary-foreground: oklch(0.268 0.052 121.152);
--accent: oklch(0.877 0.124 119.783);
--accent-foreground: oklch(0.268 0.052 121.152);
--destructive: oklch(0.346 0.118 35.328);
--destructive-foreground: oklch(0.834 0.09 36.079);
--ring: oklch(0.669 0.141 292.936);
--chart-1: oklch(0.669 0.141 292.936);
--chart-2: oklch(0.877 0.124 119.783);
--chart-3: oklch(0.877 0.124 119.783);
--chart-4: oklch(0.889 0.113 119.465);
--chart-5: oklch(0.665 0.147 292.682);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.971 0.008 296.934);
--muted: oklch(0.265 0.02 118.482);
--muted-foreground: oklch(0.758 0.022 117.59);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.971 0.008 296.934);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.981 0.005 296.984);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.669 0.141 292.936);
--primary-foreground: oklch(0.176 0.062 289.095);
--secondary: oklch(0.877 0.124 119.783);
--secondary-foreground: oklch(0.268 0.052 121.152);
--accent: oklch(0.877 0.124 119.783);
--accent-foreground: oklch(0.268 0.052 121.152);
--destructive: oklch(0.633 0.228 33.543);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.669 0.141 292.936);
--chart-1: oklch(0.669 0.141 292.936);
--chart-2: oklch(0.877 0.124 119.783);
--chart-3: oklch(0.877 0.124 119.783);
--chart-4: oklch(0.889 0.113 119.465);
--chart-5: oklch(0.665 0.147 292.682);
}