@vercel/geistdocs 1.25.1-canary.c58830e → 1.25.1-canary.fdff126

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/cli/index.js +1 -1
  2. package/dist/components/blockquote.js +1 -1
  3. package/dist/components/callout.d.ts +13 -10
  4. package/dist/components/callout.d.ts.map +1 -1
  5. package/dist/components/callout.js +6 -6
  6. package/dist/components/code-block-tabs.d.ts.map +1 -1
  7. package/dist/components/code-block-tabs.js +3 -1
  8. package/dist/components/code-block.d.ts.map +1 -1
  9. package/dist/components/code-block.js +1 -1
  10. package/dist/components/copy-prompt.d.ts +2 -1
  11. package/dist/components/copy-prompt.d.ts.map +1 -1
  12. package/dist/components/copy-prompt.js +2 -2
  13. package/dist/components/heading.d.ts +7 -0
  14. package/dist/components/heading.d.ts.map +1 -0
  15. package/dist/components/heading.js +14 -0
  16. package/dist/components/table.d.ts +3 -0
  17. package/dist/components/table.d.ts.map +1 -0
  18. package/dist/components/table.js +3 -0
  19. package/dist/controls.js +1 -1
  20. package/dist/internal/page-actions-client.d.ts.map +1 -1
  21. package/dist/internal/page-actions-client.js +33 -12
  22. package/dist/internal/provider-client.js +1 -1
  23. package/dist/internal/search.d.ts.map +1 -1
  24. package/dist/internal/search.js +1 -1
  25. package/dist/internal/sidebar.d.ts.map +1 -1
  26. package/dist/internal/sidebar.js +21 -17
  27. package/dist/internal/table-of-contents.d.ts.map +1 -1
  28. package/dist/internal/table-of-contents.js +1 -1
  29. package/dist/internal/ui/dropdown-menu.js +6 -6
  30. package/dist/layout.d.ts +1 -0
  31. package/dist/layout.d.ts.map +1 -1
  32. package/dist/layout.js +2 -0
  33. package/dist/mdx.d.ts.map +1 -1
  34. package/dist/mdx.js +10 -1
  35. package/dist/pages/docs.d.ts.map +1 -1
  36. package/dist/pages/docs.js +1 -1
  37. package/dist/versions.js +2 -2
  38. package/docs/agents.md +1 -1
  39. package/docs/llms.txt +78 -6
  40. package/docs/manifest.json +1 -1
  41. package/docs/pages/syntax.md +77 -5
  42. package/package.json +1 -1
  43. package/template/app/[lang]/layout.tsx +4 -0
  44. package/template/app/styles/geistdocs.css +1 -1
  45. package/template/content/docs/syntax.mdx +82 -5
  46. package/template/package.json +1 -1
  47. package/theme.css +39 -101
package/theme.css CHANGED
@@ -1,30 +1,14 @@
1
- /* Geistdocs integration layer: package source scanning, Fumadocs mappings,
2
- docs layout rules, syntax tokens, and package-specific behavior. Geistcn's
3
- tailwind.css and styles.css own design tokens, utilities, typography,
4
- material styles, and base resets.
5
-
6
- The @source lines below emit every class the package's compiled components
7
- and streamdown reference; they resolve relative to this file, so they work
8
- when a consumer imports it. Consumers therefore only need
9
- `@import "@vercel/geistdocs/theme.css";` and must not re-`@source` the
10
- package dist or streamdown downstream (delete any such line you find). Add a
11
- new @source here (never downstream) only when the package gains a new
12
- compiled dependency. */
13
-
14
- /* Streamdown classes for Ask AI markdown. Both paths cover the workspace and a
15
- published pnpm install; Tailwind ignores whichever doesn't resolve. */
16
1
  @source "node_modules/streamdown/dist/*.js";
17
2
  @source "../../streamdown/dist/*.js";
18
3
 
19
- /* The package's own compiled components (navbar container queries, etc.).
20
- `./dist` resolves next to this file in both the workspace and an install. */
21
4
  @source "./dist/**/*.js";
22
5
 
23
- /* Monorepo dev only: also scan the package's TypeScript source so new Tailwind
24
- classes hot-reload without rebuilding `dist`. `./src` exists only in the
25
- workspace; a published install has no `src`, so Tailwind ignores it. */
26
6
  @source "./src/**/*.{ts,tsx}";
27
7
 
