Skip to content

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.json
Edit in the generator

Tide 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.

WherePairLightDark
Body textforeground on background13.41:1 · Lc 9518.59:1 · Lc 104
Secondary text on the pagemuted-foreground on background6.53:1 · Lc 789.86:1 · Lc 64
Text in cardscard-foreground on card14.84:1 · Lc 10217.17:1 · Lc 104
Secondary text in cardsmuted-foreground on card7.22:1 · Lc 859.10:1 · Lc 63
Menus and popoverspopover-foreground on popover14.84:1 · Lc 10217.17:1 · Lc 104
Primary buttonsprimary-foreground on primary14.84:1 · Lc 1048.99:1 · Lc 62
Links and outline accentsprimary on background13.41:1 · Lc 959.28:1 · Lc 61
Secondary buttonssecondary-foreground on secondary12.07:1 · Lc 8816.20:1 · Lc 103
Text on muted panelsmuted-foreground on muted5.88:1 · Lc 718.59:1 · Lc 63
Hovered menu itemsaccent-foreground on accent7.49:1 · Lc 7913.02:1 · Lc 100
Error messagesdestructive on background5.95:1 · Lc 749.27:1 · Lc 61
Sidebarsidebar-foreground on sidebar12.94:1 · Lc 9217.69:1 · Lc 104
Sidebar active itemsidebar-primary-foreground on sidebar-primary14.84:1 · Lc 1048.99:1 · Lc 62
Sidebar hoversidebar-accent-foreground on sidebar-accent12.07:1 · Lc 8816.20:1 · Lc 103
Focus ringring on background5.16:19.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.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 font:

npm i @fontsource-variable/inter-tight

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

globals.css
: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.

More shadcn/ui presets

All 37 presets