Skip to content

Prompt, a shadcn/ui preset

Burnt orange with Albert Sans, from an AI product theme. It comes from Prompt, one of our website themes.

Fonts: Albert Sans · radius 0.875rem · light and dark · lowest text contrast 5.20:1

npx shadcn@latest add https://www.themes.dev/r/presets/prompt.json
Edit in the generator

Prompt 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#fbfaf6
  • foreground#161512
  • primary#c2380f
  • primary-foreground#ffffff
  • secondary#f0eee8
  • muted-foreground#5d5b53
  • accent#fbe6dd
  • border#e4e1d8
  • destructive#b3261e
  • ring#161512
  • chart-1#ffa085
  • chart-2#e56545
  • chart-3#bc4c2f
  • chart-4#98361c
  • chart-5#79240d

Dark

  • background#121210
  • foreground#f1efe8
  • primary#ff987b
  • primary-foreground#121210
  • secondary#22221e
  • muted-foreground#c9c7c0
  • accent#3b1f15
  • border#302f2a
  • destructive#ff9988
  • ring#f1efe8
  • chart-1#ffa58b
  • chart-2#f37251
  • chart-3#ca583b
  • chart-4#a23f25
  • chart-5#832d17

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 background17.48:1 · Lc 10216.32:1 · Lc 97
Secondary text on the pagemuted-foreground on background6.50:1 · Lc 8011.08:1 · Lc 72
Text in cardscard-foreground on card18.25:1 · Lc 10514.98:1 · Lc 96
Secondary text in cardsmuted-foreground on card6.79:1 · Lc 8310.17:1 · Lc 71
Menus and popoverspopover-foreground on popover18.25:1 · Lc 10514.98:1 · Lc 96
Primary buttonsprimary-foreground on primary5.42:1 · Lc 818.94:1 · Lc 62
Links and outline accentsprimary on background5.20:1 · Lc 738.94:1 · Lc 61
Secondary buttonssecondary-foreground on secondary15.78:1 · Lc 9513.86:1 · Lc 95
Text on muted panelsmuted-foreground on muted5.87:1 · Lc 749.41:1 · Lc 70
Hovered menu itemsaccent-foreground on accent7.21:1 · Lc 768.95:1 · Lc 70
Error messagesdestructive on background6.27:1 · Lc 789.06:1 · Lc 62
Sidebarsidebar-foreground on sidebar16.88:1 · Lc 10015.37:1 · Lc 96
Sidebar active itemsidebar-primary-foreground on sidebar-primary5.42:1 · Lc 818.94:1 · Lc 62
Sidebar hoversidebar-accent-foreground on sidebar-accent15.78:1 · Lc 9513.86:1 · Lc 95
Focus ringring on background17.48:116.32: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/prompt.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/albert-sans

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

globals.css
:root {
  --radius: 0.875rem;
  --background: oklch(0.985 0.005 95.1);
  --foreground: oklch(0.196 0.006 91.65);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.196 0.006 91.65);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.196 0.006 91.65);
  --primary: oklch(0.544 0.181 35.33);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.95 0.009 95.1);
  --secondary-foreground: oklch(0.196 0.006 91.65);
  --muted: oklch(0.95 0.009 95.1);
  --muted-foreground: oklch(0.471 0.013 95.33);
  --accent: oklch(0.939 0.026 44.72);
  --accent-foreground: oklch(0.429 0.136 35.85);
  --destructive: oklch(0.501 0.178 28.7);
  --border: oklch(0.91 0.013 91.53);
  --input: oklch(0.623 0.015 93.07);
  --ring: oklch(0.196 0.006 91.65);
  --chart-1: oklch(0.796 0.12 36.99);
  --chart-2: oklch(0.66 0.167 35.33);
  --chart-3: oklch(0.56 0.152 35.33);
  --chart-4: oklch(0.47 0.138 35.33);
  --chart-5: oklch(0.39 0.123 35.33);
  --sidebar: oklch(0.973 0.005 95.1);
  --sidebar-foreground: oklch(0.196 0.006 91.65);
  --sidebar-primary: oklch(0.544 0.181 35.33);
  --sidebar-primary-foreground: oklch(1 0 0);
  --sidebar-accent: oklch(0.95 0.009 95.1);
  --sidebar-accent-foreground: oklch(0.196 0.006 91.65);
  --sidebar-border: oklch(0.91 0.013 91.53);
  --sidebar-ring: oklch(0.196 0.006 91.65);
}

.dark {
  --background: oklch(0.181 0.004 106.79);
  --foreground: oklch(0.952 0.01 93.57);
  --card: oklch(0.222 0.006 91.62);
  --card-foreground: oklch(0.952 0.01 93.57);
  --popover: oklch(0.222 0.006 91.62);
  --popover-foreground: oklch(0.952 0.01 93.57);
  --primary: oklch(0.78 0.131 36.55);
  --primary-foreground: oklch(0.181 0.004 106.79);
  --secondary: oklch(0.251 0.008 106.79);
  --secondary-foreground: oklch(0.952 0.01 93.57);
  --muted: oklch(0.251 0.008 106.79);
  --muted-foreground: oklch(0.829 0.01 93.59);
  --accent: oklch(0.274 0.047 40.29);
  --accent-foreground: oklch(0.838 0.078 38.63);
  --destructive: oklch(0.784 0.126 29.74);
  --border: oklch(0.304 0.009 97.63);
  --input: oklch(0.565 0.014 96.56);
  --ring: oklch(0.952 0.01 93.57);
  --chart-1: oklch(0.806 0.113 37.15);
  --chart-2: oklch(0.7 0.167 35.33);
  --chart-3: oklch(0.6 0.152 35.33);
  --chart-4: oklch(0.5 0.138 35.33);
  --chart-5: oklch(0.42 0.123 35.33);
  --sidebar: oklch(0.211 0.004 106.79);
  --sidebar-foreground: oklch(0.952 0.01 93.57);
  --sidebar-primary: oklch(0.78 0.131 36.55);
  --sidebar-primary-foreground: oklch(0.181 0.004 106.79);
  --sidebar-accent: oklch(0.251 0.008 106.79);
  --sidebar-accent-foreground: oklch(0.952 0.01 93.57);
  --sidebar-border: oklch(0.304 0.009 97.63);
  --sidebar-ring: oklch(0.952 0.01 93.57);
}

@theme inline {
  --font-sans: "Albert Sans Variable", "Albert Sans", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Albert Sans Variable", "Albert Sans", ui-sans-serif, system-ui, sans-serif;
}

The whole site

Prompt started as Prompt, a website theme

Prompt is a complete site for AI products and voice-agent platforms: 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