Tide, a shadcn/ui preset
Deep sea blue with Inter Tight: Linen’s calm set. It comes from Linen, one of our website themes.
Fonts: Inter Tight · radius 0.125rem · light and dark · lowest text contrast 5.88:1
npx shadcn@latest add https://www.themes.dev/r/presets/tide.jsonTide 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#f7f3eb
- foreground#0e2a3b
- primary#0e2a3b
- primary-foreground#ffffff
- secondary#ede7dc
- muted-foreground#465a65
- accent#e3eff2
- border#e2d9c6
- destructive#b42318
- ring#1a6e8e
- chart-1#9dc7e4
- chart-2#7398b0
- chart-3#59798f
- chart-4#425f72
- chart-5#304859
Dark
- background#0f0d0b
- foreground#fbfaf9
- primary#98b7cd
- primary-foreground#14110f
- secondary#211c18
- muted-foreground#bcb8b5
- accent#272f35
- border#2e2b28
- destructive#ff9693
- ring#97b6cb
- chart-1#a1cae7
- chart-2#7fa4bd
- chart-3#64859b
- chart-4#4a677b
- chart-5#385161
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 | 13.41:1 · Lc 95 | 18.59:1 · Lc 104 |
| Secondary text on the page | muted-foreground on background | 6.53:1 · Lc 78 | 9.86:1 · Lc 64 |
| Text in cards | card-foreground on card | 14.84:1 · Lc 102 | 17.17:1 · Lc 104 |
| Secondary text in cards | muted-foreground on card | 7.22:1 · Lc 85 | 9.10:1 · Lc 63 |
| Menus and popovers | popover-foreground on popover | 14.84:1 · Lc 102 | 17.17:1 · Lc 104 |
| Primary buttons | primary-foreground on primary | 14.84:1 · Lc 104 | 8.99:1 · Lc 62 |
| Links and outline accents | primary on background | 13.41:1 · Lc 95 | 9.28:1 · Lc 61 |
| Secondary buttons | secondary-foreground on secondary | 12.07:1 · Lc 88 | 16.20:1 · Lc 103 |
| Text on muted panels | muted-foreground on muted | 5.88:1 · Lc 71 | 8.59:1 · Lc 63 |
| Hovered menu items | accent-foreground on accent | 7.49:1 · Lc 79 | 13.02:1 · Lc 100 |
| Error messages | destructive on background | 5.95:1 · Lc 74 | 9.27:1 · Lc 61 |
| Sidebar | sidebar-foreground on sidebar | 12.94:1 · Lc 92 | 17.69:1 · Lc 104 |
| Sidebar active item | sidebar-primary-foreground on sidebar-primary | 14.84:1 · Lc 104 | 8.99:1 · Lc 62 |
| Sidebar hover | sidebar-accent-foreground on sidebar-accent | 12.07:1 · Lc 88 | 16.20:1 · Lc 103 |
| Focus ring | ring on background | 5.16:1 | 9.12: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/tide.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/inter-tightThe registry item: themes.dev/r/presets/tide.json. Free to use in any project.
:root {
--radius: 0.125rem;
--background: oklch(0.965 0.012 84.58);
--foreground: oklch(0.273 0.046 238.41);
--card: oklch(1 0 0);
--card-foreground: oklch(0.273 0.046 238.41);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.273 0.046 238.41);
--primary: oklch(0.273 0.046 238.41);
--primary-foreground: oklch(1 0 0);
--secondary: oklch(0.93 0.016 84.58);
--secondary-foreground: oklch(0.273 0.046 238.41);
--muted: oklch(0.93 0.016 84.58);
--muted-foreground: oklch(0.455 0.03 232.35);
--accent: oklch(0.944 0.013 214.36);
--accent-foreground: oklch(0.407 0.073 231.71);
--destructive: oklch(0.5 0.182 29.51);
--border: oklch(0.887 0.027 85.67);
--input: oklch(0.574 0.013 209.8);
--ring: oklch(0.506 0.091 229.24);
--chart-1: oklch(0.81 0.06 238.41);
--chart-2: oklch(0.66 0.055 238.41);
--chart-3: oklch(0.56 0.05 238.41);
--chart-4: oklch(0.47 0.046 238.41);
--chart-5: oklch(0.39 0.041 238.41);
--sidebar: oklch(0.953 0.012 84.58);
--sidebar-foreground: oklch(0.273 0.046 238.41);
--sidebar-primary: oklch(0.273 0.046 238.41);
--sidebar-primary-foreground: oklch(1 0 0);
--sidebar-accent: oklch(0.93 0.016 84.58);
--sidebar-accent-foreground: oklch(0.273 0.046 238.41);
--sidebar-border: oklch(0.887 0.027 85.67);
--sidebar-ring: oklch(0.506 0.091 229.24);
}
.dark {
--background: oklch(0.16 0.006 56);
--foreground: oklch(0.985 0.002 56);
--card: oklch(0.205 0.006 56);
--card-foreground: oklch(0.985 0.002 56);
--popover: oklch(0.205 0.006 56);
--popover-foreground: oklch(0.985 0.002 56);
--primary: oklch(0.765 0.046 238.41);
--primary-foreground: oklch(0.18 0.006 56);
--secondary: oklch(0.23 0.01 56);
--secondary-foreground: oklch(0.985 0.002 56);
--muted: oklch(0.23 0.01 56);
--muted-foreground: oklch(0.785 0.006 56);
--accent: oklch(0.3 0.016 238.41);
--accent-foreground: oklch(0.985 0.002 56);
--destructive: oklch(0.782 0.127 22);
--border: oklch(0.29 0.006 56);
--input: oklch(0.34 0.006 56);
--ring: oklch(0.76 0.046 238.41);
--chart-1: oklch(0.82 0.06 238.41);
--chart-2: oklch(0.7 0.055 238.41);
--chart-3: oklch(0.6 0.05 238.41);
--chart-4: oklch(0.5 0.046 238.41);
--chart-5: oklch(0.42 0.041 238.41);
--sidebar: oklch(0.19 0.006 56);
--sidebar-foreground: oklch(0.985 0.002 56);
--sidebar-primary: oklch(0.765 0.046 238.41);
--sidebar-primary-foreground: oklch(0.18 0.006 56);
--sidebar-accent: oklch(0.23 0.01 56);
--sidebar-accent-foreground: oklch(0.985 0.002 56);
--sidebar-border: oklch(0.29 0.006 56);
--sidebar-ring: oklch(0.76 0.046 238.41);
}
@theme inline {
--font-sans: "Inter Tight Variable", "Inter Tight", ui-sans-serif, system-ui, sans-serif;
--font-heading: "Inter Tight Variable", "Inter Tight", ui-sans-serif, system-ui, sans-serif;
}
The whole site
Tide started as Linen, a website theme
Linen is a complete site for Health practices: 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.
