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.jsonOpenings 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.
| Where | Pair | Light | Dark |
|---|---|---|---|
| Body text | foreground on background | 16.67:1 · Lc 104 | 15.93:1 · Lc 95 |
| Secondary text on the page | muted-foreground on background | 7.21:1 · Lc 85 | 9.28:1 · Lc 62 |
| Text in cards | card-foreground on card | 16.67:1 · Lc 104 | 14.90:1 · Lc 94 |
| Secondary text in cards | muted-foreground on card | 7.21:1 · Lc 85 | 8.68:1 · Lc 62 |
| Menus and popovers | popover-foreground on popover | 16.67:1 · Lc 104 | 14.90:1 · Lc 94 |
| Primary buttons | primary-foreground on primary | 4.77:1 · Lc 78 | 8.92:1 · Lc 68 |
| Links and outline accents | primary on background | 4.77:1 · Lc 73 | 10.59:1 · Lc 70 |
| Secondary buttons | secondary-foreground on secondary | 15.04:1 · Lc 97 | 13.54:1 · Lc 93 |
| Text on muted panels | muted-foreground on muted | 6.50:1 · Lc 78 | 7.88:1 · Lc 61 |
| Hovered menu items | accent-foreground on accent | 6.69:1 · Lc 76 | 9.85:1 · Lc 78 |
| Error messages | destructive on background | 6.58:1 · Lc 81 | 8.97:1 · Lc 61 |
| Sidebar | sidebar-foreground on sidebar | 16.11:1 · Lc 101 | 15.01:1 · Lc 94 |
| Sidebar active item | sidebar-primary-foreground on sidebar-primary | 4.77:1 · Lc 78 | 8.92:1 · Lc 68 |
| Sidebar hover | sidebar-accent-foreground on sidebar-accent | 15.04:1 · Lc 97 | 13.54:1 · Lc 93 |
| Focus ring | ring on background | 4.77:1 | 10.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.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/barlow @fontsource-variable/barlow-condensedThe registry item: themes.dev/r/presets/openings.json. Free to use in any project.
: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.
