Files
Rich HainesandGitHub 5053e4eb84 docs: Update Geistdocs to 1.13.0 (#13412)
## Summary

- update the Turborepo docs app to `@vercel/geistdocs` 1.13.0
- use the package-owned Tailwind sources introduced since 1.11.1
- align docs content spacing and breadcrumb visibility with the new
container-responsive sidebar

https://turbo-site-git-docs-update-geistdocs-1130.vercel.sh/docs

## Testing

- `pnpm install --frozen-lockfile`
- `pnpm --filter docs check-types`
- `pnpm --filter docs lint`
- `pnpm --filter docs check-links`
- `OG_IMAGE_SECRET=<local value> pnpm --filter docs build`
- `pnpm format`
- `pnpm lint`
- production route smoke tests for HTML, `.md`, `Accept: text/markdown`,
agent requests, `llms.txt`, `sitemap.md`, `agents.md`, and `/api/search`
- desktop and mobile browser checks in light and dark themes, with no
runtime errors or horizontal overflow
- repository pre-push hooks

Upstream release: https://github.com/vercel/geistdocs/pull/160

Related upgrades:
- https://github.com/vercel/eve/pull/955
- https://github.com/vercel/chat/pull/727
2026-07-20 07:38:33 -06:00

130 lines
3.8 KiB
CSS

/*
* Site-specific overrides layered on top of @vercel/geistdocs/styles.css
* (imported first from global.css). The package CSS brings tailwind,
* fumadocs presets, tw-animate, the Geist design-system tokens (--ds-*),
* typography/material utilities, fd token overrides and the Shiki palette.
*/
@import "fumadocs-openapi/css/preset.css";
@custom-variant dark (&:is(.dark *));
/*
* shadcn tokens for the site-owned UI (homepage, blog, devtools, showcase,
* remaining components/ui primitives). The geistdocs package CSS does not
* include these.
*/
@theme inline {
--breakpoint-xs: 400px;
--breakpoint-2xs: 360px;
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
}
:root {
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--primary: oklch(57.61% 0.2508 258.23);
--primary-foreground: oklch(1 0 0);
--secondary: oklch(0.97 0 0);
--secondary-foreground: oklch(0.205 0 0);
--muted: oklch(0.97 0 0);
--muted-foreground: oklch(0.556 0 0);
--accent: oklch(0.97 0 0);
--accent-foreground: oklch(0.205 0 0);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.922 0 0);
--input: oklch(0.922 0 0);
--ring: oklch(0.708 0 0);
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.145 0 0);
}
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.205 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.205 0 0);
--popover-foreground: oklch(0.985 0 0);
--primary: oklch(57.61% 0.2508 258.23);
--primary-foreground: oklch(1 0 0);
--secondary: oklch(0.269 0 0);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.269 0 0);
--muted-foreground: oklch(0.708 0 0);
--accent: oklch(0.269 0 0);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.556 0 0);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
}
/* Keep the site's body colors (the package defaults to bg-background-100). */
@layer base {
body {
@apply bg-background text-foreground;
}
}
/* Prose word wrapping (the package only sets heading tracking). */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
overflow-wrap: break-word;
}
.prose :not(pre) > code {
overflow-wrap: break-word;
}
/* The global `* { min-w-0 }` reset lets tab triggers shrink below their
content width even though their text has `whitespace-nowrap`, causing labels
to overlap instead of triggering the TabsList's `overflow-x-auto` scroll. */
[role="tablist"] > [role="tab"] {
flex-shrink: 0;
}
/* Keep page spacing aligned when the sidebar collapses with its container. */
@container (max-width: 960px) {
#nd-page {
@apply px-6;
}
#nd-page > .text-fd-muted-foreground:first-child {
@apply hidden;
}
}
/* Prevent TOC from being clipped on tablet displays */
#nd-docs-layout {
overflow-x: visible;
}