Attached is a shadcn/ui theme built around a muted light blue primary color (#f3f4f7) with muted light yellow accents (#f7f6f3). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted light blue primary (#f3f4f7) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #030407black |
| Foreground | #03050cblack | #ffffffwhite |
| Card | #fbfcfewhite | #030407black |
| Card foreground | #03050cblack | #ffffffwhite |
| Popover | #fbfcfewhite | #030407black |
| Popover foreground | #03050cblack | #ffffffwhite |
| Primary | #f3f4f7whitesmoke | #f3f4f7whitesmoke |
| Primary foreground | #49516edarkslateblue | #49516edarkslateblue |
| Secondary | #f7f6f3whitesmoke | #f7f6f3whitesmoke |
| Secondary foreground | #312e21darkslategray | #312e21darkslategray |
| Muted | #f0efeblinen | #14130fblack |
| Muted foreground | #484847darkslategray | #b8b8b7silver |
| Accent | #f7f6f3whitesmoke | #f7f6f3whitesmoke |
| Accent foreground | #312e21darkslategray | #312e21darkslategray |
| Destructive | #ce3309firebrick | #f7643btomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f3f4f7whitesmoke | #f3f4f7whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 12.58:1 | AAA |
| Muted text | 7.93:1 | AAA |
| Accent | 12.58:1 | AAA |
| Destructive | 5.12:1 | AA |
| Text on background | 20.53:1 | AAA |
| Text on card | 20.53:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 12.58:1 | AAA |
| Muted text | 9.33:1 | AAA |
| Accent | 12.58:1 | AAA |
| Destructive | 6.82:1 | AA |
Paste this into your globals.css to use Attached in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 274.997);
--foreground: oklch(0.116 0.02 267.85);
--muted: oklch(0.951 0.005 95.101);
--muted-foreground: oklch(0.401 0.002 95.091);
--popover: oklch(0.99 0.003 274.997);
--popover-foreground: oklch(0.116 0.02 267.85);
--card: oklch(0.99 0.003 274.997);
--card-foreground: oklch(0.116 0.02 267.85);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.966 0.004 274.978);
--primary-foreground: oklch(0.44 0.049 273.37);
--secondary: oklch(0.973 0.004 95.087);
--secondary-foreground: oklch(0.299 0.023 95.712);
--accent: oklch(0.973 0.004 95.087);
--accent-foreground: oklch(0.299 0.023 95.712);
--destructive: oklch(0.559 0.196 34.1);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.966 0.004 274.978);
--chart-1: oklch(0.966 0.004 274.978);
--chart-2: oklch(0.973 0.004 95.087);
--chart-3: oklch(0.973 0.004 95.087);
--chart-4: oklch(0.993 0.001 95.047);
--chart-5: oklch(0.966 0.005 274.97);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.013 269.635);
--foreground: oklch(1 0 180);
--muted: oklch(0.188 0.008 95.479);
--muted-foreground: oklch(0.783 0.002 95.059);
--popover: oklch(0.105 0.013 269.635);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.105 0.013 269.635);
--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.966 0.004 274.978);
--primary-foreground: oklch(0.44 0.049 273.37);
--secondary: oklch(0.973 0.004 95.087);
--secondary-foreground: oklch(0.299 0.023 95.712);
--accent: oklch(0.973 0.004 95.087);
--accent-foreground: oklch(0.299 0.023 95.712);
--destructive: oklch(0.684 0.189 36.149);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.966 0.004 274.978);
--chart-1: oklch(0.966 0.004 274.978);
--chart-2: oklch(0.973 0.004 95.087);
--chart-3: oklch(0.973 0.004 95.087);
--chart-4: oklch(0.993 0.001 95.047);
--chart-5: oklch(0.966 0.005 274.97);
}