Skip to content

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.json
Edit in the generator

Proof 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.

WherePairLightDark
Body textforeground on background15.38:1 · Lc 9718.59:1 · Lc 104
Secondary text on the pagemuted-foreground on background6.67:1 · Lc 799.86:1 · Lc 64
Text in cardscard-foreground on card16.30:1 · Lc 10117.17:1 · Lc 104
Secondary text in cardsmuted-foreground on card7.07:1 · Lc 839.10:1 · Lc 63
Menus and popoverspopover-foreground on popover16.30:1 · Lc 10117.17:1 · Lc 104
Primary buttonsprimary-foreground on primary6.54:1 · Lc 868.94:1 · Lc 62
Links and outline accentsprimary on background5.91:1 · Lc 749.23:1 · Lc 61
Secondary buttonssecondary-foreground on secondary13.85:1 · Lc 9016.20:1 · Lc 103
Text on muted panelsmuted-foreground on muted6.01:1 · Lc 728.59:1 · Lc 63
Hovered menu itemsaccent-foreground on accent7.20:1 · Lc 7513.31:1 · Lc 100
Error messagesdestructive on background6.89:1 · Lc 789.27:1 · Lc 61
Sidebarsidebar-foreground on sidebar14.84:1 · Lc 9517.69:1 · Lc 104
Sidebar active itemsidebar-primary-foreground on sidebar-primary6.54:1 · Lc 868.94:1 · Lc 62
Sidebar hoversidebar-accent-foreground on sidebar-accent13.85:1 · Lc 9016.20:1 · Lc 103
Focus ringring on background5.91:18.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.json

Or 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-3

The registry item: themes.dev/r/presets/proof.json. Free to use in any project.

globals.css
: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.

More shadcn/ui presets

All 37 presets