Skip to content

Forecourt, a shadcn/ui preset

Ink with a signal green and Exo 2 headings, from a car dealer. It comes from Forecourt, one of our website themes.

Fonts: Nunito Sans and Exo 2 · radius 0.625rem · light and dark · lowest text contrast 4.53:1

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

Forecourt 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#f6f7f5
  • foreground#101311
  • primary#14532d
  • primary-foreground#ffffff
  • secondary#eaece7
  • muted-foreground#6a6a6a
  • accent#dcfce0
  • border#e5e5e5
  • destructive#e30103
  • ring#14532d
  • chart-1#94d2a5
  • chart-2#6aa17a
  • chart-3#51825f
  • chart-4#3c6648
  • chart-5#2a4e35

Dark

  • background#0e110f
  • foreground#f1f5f2
  • primary#2aff33
  • primary-foreground#07140a
  • secondary#1c211e
  • muted-foreground#b9b9b9
  • accent#213326
  • border#2b2b2b
  • destructive#ff9693
  • ring#84c296
  • chart-1#97d5a8
  • chart-2#76ae86
  • chart-3#5c8e6a
  • chart-4#446f50
  • chart-5#32573d

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.39:1 · Lc 10017.26:1 · Lc 100
Secondary text on the pagemuted-foreground on background5.02:1 · Lc 729.66:1 · Lc 64
Text in cardscard-foreground on card17.39:1 · Lc 10016.31:1 · Lc 100
Secondary text in cardsmuted-foreground on card5.02:1 · Lc 729.13:1 · Lc 63
Menus and popoverspopover-foreground on popover17.39:1 · Lc 10016.31:1 · Lc 100
Primary buttonsprimary-foreground on primary9.09:1 · Lc 9513.86:1 · Lc 86
Links and outline accentsprimary on background8.46:1 · Lc 8613.96:1 · Lc 86
Secondary buttonssecondary-foreground on secondary15.70:1 · Lc 9314.77:1 · Lc 98
Text on muted panelsmuted-foreground on muted4.53:1 · Lc 658.27:1 · Lc 62
Hovered menu itemsaccent-foreground on accent8.25:1 · Lc 8412.89:1 · Lc 100
Error messagesdestructive on background4.57:1 · Lc 669.07:1 · Lc 61
Sidebarsidebar-foreground on sidebar16.79:1 · Lc 9816.31:1 · Lc 100
Sidebar active itemsidebar-primary-foreground on sidebar-primary9.09:1 · Lc 9513.86:1 · Lc 86
Sidebar hoversidebar-accent-foreground on sidebar-accent15.70:1 · Lc 9314.77:1 · Lc 98
Focus ringring on background8.46:19.18: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/forecourt.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 fonts:

npm i @fontsource-variable/nunito-sans @fontsource-variable/exo-2

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

globals.css
:root {
  --radius: 0.625rem;
  --background: oklch(0.975 0.003 128.49);
  --foreground: oklch(0.183 0.006 156.55);
  --card: oklch(0.975 0.003 128.49);
  --card-foreground: oklch(0.183 0.006 156.55);
  --popover: oklch(0.975 0.003 128.49);
  --popover-foreground: oklch(0.183 0.006 156.55);
  --primary: oklch(0.393 0.09 152.54);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.94 0.007 128.49);
  --secondary-foreground: oklch(0.183 0.006 156.55);
  --muted: oklch(0.94 0.007 128.49);
  --muted-foreground: oklch(0.525 0 0);
  --accent: oklch(0.961 0.05 148.76);
  --accent-foreground: oklch(0.393 0.09 152.54);
  --destructive: oklch(0.576 0.236 29.05);
  --border: oklch(0.922 0 0);
  --input: oklch(0.87 0 0);
  --ring: oklch(0.393 0.09 152.54);
  --chart-1: oklch(0.81 0.09 152.54);
  --chart-2: oklch(0.66 0.083 152.54);
  --chart-3: oklch(0.56 0.076 152.54);
  --chart-4: oklch(0.47 0.068 152.54);
  --chart-5: oklch(0.39 0.061 152.54);
  --sidebar: oklch(0.963 0.003 128.49);
  --sidebar-foreground: oklch(0.183 0.006 156.55);
  --sidebar-primary: oklch(0.393 0.09 152.54);
  --sidebar-primary-foreground: oklch(1 0 0);
  --sidebar-accent: oklch(0.94 0.007 128.49);
  --sidebar-accent-foreground: oklch(0.183 0.006 156.55);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.393 0.09 152.54);
}

.dark {
  --background: oklch(0.173 0.006 156.51);
  --foreground: oklch(0.966 0.006 153.77);
  --card: oklch(0.203 0.006 156.51);
  --card-foreground: oklch(0.966 0.006 153.77);
  --popover: oklch(0.203 0.006 156.51);
  --popover-foreground: oklch(0.966 0.006 153.77);
  --primary: oklch(0.87 0.28 143.02);
  --primary-foreground: oklch(0.175 0.028 150.66);
  --secondary: oklch(0.243 0.01 156.51);
  --secondary-foreground: oklch(0.966 0.006 153.77);
  --muted: oklch(0.243 0.01 156.51);
  --muted-foreground: oklch(0.785 0 0);
  --accent: oklch(0.3 0.032 152.54);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.782 0.127 22);
  --border: oklch(0.29 0 0);
  --input: oklch(0.34 0 0);
  --ring: oklch(0.76 0.09 152.54);
  --chart-1: oklch(0.82 0.09 152.54);
  --chart-2: oklch(0.7 0.083 152.54);
  --chart-3: oklch(0.6 0.076 152.54);
  --chart-4: oklch(0.5 0.068 152.54);
  --chart-5: oklch(0.42 0.061 152.54);
  --sidebar: oklch(0.203 0.006 156.51);
  --sidebar-foreground: oklch(0.966 0.006 153.77);
  --sidebar-primary: oklch(0.87 0.28 143.02);
  --sidebar-primary-foreground: oklch(0.175 0.028 150.66);
  --sidebar-accent: oklch(0.243 0.01 156.51);
  --sidebar-accent-foreground: oklch(0.966 0.006 153.77);
  --sidebar-border: oklch(0.29 0 0);
  --sidebar-ring: oklch(0.76 0.09 152.54);
}

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

The whole site

Forecourt started as Forecourt, a website theme

Forecourt is a complete site for Used-car dealers and dealer groups: 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