Proof, a shadcn/ui preset
Proofreader red with Source Sans 3: Galley’s editorial set. It comes from Galley, one of our website themes.
Fonts: Source Sans 3 · radius 0.375rem · light and dark · lowest text contrast 5.91:1
npx shadcn@latest add https://www.themes.dev/r/presets/proof.jsonProof on six free blocks from themes.dev UI. Scroll inside the preview.
The colours
The main variables, light and dark. The full set of 31 per mode, sidebar and charts included, is in the CSS below.
Light
- background#f7f3eb
- foreground#1e1c18
- primary#b3261e
- primary-foreground#ffffff
- secondary#ece7dc
- muted-foreground#5b554b
- accent#f7e3dc
- border#e0d8c8
- destructive#9c2a12
- ring#b3261e
- chart-1#ff9f90
- chart-2#e56455
- chart-3#bc4a3e
- chart-4#98352b
- chart-5#79231b
Dark
- background#0f0d0b
- foreground#fbfaf9
- primary#ff9686
- primary-foreground#14110f
- secondary#211c18
- muted-foreground#bcb8b5
- accent#44241f
- border#2e2b28
- destructive#ff9693
- ring#ff8272
- chart-1#ffa495
- chart-2#f37061
- chart-3#ca564a
- chart-4#a23e34
- chart-5#822c24
Contrast, checked
Every pair shadcn/ui draws text with, measured as WCAG 2 contrast (AA needs 4.5:1) and APCA Lc (we ask 60 for text). Focus rings need 3:1 on the page.
| Where | Pair | Light | Dark |
|---|---|---|---|
| Body text | foreground on background | 15.38:1 · Lc 97 | 18.59:1 · Lc 104 |
| Secondary text on the page | muted-foreground on background | 6.67:1 · Lc 79 | 9.86:1 · Lc 64 |
| Text in cards | card-foreground on card | 16.30:1 · Lc 101 | 17.17:1 · Lc 104 |
| Secondary text in cards | muted-foreground on card | 7.07:1 · Lc 83 | 9.10:1 · Lc 63 |
| Menus and popovers | popover-foreground on popover | 16.30:1 · Lc 101 | 17.17:1 · Lc 104 |
| Primary buttons | primary-foreground on primary | 6.54:1 · Lc 86 | 8.94:1 · Lc 62 |
| Links and outline accents | primary on background | 5.91:1 · Lc 74 | 9.23:1 · Lc 61 |
| Secondary buttons | secondary-foreground on secondary | 13.85:1 · Lc 90 | 16.20:1 · Lc 103 |
| Text on muted panels | muted-foreground on muted | 6.01:1 · Lc 72 | 8.59:1 · Lc 63 |
| Hovered menu items | accent-foreground on accent | 7.20:1 · Lc 75 | 13.31:1 · Lc 100 |
| Error messages | destructive on background | 6.89:1 · Lc 78 | 9.27:1 · Lc 61 |
| Sidebar | sidebar-foreground on sidebar | 14.84:1 · Lc 95 | 17.69:1 · Lc 104 |
| Sidebar active item | sidebar-primary-foreground on sidebar-primary | 6.54:1 · Lc 86 | 8.94:1 · Lc 62 |
| Sidebar hover | sidebar-accent-foreground on sidebar-accent | 13.85:1 · Lc 90 | 16.20:1 · Lc 103 |
| Focus ring | ring on background | 5.91:1 | 8.04:1 |
Use it
With the shadcn CLI, in a project set up with shadcn init:
npx shadcn@latest add https://www.themes.dev/r/presets/proof.jsonOr paste the CSS into globals.css (Next.js) or your main stylesheet (Vite, Astro), replacing the :root and .dark values that are there.
Then load the font:
npm i @fontsource-variable/source-sans-3The registry item: themes.dev/r/presets/proof.json. Free to use in any project.
:root {
--radius: 0.375rem;
--background: oklch(0.965 0.012 86.83);
--foreground: oklch(0.227 0.008 84.59);
--card: oklch(0.985 0.007 88.64);
--card-foreground: oklch(0.227 0.008 84.59);
--popover: oklch(0.985 0.007 88.64);
--popover-foreground: oklch(0.227 0.008 84.59);
--primary: oklch(0.501 0.178 28.7);
--primary-foreground: oklch(1 0 0);
--secondary: oklch(0.93 0.016 86.83);
--secondary-foreground: oklch(0.227 0.008 84.59);
--muted: oklch(0.93 0.016 86.83);
--muted-foreground: oklch(0.452 0.018 80.62);
--accent: oklch(0.93 0.024 40.34);
--accent-foreground: oklch(0.426 0.151 28.82);
--destructive: oklch(0.462 0.154 33.33);
--border: oklch(0.884 0.023 84.59);
--input: oklch(0.609 0.024 83.24);
--ring: oklch(0.501 0.178 28.7);
--chart-1: oklch(0.796 0.118 29.52);
--chart-2: oklch(0.66 0.164 28.7);
--chart-3: oklch(0.56 0.15 28.7);
--chart-4: oklch(0.47 0.135 28.7);
--chart-5: oklch(0.39 0.121 28.7);
--sidebar: oklch(0.953 0.012 86.83);
--sidebar-foreground: oklch(0.227 0.008 84.59);
--sidebar-primary: oklch(0.501 0.178 28.7);
--sidebar-primary-foreground: oklch(1 0 0);
--sidebar-accent: oklch(0.93 0.016 86.83);
--sidebar-accent-foreground: oklch(0.227 0.008 84.59);
--sidebar-border: oklch(0.884 0.023 84.59);
--sidebar-ring: oklch(0.501 0.178 28.7);
}
.dark {
--background: oklch(0.16 0.006 56);
--foreground: oklch(0.985 0.002 56);
--card: oklch(0.205 0.006 56);
--card-foreground: oklch(0.985 0.002 56);
--popover: oklch(0.205 0.006 56);
--popover-foreground: oklch(0.985 0.002 56);
--primary: oklch(0.78 0.129 29.78);
--primary-foreground: oklch(0.18 0.006 56);
--secondary: oklch(0.23 0.01 56);
--secondary-foreground: oklch(0.985 0.002 56);
--muted: oklch(0.23 0.01 56);
--muted-foreground: oklch(0.785 0.006 56);
--accent: oklch(0.3 0.05 28.7);
--accent-foreground: oklch(0.985 0.002 56);
--destructive: oklch(0.782 0.127 22);
--border: oklch(0.29 0.006 56);
--input: oklch(0.34 0.006 56);
--ring: oklch(0.745 0.155 29.08);
--chart-1: oklch(0.806 0.111 29.61);
--chart-2: oklch(0.7 0.164 28.7);
--chart-3: oklch(0.6 0.15 28.7);
--chart-4: oklch(0.5 0.135 28.7);
--chart-5: oklch(0.42 0.121 28.7);
--sidebar: oklch(0.19 0.006 56);
--sidebar-foreground: oklch(0.985 0.002 56);
--sidebar-primary: oklch(0.78 0.129 29.78);
--sidebar-primary-foreground: oklch(0.18 0.006 56);
--sidebar-accent: oklch(0.23 0.01 56);
--sidebar-accent-foreground: oklch(0.985 0.002 56);
--sidebar-border: oklch(0.29 0.006 56);
--sidebar-ring: oklch(0.745 0.155 29.08);
}
@theme inline {
--font-sans: "Source Sans 3 Variable", "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
--font-heading: "Source Sans 3 Variable", "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
}
The whole site
Proof started as Galley, a website theme
Galley is a complete site for Developer tools: every page, the content model and a live demo, built from the same blocks, in Astro and Next.js + Sanity. It comes with UI Pro, from €199 once, with every other theme.
