Skip to content

Openings, a shadcn/ui preset

A fresh green with Barlow and Barlow Condensed, from a jobs board. It comes from Openings, one of our website themes.

Fonts: Barlow and Barlow Condensed · radius 0.25rem · light and dark · lowest text contrast 4.77:1

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

Openings 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#ffffff
  • foreground#17201b
  • primary#17843f
  • primary-foreground#ffffff
  • secondary#f6f2f3
  • muted-foreground#4e5a53
  • accent#e3f1e7
  • border#dce3de
  • destructive#b42318
  • ring#17843f
  • chart-1#79da90
  • chart-2#50a867
  • chart-3#38874e
  • chart-4#246b39
  • chart-5#135328

Dark

  • background#0c130f
  • foreground#e7eee9
  • primary#76d783
  • primary-foreground#00290f
  • secondary#1a241e
  • muted-foreground#acb9b1
  • accent#16301e
  • border#26322b
  • destructive#ff9788
  • ring#76d783
  • chart-1#7cdd93
  • chart-2#5db572
  • chart-3#459459
  • chart-4#2e7441
  • chart-5#1d5b30

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 background16.67:1 · Lc 10415.93:1 · Lc 95
Secondary text on the pagemuted-foreground on background7.21:1 · Lc 859.28:1 · Lc 62
Text in cardscard-foreground on card16.67:1 · Lc 10414.90:1 · Lc 94
Secondary text in cardsmuted-foreground on card7.21:1 · Lc 858.68:1 · Lc 62
Menus and popoverspopover-foreground on popover16.67:1 · Lc 10414.90:1 · Lc 94
Primary buttonsprimary-foreground on primary4.77:1 · Lc 788.92:1 · Lc 68
Links and outline accentsprimary on background4.77:1 · Lc 7310.59:1 · Lc 70
Secondary buttonssecondary-foreground on secondary15.04:1 · Lc 9713.54:1 · Lc 93
Text on muted panelsmuted-foreground on muted6.50:1 · Lc 787.88:1 · Lc 61
Hovered menu itemsaccent-foreground on accent6.69:1 · Lc 769.85:1 · Lc 78
Error messagesdestructive on background6.58:1 · Lc 818.97:1 · Lc 61
Sidebarsidebar-foreground on sidebar16.11:1 · Lc 10115.01:1 · Lc 94
Sidebar active itemsidebar-primary-foreground on sidebar-primary4.77:1 · Lc 788.92:1 · Lc 68
Sidebar hoversidebar-accent-foreground on sidebar-accent15.04:1 · Lc 9713.54:1 · Lc 93
Focus ringring on background4.77:110.59: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/openings.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/barlow @fontsource-variable/barlow-condensed

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

globals.css
:root {
  --radius: 0.25rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.233 0.016 160.52);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.233 0.016 160.52);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.233 0.016 160.52);
  --primary: oklch(0.539 0.14 149.96);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.965 0.004 0);
  --secondary-foreground: oklch(0.233 0.016 160.52);
  --muted: oklch(0.965 0.004 0);
  --muted-foreground: oklch(0.455 0.019 160.01);
  --accent: oklch(0.945 0.02 154.89);
  --accent-foreground: oklch(0.427 0.11 150.01);
  --destructive: oklch(0.5 0.182 29.51);
  --border: oklch(0.909 0.01 155.08);
  --input: oklch(0.599 0.017 157.97);
  --ring: oklch(0.539 0.14 149.96);
  --chart-1: oklch(0.81 0.14 149.96);
  --chart-2: oklch(0.66 0.129 149.96);
  --chart-3: oklch(0.56 0.118 149.96);
  --chart-4: oklch(0.47 0.106 149.96);
  --chart-5: oklch(0.39 0.095 149.96);
  --sidebar: oklch(0.988 0 0);
  --sidebar-foreground: oklch(0.233 0.016 160.52);
  --sidebar-primary: oklch(0.539 0.14 149.96);
  --sidebar-primary-foreground: oklch(1 0 0);
  --sidebar-accent: oklch(0.965 0.004 0);
  --sidebar-accent-foreground: oklch(0.233 0.016 160.52);
  --sidebar-border: oklch(0.909 0.01 155.08);
  --sidebar-ring: oklch(0.539 0.14 149.96);
}

.dark {
  --background: oklch(0.178 0.014 159.6);
  --foreground: oklch(0.942 0.01 155.09);
  --card: oklch(0.211 0.016 160.27);
  --card-foreground: oklch(0.942 0.01 155.09);
  --popover: oklch(0.211 0.016 160.27);
  --popover-foreground: oklch(0.942 0.01 155.09);
  --primary: oklch(0.799 0.149 147);
  --primary-foreground: oklch(0.246 0.066 151.17);
  --secondary: oklch(0.248 0.018 159.6);
  --secondary-foreground: oklch(0.942 0.01 155.09);
  --muted: oklch(0.248 0.018 159.6);
  --muted-foreground: oklch(0.774 0.018 158.98);
  --accent: oklch(0.282 0.046 152.37);
  --accent-foreground: oklch(0.867 0.095 148.63);
  --destructive: oklch(0.781 0.128 29.18);
  --border: oklch(0.304 0.021 159.31);
  --input: oklch(0.594 0.019 156.62);
  --ring: oklch(0.799 0.149 147);
  --chart-1: oklch(0.82 0.14 149.96);
  --chart-2: oklch(0.7 0.129 149.96);
  --chart-3: oklch(0.6 0.118 149.96);
  --chart-4: oklch(0.5 0.106 149.96);
  --chart-5: oklch(0.42 0.095 149.96);
  --sidebar: oklch(0.208 0.014 159.6);
  --sidebar-foreground: oklch(0.942 0.01 155.09);
  --sidebar-primary: oklch(0.799 0.149 147);
  --sidebar-primary-foreground: oklch(0.246 0.066 151.17);
  --sidebar-accent: oklch(0.248 0.018 159.6);
  --sidebar-accent-foreground: oklch(0.942 0.01 155.09);
  --sidebar-border: oklch(0.304 0.021 159.31);
  --sidebar-ring: oklch(0.799 0.149 147);
}

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

The whole site

Openings started as Openings, a website theme

Openings is a complete site for Recruitment agencies and job boards: 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