Dateline, a shadcn/ui preset
Magenta with Schibsted Grotesk, from a news and media theme. It comes from Dateline, one of our website themes.
Fonts: Schibsted Grotesk · radius 0rem · light and dark · lowest text contrast 6.00:1
npx shadcn@latest add https://www.themes.dev/r/presets/dateline.jsonDateline 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#f6f5f1
- foreground#141412
- primary#aa018d
- primary-foreground#ffffff
- secondary#ebeae3
- muted-foreground#57534b
- accent#fbdef1
- border#d3cec2
- destructive#b3261e
- ring#aa018d
- chart-1#ff8de9
- chart-2#dc56bc
- chart-3#b43d99
- chart-4#91287a
- chart-5#731660
Dark
- background#090909
- foreground#f4f4f5
- primary#ff89dc
- primary-foreground#030303
- secondary#1a1818
- muted-foreground#b8b8bf
- accent#3a1520
- border#26262a
- destructive#ff9585
- ring#f477ca
- chart-1#ff94eb
- chart-2#ea63c9
- chart-3#c24aa5
- chart-4#9b3283
- chart-5#7d2168
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.93:1 · Lc 99 | 18.09:1 · Lc 100 |
| Secondary text on the page | muted-foreground on background | 7.03:1 · Lc 81 | 10.10:1 · Lc 64 |
| Text in cards | card-foreground on card | 17.68:1 · Lc 102 | 16.56:1 · Lc 100 |
| Secondary text in cards | muted-foreground on card | 7.35:1 · Lc 84 | 9.25:1 · Lc 64 |
| Menus and popovers | popover-foreground on popover | 17.68:1 · Lc 102 | 16.56:1 · Lc 100 |
| Primary buttons | primary-foreground on primary | 6.78:1 · Lc 86 | 9.66:1 · Lc 62 |
| Links and outline accents | primary on background | 6.22:1 · Lc 75 | 9.32:1 · Lc 61 |
| Secondary buttons | secondary-foreground on secondary | 15.26:1 · Lc 92 | 16.12:1 · Lc 99 |
| Text on muted panels | muted-foreground on muted | 6.34:1 · Lc 74 | 9.00:1 · Lc 63 |
| Hovered menu items | accent-foreground on accent | 8.15:1 · Lc 77 | 10.61:1 · Lc 77 |
| Error messages | destructive on background | 6.00:1 · Lc 75 | 9.39:1 · Lc 61 |
| Sidebar | sidebar-foreground on sidebar | 16.34:1 · Lc 97 | 17.37:1 · Lc 100 |
| Sidebar active item | sidebar-primary-foreground on sidebar-primary | 6.78:1 · Lc 86 | 9.66:1 · Lc 62 |
| Sidebar hover | sidebar-accent-foreground on sidebar-accent | 15.26:1 · Lc 92 | 16.12:1 · Lc 99 |
| Focus ring | ring on background | 6.22:1 | 7.90: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/dateline.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 font:
npm i @fontsource-variable/schibsted-groteskThe registry item: themes.dev/r/presets/dateline.json. Free to use in any project.
:root {
--radius: 0rem;
--background: oklch(0.97 0.005 95.1);
--foreground: oklch(0.19 0.004 106.77);
--card: oklch(0.985 0.004 91.45);
--card-foreground: oklch(0.19 0.004 106.77);
--popover: oklch(0.985 0.004 91.45);
--popover-foreground: oklch(0.19 0.004 106.77);
--primary: oklch(0.501 0.219 338.18);
--primary-foreground: oklch(1 0 0);
--secondary: oklch(0.935 0.009 95.1);
--secondary-foreground: oklch(0.19 0.004 106.77);
--muted: oklch(0.935 0.009 95.1);
--muted-foreground: oklch(0.443 0.014 84.59);
--accent: oklch(0.93 0.04 338.63);
--accent-foreground: oklch(0.399 0.17 337.99);
--destructive: oklch(0.501 0.178 28.7);
--border: oklch(0.852 0.017 88.01);
--input: oklch(0.556 0.014 86.87);
--ring: oklch(0.501 0.219 338.18);
--chart-1: oklch(0.796 0.175 334.59);
--chart-2: oklch(0.66 0.201 338.18);
--chart-3: oklch(0.56 0.184 338.18);
--chart-4: oklch(0.47 0.166 338.18);
--chart-5: oklch(0.39 0.149 338.18);
--sidebar: oklch(0.958 0.005 95.1);
--sidebar-foreground: oklch(0.19 0.004 106.77);
--sidebar-primary: oklch(0.501 0.219 338.18);
--sidebar-primary-foreground: oklch(1 0 0);
--sidebar-accent: oklch(0.935 0.009 95.1);
--sidebar-accent-foreground: oklch(0.19 0.004 106.77);
--sidebar-border: oklch(0.852 0.017 88.01);
--sidebar-ring: oklch(0.501 0.219 338.18);
}
.dark {
--background: oklch(0.14 0 0);
--foreground: oklch(0.967 0.001 286.38);
--card: oklch(0.197 0.004 286.03);
--card-foreground: oklch(0.967 0.001 286.38);
--popover: oklch(0.197 0.004 286.03);
--popover-foreground: oklch(0.967 0.001 286.38);
--primary: oklch(0.784 0.173 339.48);
--primary-foreground: oklch(0.097 0 0);
--secondary: oklch(0.21 0.004 0);
--secondary-foreground: oklch(0.967 0.001 286.38);
--muted: oklch(0.21 0.004 0);
--muted-foreground: oklch(0.785 0.01 286.17);
--accent: oklch(0.257 0.06 3.59);
--accent-foreground: oklch(0.873 0.072 1.34);
--destructive: oklch(0.778 0.13 29.69);
--border: oklch(0.27 0.007 285.9);
--input: oklch(0.541 0.012 285.98);
--ring: oklch(0.739 0.18 341.96);
--chart-1: oklch(0.806 0.165 334.39);
--chart-2: oklch(0.7 0.201 338.18);
--chart-3: oklch(0.6 0.184 338.18);
--chart-4: oklch(0.5 0.166 338.18);
--chart-5: oklch(0.42 0.149 338.18);
--sidebar: oklch(0.17 0 0);
--sidebar-foreground: oklch(0.967 0.001 286.38);
--sidebar-primary: oklch(0.784 0.173 339.48);
--sidebar-primary-foreground: oklch(0.097 0 0);
--sidebar-accent: oklch(0.21 0.004 0);
--sidebar-accent-foreground: oklch(0.967 0.001 286.38);
--sidebar-border: oklch(0.27 0.007 285.9);
--sidebar-ring: oklch(0.739 0.18 341.96);
}
@theme inline {
--font-sans: "Schibsted Grotesk Variable", "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
--font-heading: "Schibsted Grotesk Variable", "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
}
The whole site
Dateline started as Dateline, a website theme
Dateline is a complete site for Newsrooms and broadcasters: 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.