8
+ button:not(:disabled, [aria-disabled="true"]) {
9
+ cursor: pointer;
10
+ }
11
+
28
12
  .prose h1 {
29
13
  @apply text-heading-32;
30
14
  }
@@ -46,88 +30,58 @@
46
30
  @apply text-heading-14;
47
31
  }
48
32
 
49
- /* Docs page title. Fumadocs' DocsTitle renders it outside .prose and hardcodes
50
- text-[1.75em] font-semibold via its own class merge, which our cn() can't
51
- reliably override. Own the Geist heading style here where specificity wins;
52
- tracking-tighter loosens text-heading-40's dense -2.4px. */
53
- #nd-page h1:not(:where(.prose *)) {
54
- @apply text-heading-40 tracking-tighter;
33
+ .prose :is(h1, h2, h3, h4, h5, h6)[id] {
34
+ position: relative;
55
35
  }
56
36
 
57
- @layer utilities {
58
- .line-numbers code {
59
- counter-reset: step;
60
- counter-increment: step 0;
61
- }
62
-
63
- .line-numbers code .line::before {
64
- content: counter(step);
65
- counter-increment: step;
66
- @apply mr-5 inline-block w-4 shrink-0 text-right font-mono text-[13px] tabular-nums text-gray-600;
67
- }
37
+ .prose :is(h1, h2, h3, h4, h5, h6)[id] > a:first-child {
38
+ position: static;
68
39
  }
69
40
 
70
- /* Match GeistCN CodeBlock's complete line-state treatment for Shiki output. */
71
- [data-geist-code-block] :is(.line, .highlighted-line) {
72
- position: relative;
73
- display: inline-block;
74
- width: max-content;
75
- min-width: 100%;
76
- height: 20px;
77
- padding: 0 20px !important;
41
+ .prose :is(h1, h2, h3, h4, h5, h6)[id] > a:first-child::after {
42
+ position: absolute;
43
+ inset: 0;
44
+ content: "";
78
45
  }
79
46
 
80
- [data-geist-code-block]
81
- :is(.highlighted-line, .line.highlighted, [data-highlighted="true"]) {
82
- background: var(--ds-blue-300) !important;
83
- border-left: 0 !important;
84
- box-shadow: inset 2px 0 0 0 var(--ds-blue-900);
47
+ .prose :is(h1, h2, h3, h4, h5, h6)[id] > svg {
48
+ pointer-events: none;
85
49
  }
86
50
 
87
- [data-geist-code-block] .line[data-active="true"] {
88
- background: var(--ds-amber-300) !important;
89
- box-shadow: inset 2px 0 0 0 var(--ds-amber-900);
51
+ .prose :is(h1, h2, h3, h4, h5, h6)[id]:is(:hover, :focus-within) > svg {
52
+ opacity: 1;
90
53
  }
91
54
 
92
- [data-geist-code-block] :is([data-added="true"], .line.diff.add) {
93
- background: var(--ds-green-300) !important;
94
- box-shadow: inset 2px 0 0 0 var(--ds-green-900);
55
+ .prose ul:where(:not(.not-prose, .not-prose *)) {
56
+ padding-left: 1.25rem;
95
57
  }
96
58
 
97
- [data-geist-code-block] :is([data-removed="true"], .line.diff.remove) {
98
- /* Current GeistCN red-300; the legacy design-system layer redefines the
99
- variable to a weaker HSL value later in the cascade. */
100
- background: oklch(94.33% 0.0369 15.0115) !important;
101
- box-shadow: inset 2px 0 0 0 var(--ds-red-900);
102
- opacity: 1 !important;
59
+ .prose ul > li:where(:not(.not-prose, .not-prose *)) {
60
+ padding-left: 0.5rem;
103
61
  }
104
62
 
105
- [data-geist-code-block] :is(.line.diff.add, .line.diff.remove)::before {
106
- content: none !important;
63
+ #nd-page h1:not(:where(.prose *)) {
64
+ @apply text-heading-40 tracking-tighter;
107
65
  }
108
66
 
109
- [data-geist-code-block]
110
- :is(
111
- [data-added="true"],
112
- [data-removed="true"],
113
- .line.diff.add,
114
- .line.diff.remove
115
- )::after {
116
- position: absolute;
117
- inset: 0;
118
- padding-left: 8px;
119
- font-weight: 500;
120
- pointer-events: none;
67
+ @media (width >= 80rem) {
68
+ #nd-page {
69
+ max-width: 780px;
70
+ transform: translateX(-20px);
71
+ }
121
72
  }
122
73
 
123
- [data-geist-code-block] :is([data-added="true"], .line.diff.add)::after {
124
- color: var(--ds-green-900);
125
- content: "+";
126
- }
74
+ @layer utilities {
75
+ .line-numbers code {
76
+ counter-reset: step;
77
+ counter-increment: step 0;
78
+ }
127
79
 
128
- [data-geist-code-block] :is([data-removed="true"], .line.diff.remove)::after {
129
- color: var(--ds-red-900);
130
- content: "-";
80
+ .line-numbers code .line::before {
81
+ content: counter(step);
82
+ counter-increment: step;
83
+ @apply mr-5 inline-block w-4 shrink-0 text-right font-mono text-[13px] tabular-nums text-gray-600;
84
+ }
131
85
  }
132
86
 
133
87
  :root {
@@ -147,7 +101,6 @@
147
101
  @apply hidden;
148
102
  }
149
103
 
150
- /* Shiki syntax highlighting palette - matches packages/geist code-block.module.css */
151
104
  :root {
152
105
  --shiki-color-text: var(--ds-gray-1000);
153
106
  --shiki-color-background: var(--ds-background-100);
@@ -162,7 +115,6 @@
162
115
  --shiki-token-link: var(--ds-green-900);
163
116
  }
164
117
 
165
- /* Override fumadocs tokens to point at the Geist scale */
166
118
  :root {
167
119
  --color-fd-background: var(--ds-background-100);
168
120
  --color-fd-foreground: var(--ds-gray-1000);
@@ -183,7 +135,6 @@
183
135
  --color-fd-error: var(--ds-red-800);
184
136
  }
185
137
 
186
- /* Match the fumadocs sidebar selector to the Geist scale */
187
138
  #nd-sidebar {
188
139
  --color-fd-accent: var(--ds-gray-100);
189
140
  --color-fd-accent-foreground: var(--ds-gray-1000);
@@ -276,8 +227,6 @@
276
227
  }
277
228
  }
278
229
 
279
- /* fumadocs hardcodes the search dialog's className, so the command modal
280
- shadow is applied here via the data attribute set in search.tsx. */
281
230
  [data-geistdocs-command-modal] {
282
231
  box-shadow: var(--ds-shadow-modal);
283
232
  }
@@ -304,11 +253,6 @@
304
253
  right: max(1rem, env(safe-area-inset-right));
305
254
  }
306
255
 
307
- /* Keep the table of contents scrollbar hidden on every platform. The
308
- mask-gradient fade on the scroll area already signals that the list scrolls,
309
- so a visible bar only adds clutter. `scrollbar-width: none` covers Firefox
310
- (and non-overlay contexts); the WebKit rule covers Chrome/Safari on platforms
311
- that render classic, space-consuming scrollbars. */
312
256
  #nd-toc .geistdocs-toc-scroll {
313
257
  scrollbar-width: none;
314
258
  }
@@ -337,9 +281,6 @@
337
281
  }
338
282
  }
339
283
 
340
- /* On home routes (GeistdocsHomeLayout renders the [data-home-route] marker),
341
- the navbar starts borderless and fades its bottom border in only once the
342
- page is scrolled (ScrollState toggles [data-scrolled] on <html>). */
343
284
  body:has([data-home-route]) header {
344
285
  border-bottom-color: transparent !important;
345
286
  transition: border-color 200ms ease;
@@ -347,15 +288,12 @@ body:has([data-home-route]) header {
347
288
  html[data-scrolled] body:has([data-home-route]) header {
348
289
  border-bottom-color: var(--ds-gray-alpha-400) !important;
349
290
  }
350
- /* Hide the header border while the dropdown or mobile menu is open. `html body`
351
- matches the scroll-reveal rule's specificity so this (later) rule wins there,
352
- and covers every other route too. */
353
- html body
291
+ html
292
+ body
354
293
  header:has(
355
294
  [data-slot="navigation-menu-trigger"][data-state="open"],
356
295
  [data-slot="mobile-menu-toggle"][aria-expanded="true"]
357
296
  ) {
358
297
  border-bottom-color: transparent !important;
359
- /* Hide instantly; the scroll-reveal fade above still applies when closed. */
360
298
  transition: none !important;
361
299
  }