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.jsonForecourt 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.
| Where | Pair | Light | Dark |
|---|---|---|---|
| Body text | foreground on background | 17.39:1 · Lc 100 | 17.26:1 · Lc 100 |
| Secondary text on the page | muted-foreground on background | 5.02:1 · Lc 72 | 9.66:1 · Lc 64 |
| Text in cards | card-foreground on card | 17.39:1 · Lc 100 | 16.31:1 · Lc 100 |
| Secondary text in cards | muted-foreground on card | 5.02:1 · Lc 72 | 9.13:1 · Lc 63 |
| Menus and popovers | popover-foreground on popover | 17.39:1 · Lc 100 | 16.31:1 · Lc 100 |
| Primary buttons | primary-foreground on primary | 9.09:1 · Lc 95 | 13.86:1 · Lc 86 |
| Links and outline accents | primary on background | 8.46:1 · Lc 86 | 13.96:1 · Lc 86 |
| Secondary buttons | secondary-foreground on secondary | 15.70:1 · Lc 93 | 14.77:1 · Lc 98 |
| Text on muted panels | muted-foreground on muted | 4.53:1 · Lc 65 | 8.27:1 · Lc 62 |
| Hovered menu items | accent-foreground on accent | 8.25:1 · Lc 84 | 12.89:1 · Lc 100 |
| Error messages | destructive on background | 4.57:1 · Lc 66 | 9.07:1 · Lc 61 |
| Sidebar | sidebar-foreground on sidebar | 16.79:1 · Lc 98 | 16.31:1 · Lc 100 |
| Sidebar active item | sidebar-primary-foreground on sidebar-primary | 9.09:1 · Lc 95 | 13.86:1 · Lc 86 |
| Sidebar hover | sidebar-accent-foreground on sidebar-accent | 15.70:1 · Lc 93 | 14.77:1 · Lc 98 |
| Focus ring | ring on background | 8.46:1 | 9.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.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 fonts:
npm i @fontsource-variable/nunito-sans @fontsource-variable/exo-2The registry item: themes.dev/r/presets/forecourt.json. Free to use in any project.
: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.
