boltdocs 2.6.1 → 2.7.0

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 (177) hide show
  1. package/bin/boltdocs.js +0 -1
  2. package/dist/cache-CQKlT4fI.mjs +6 -0
  3. package/dist/cache-DorPMFgW.cjs +6 -0
  4. package/dist/cards-BLoSiRuL.d.ts +30 -0
  5. package/dist/cards-CQn9mXZS.d.cts +30 -0
  6. package/dist/chunk-Ds5LZdWN.cjs +6 -0
  7. package/dist/client/index.cjs +1 -1
  8. package/dist/client/index.d.cts +173 -1328
  9. package/dist/client/index.d.ts +172 -1327
  10. package/dist/client/index.js +1 -1
  11. package/dist/{package-c99Cs7mD.cjs → client/mdx.cjs} +1 -1
  12. package/dist/client/mdx.d.cts +128 -0
  13. package/dist/client/mdx.d.ts +129 -0
  14. package/dist/client/mdx.js +6 -0
  15. package/dist/client/primitives.cjs +6 -0
  16. package/dist/client/primitives.d.cts +818 -0
  17. package/dist/client/primitives.d.ts +818 -0
  18. package/dist/client/primitives.js +6 -0
  19. package/dist/client/theme/neutral.css +74 -361
  20. package/dist/client/theme/reset.css +189 -0
  21. package/dist/docs-layout-BlDhcQRv.cjs +6 -0
  22. package/dist/docs-layout-BvAOWEJw.js +6 -0
  23. package/dist/doctor-BQiQhCTl.cjs +6 -0
  24. package/dist/doctor-COpf35L2.cjs +20 -0
  25. package/dist/doctor-Dh1XP7Pz.mjs +20 -0
  26. package/dist/generator-DGW6pkCC.cjs +22 -0
  27. package/dist/generator-Dv3wEmhZ.mjs +22 -0
  28. package/dist/icons-dev-CrQLjoQp.js +6 -0
  29. package/dist/icons-dev-rzdz6Lf3.cjs +6 -0
  30. package/dist/image-BkIfa9oo.js +6 -0
  31. package/dist/image-DIGjCPe6.cjs +6 -0
  32. package/dist/mdx-K0WYBAJ3.js +7 -0
  33. package/dist/mdx-hpErbRUe.cjs +7 -0
  34. package/dist/meta-loader-0gJ4PtBC.cjs +6 -0
  35. package/dist/meta-loader-9IpAHWDS.mjs +6 -0
  36. package/dist/node/cli-entry.cjs +1 -2
  37. package/dist/node/cli-entry.mjs +1 -2
  38. package/dist/node/index.cjs +1 -1
  39. package/dist/node/index.d.cts +66 -13
  40. package/dist/node/index.d.mts +66 -14
  41. package/dist/node/index.mjs +1 -1
  42. package/dist/node/routes/worker.cjs +6 -0
  43. package/dist/node/routes/worker.d.cts +2 -0
  44. package/dist/node/routes/worker.d.mts +2 -0
  45. package/dist/node/routes/worker.mjs +6 -0
  46. package/dist/node-C2nWXElP.mjs +112 -0
  47. package/dist/node-CinkUtxV.cjs +112 -0
  48. package/dist/package-BMYLDBBP.cjs +6 -0
  49. package/dist/{package-DukYeKmD.mjs → package-HegMOTL_.mjs} +1 -1
  50. package/dist/parser-Bh11BsdA.cjs +6 -0
  51. package/dist/parser-D8eQvE7N.mjs +6 -0
  52. package/dist/parser-DYRzXWmA.cjs +6 -0
  53. package/dist/routes-CHf76Ye4.cjs +6 -0
  54. package/dist/routes-CMUZGI6T.mjs +6 -0
  55. package/dist/routes-Co1mRM58.cjs +6 -0
  56. package/dist/search-dialog-BACuzoVX.cjs +6 -0
  57. package/dist/search-dialog-BKagVT17.js +6 -0
  58. package/dist/search-dialog-C8w12eUx.js +6 -0
  59. package/dist/search-dialog-CGyrozZE.cjs +6 -0
  60. package/dist/search-dialog-D26rUnJ_.cjs +6 -0
  61. package/dist/sidebar-DKvg6KOc.d.cts +491 -0
  62. package/dist/sidebar-Dr1TiRIy.d.ts +491 -0
  63. package/dist/utils-BxNAXhZZ.mjs +7 -0
  64. package/dist/utils-Clzu7jvb.cjs +7 -0
  65. package/dist/worker-pool-Bd8Y9KDv.mjs +6 -0
  66. package/dist/worker-pool-BwU8ckrg.cjs +6 -0
  67. package/package.json +27 -8
  68. package/src/client/app/doc-page.tsx +9 -5
  69. package/src/client/app/docs-layout.tsx +17 -3
  70. package/src/client/app/head.tsx +122 -0
  71. package/src/client/app/helmet-compat.tsx +36 -0
  72. package/src/client/app/mdx-component.tsx +5 -52
  73. package/src/client/app/mdx-components-context.tsx +32 -8
  74. package/src/client/app/routes-context.tsx +2 -2
  75. package/src/client/app/scroll-handler.tsx +1 -1
  76. package/src/client/app/theme-context.tsx +5 -5
  77. package/src/client/app/ui-context.tsx +42 -0
  78. package/src/client/components/docs-layout-default.tsx +85 -0
  79. package/src/client/components/icons-dev.tsx +38 -15
  80. package/src/client/components/mdx/callout.tsx +97 -0
  81. package/src/client/components/mdx/card.tsx +73 -98
  82. package/src/client/components/mdx/cards.tsx +27 -0
  83. package/src/client/components/mdx/code-block.tsx +37 -17
  84. package/src/client/components/mdx/field.tsx +24 -56
  85. package/src/client/components/mdx/image.tsx +36 -15
  86. package/src/client/components/mdx/index.ts +19 -53
  87. package/src/client/components/mdx/table.tsx +46 -148
  88. package/src/client/components/mdx/typographics.tsx +120 -0
  89. package/src/client/components/mdx/{hooks/use-code-block.ts → use-code-block.ts} +5 -7
  90. package/src/client/components/primitives/breadcrumbs.tsx +5 -24
  91. package/src/client/components/primitives/button.tsx +3 -142
  92. package/src/client/components/primitives/code-block.tsx +104 -97
  93. package/src/client/components/{docs-layout.tsx → primitives/docs-layout.tsx} +15 -24
  94. package/src/client/components/primitives/error-boundary.tsx +107 -0
  95. package/src/client/components/primitives/heading.tsx +128 -0
  96. package/src/client/components/primitives/helpers/observer.ts +62 -32
  97. package/src/client/components/primitives/image.tsx +26 -0
  98. package/src/client/components/primitives/link.tsx +50 -52
  99. package/src/client/components/primitives/menu.tsx +25 -49
  100. package/src/client/components/primitives/navbar.tsx +234 -59
  101. package/src/client/components/primitives/on-this-page.tsx +169 -40
  102. package/src/client/components/primitives/page-nav.tsx +11 -39
  103. package/src/client/components/primitives/popover.tsx +12 -30
  104. package/src/client/components/primitives/search-dialog.tsx +77 -71
  105. package/src/client/components/primitives/sidebar.tsx +312 -119
  106. package/src/client/components/primitives/skeleton.tsx +1 -1
  107. package/src/client/components/primitives/tabs.tsx +5 -16
  108. package/src/client/components/primitives/tooltip.tsx +1 -1
  109. package/src/client/components/ui-base/banner.tsx +66 -0
  110. package/src/client/components/ui-base/breadcrumbs.tsx +26 -20
  111. package/src/client/components/ui-base/copy-markdown.tsx +43 -35
  112. package/src/client/components/ui-base/error-boundary.tsx +9 -46
  113. package/src/client/components/ui-base/github-stars.tsx +5 -3
  114. package/src/client/components/ui-base/index.ts +3 -3
  115. package/src/client/components/ui-base/last-updated.tsx +27 -0
  116. package/src/client/components/ui-base/navbar.tsx +183 -89
  117. package/src/client/components/ui-base/not-found.tsx +11 -9
  118. package/src/client/components/ui-base/on-this-page.tsx +8 -104
  119. package/src/client/components/ui-base/page-nav.tsx +23 -9
  120. package/src/client/components/ui-base/search-dialog.tsx +111 -36
  121. package/src/client/components/ui-base/search-highlight.tsx +10 -0
  122. package/src/client/components/ui-base/sidebar.tsx +77 -154
  123. package/src/client/components/ui-base/tabs.tsx +20 -7
  124. package/src/client/components/ui-base/theme-toggle.tsx +88 -10
  125. package/src/client/components/ui-base/version-i18n.tsx +80 -0
  126. package/src/client/hooks/index.ts +2 -1
  127. package/src/client/hooks/use-analytics.ts +272 -0
  128. package/src/client/hooks/use-i18n.ts +120 -53
  129. package/src/client/hooks/use-localized-to.ts +70 -30
  130. package/src/client/hooks/use-navbar.ts +69 -39
  131. package/src/client/hooks/use-page-nav.ts +28 -25
  132. package/src/client/hooks/use-routes.ts +64 -81
  133. package/src/client/hooks/use-search-highlight.ts +185 -0
  134. package/src/client/hooks/use-search.ts +12 -3
  135. package/src/client/hooks/use-sidebar.ts +183 -77
  136. package/src/client/hooks/use-tabs.ts +3 -4
  137. package/src/client/hooks/use-version.ts +46 -18
  138. package/src/client/index.ts +13 -86
  139. package/src/client/mdx.ts +2 -0
  140. package/src/client/primitives.ts +19 -0
  141. package/src/client/ssg/boltdocs-shell.tsx +78 -57
  142. package/src/client/ssg/create-routes.tsx +290 -50
  143. package/src/client/ssg/mdx-page.tsx +2 -1
  144. package/src/client/store/boltdocs-context.tsx +83 -12
  145. package/src/client/theme/neutral.css +74 -361
  146. package/src/client/theme/reset.css +189 -0
  147. package/src/client/types.ts +10 -2
  148. package/src/client/utils/path.ts +9 -0
  149. package/src/client/utils/react-to-text.ts +24 -24
  150. package/src/client/virtual.d.ts +1 -1
  151. package/src/shared/types.ts +97 -21
  152. package/dist/node-CWN8U_p8.mjs +0 -88
  153. package/dist/node-D5iosYXv.cjs +0 -88
  154. package/dist/search-dialog-3lvKsbVG.js +0 -6
  155. package/dist/search-dialog-DMK5OpgH.cjs +0 -6
  156. package/dist/use-search-C9bxCqfF.js +0 -6
  157. package/dist/use-search-DcfZSunO.cjs +0 -6
  158. package/src/client/components/mdx/admonition.tsx +0 -91
  159. package/src/client/components/mdx/badge.tsx +0 -41
  160. package/src/client/components/mdx/button.tsx +0 -35
  161. package/src/client/components/mdx/component-preview.tsx +0 -37
  162. package/src/client/components/mdx/component-props.tsx +0 -83
  163. package/src/client/components/mdx/file-tree.tsx +0 -325
  164. package/src/client/components/mdx/hooks/use-component-preview.ts +0 -16
  165. package/src/client/components/mdx/hooks/useTable.ts +0 -74
  166. package/src/client/components/mdx/hooks/useTabs.ts +0 -68
  167. package/src/client/components/mdx/link.tsx +0 -38
  168. package/src/client/components/mdx/list.tsx +0 -192
  169. package/src/client/components/mdx/tabs.tsx +0 -135
  170. package/src/client/components/mdx/video.tsx +0 -68
  171. package/src/client/components/primitives/index.ts +0 -19
  172. package/src/client/components/primitives/navigation-menu.tsx +0 -114
  173. package/src/client/components/ui-base/head.tsx +0 -76
  174. package/src/client/components/ui-base/loading.tsx +0 -57
  175. package/src/client/components/ui-base/powered-by.tsx +0 -25
  176. package/src/client/hooks/use-onthispage.ts +0 -23
  177. package/src/client/utils/use-on-change.ts +0 -15
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Boltdocs - https://boltdocs.vercel.app
3
+ * Copyright (c) 2026 Jesus Alcala
4
+ * Licensed under the MIT License.
5
+ */
6
+ import{_ as e,v as t,y as n}from"../icons-dev-CrQLjoQp.js";import{A as r,C as i,D as a,E as o,M as s,N as c,O as l,S as u,_ as d,a as f,b as p,c as m,d as h,f as g,g as _,h as v,i as y,j as b,k as x,l as S,o as C,p as w,s as T,t as E,u as D,v as O,x as k,y as A}from"../docs-layout-BvAOWEJw.js";import{a as j,i as M,n as N,o as P,r as F,s as I,t as L}from"../image-BkIfa9oo.js";import{n as R,t as z}from"../search-dialog-C8w12eUx.js";import{jsx as B}from"react/jsx-runtime";function V({className:e,variant:t=`rect`,...r}){return B(`div`,{className:n(`animate-pulse bg-soft`,t===`circle`?`rounded-full`:`rounded-md`,e),...r})}export{_ as AnchorProvider,c as Breadcrumbs,s as Button,b as ButtonGroup,F as CodeBlock,M as CodeBlockContent,j as CodeBlockGroup,P as CodeBlockHeader,E as DocsLayout,a as ErrorBoundary,l as ErrorBoundaryFallback,I as Heading,L as Image,e as Link,x as Menu,t as NavLink,R as Navbar,d as OnThisPage,O as OnThisPageItems,A as OnThisPageTree,v as PageNav,r as Popover,p as ScrollProvider,z as SearchDialog,y as Sidebar,f as SidebarContent,C as SidebarGroup,T as SidebarHeader,m as SidebarItem,S as SidebarItems,D as SidebarLink,h as SidebarMobile,g as SidebarRoot,w as SidebarSubGroup,V as Skeleton,o as Tabs,N as Tooltip,k as useActiveAnchor,u as useActiveAnchors,i as useItems};
@@ -7,29 +7,38 @@
7
7
 
8
8
  --breakpoint-3xl: 120rem;
9
9
 
10
- --color-primary-50: oklch(0.985 0.012 265.8);
11
- --color-primary-100: oklch(0.92 0.045 265.8);
12
- --color-primary-200: oklch(0.84 0.085 265.8);
13
- --color-primary-300: oklch(0.74 0.125 265.8);
14
- --color-primary-400: oklch(0.64 0.165 265.8);
15
- --color-primary-500: oklch(0.54 0.195 265.8);
16
- --color-primary-600: oklch(0.45 0.165 265.8);
17
- --color-primary-700: oklch(0.36 0.135 265.8);
18
- --color-primary-800: oklch(0.27 0.095 265.8);
19
- --color-primary-900: oklch(0.15 0.045 265.8);
20
-
21
- /* Neutral Gray Palette */
22
- --color-neutral-50: oklch(0.98 0 0);
23
- --color-neutral-100: oklch(0.96 0 0);
24
- --color-neutral-200: oklch(0.92 0 0);
25
- --color-neutral-300: oklch(0.84 0 0);
26
- --color-neutral-400: oklch(0.7 0 0);
27
- --color-neutral-500: oklch(0.55 0 0);
28
- --color-neutral-600: oklch(0.4 0 0);
29
- --color-neutral-700: oklch(0.25 0 0);
30
- --color-neutral-800: oklch(0.15 0 0);
31
- --color-neutral-900: oklch(0.1 0 0);
32
- --color-neutral-950: oklch(0.05 0 0);
10
+ /* Premium Terracotta brand Palette (#eb5828) */
11
+ --color-primary-50: #fef4f0;
12
+ --color-primary-100: #fde4da;
13
+ --color-primary-200: #fbc8b6;
14
+ --color-primary-300: #faa184;
15
+ --color-primary-400: #f6724a;
16
+ --color-primary-500: #eb5828;
17
+ /* Core brand Terracotta Orange */
18
+ --color-primary-600: #d34013;
19
+ --color-primary-700: #ab300c;
20
+ --color-primary-800: #842308;
21
+ --color-primary-900: #5a1503;
22
+
23
+ /* Intellectual warm Neutral Palette (#faf9f5 / #141413) */
24
+ --color-neutral-50: #faf9f5;
25
+ /* Elegant Light Background */
26
+ --color-neutral-100: #f5f4ee;
27
+ /* Soft backgrounds and cards */
28
+ --color-neutral-200: #eae8de;
29
+ /* Subtle border */
30
+ --color-neutral-300: #d9d6c7;
31
+ /* Strong border */
32
+ --color-neutral-400: #b5b19c;
33
+ --color-neutral-500: #8a8670;
34
+ /* Muted warm gray text */
35
+ --color-neutral-600: #706c57;
36
+ --color-neutral-700: #4a483a;
37
+ /* Paragraph text */
38
+ --color-neutral-800: #25241d;
39
+ --color-neutral-900: #141413;
40
+ /* Elegant Soft Black text / Dark mode main background */
41
+ --color-neutral-950: #080807;
33
42
 
34
43
  /* Semantic Status Colors */
35
44
  --color-danger-500: oklch(0.63 0.24 27);
@@ -37,35 +46,40 @@
37
46
  --color-warning-500: oklch(0.78 0.17 75);
38
47
  --color-info-500: oklch(0.62 0.19 260);
39
48
 
40
- /* Shared Properties */
49
+ /* Modern Organic Rounded Radii (Warmer and More Rounded) */
41
50
  --radius-sm: 0.375rem;
42
51
  --radius-md: 0.5rem;
43
- --radius-lg: 0.75rem;
44
- --radius-xl: 1rem;
52
+ --radius-lg: 1rem;
53
+ /* 16px */
54
+ --radius-xl: 1.25rem;
55
+ /* 20px */
45
56
  --radius-2xl: 1.5rem;
57
+ /* 24px */
46
58
  --radius-full: 99999rem;
47
59
 
48
60
  --ease-fluid: cubic-bezier(0.3, 0, 0, 1);
49
61
  --ease-snappy: cubic-bezier(0.2, 0, 0, 1);
50
62
 
51
- /* Semantic Colors - Default (Light) */
52
- --color-bg-main: var(--color-neutral-50);
53
- --color-bg-surface: var(--color-neutral-100);
54
- --color-bg-muted: var(--color-neutral-200);
55
- --color-text-main: var(--color-neutral-900);
56
- --color-text-muted: var(--color-neutral-500);
57
- --color-text-dim: var(--color-neutral-400);
58
- --color-border-subtle: var(--color-neutral-200);
59
- --color-border-strong: var(--color-neutral-300);
63
+ /* Semantic Colors - Default (Light Parchment) */
64
+ --color-main: var(--color-neutral-50);
65
+ --color-surface: #ffffff;
66
+ /* Pure soft white for cards */
67
+ --color-soft: var(--color-neutral-100);
68
+ --color-body: var(--color-neutral-900);
69
+ --color-paragraph: var(--color-neutral-700);
70
+ --color-muted: var(--color-neutral-500);
71
+ --color-dim: var(--color-neutral-400);
72
+ --color-subtle: var(--color-neutral-200);
73
+ --color-strong: var(--color-neutral-300);
60
74
  --color-code-bg: var(--color-neutral-100);
61
- --color-code-text: var(--color-neutral-800);
75
+ --color-code-text: #eb5828;
62
76
 
63
77
  /* Semantic Colors - Dark Override (handled via standard CSS overrides below the @theme block) */
64
78
 
65
79
  /* Spacing and Dimensions */
66
80
  --spacing-navbar: 3.5rem;
67
81
  --spacing-sidebar: 16rem;
68
- --spacing-toc: 14rem;
82
+ --spacing-toc: 16rem;
69
83
  --spacing-content-max: 54rem;
70
84
 
71
85
  @keyframes pulse {
@@ -73,6 +87,7 @@
73
87
  100% {
74
88
  opacity: 1;
75
89
  }
90
+
76
91
  50% {
77
92
  opacity: 0.5;
78
93
  }
@@ -81,11 +96,10 @@
81
96
  @keyframes fade-in {
82
97
  from {
83
98
  opacity: 0;
84
- transform: translateY(10px);
85
99
  }
100
+
86
101
  to {
87
102
  opacity: 1;
88
- transform: translateY(0);
89
103
  }
90
104
  }
91
105
  }
@@ -99,330 +113,29 @@
99
113
  }
100
114
 
101
115
  .animate-fade-in {
102
- animation: fade-in 0.5s ease-out forwards;
116
+ animation: fade-in 0.1s ease-out forwards;
103
117
  }
104
118
 
105
119
  :root[data-theme="dark"],
106
120
  :root.dark {
107
- --color-bg-main: var(--color-neutral-900);
108
- --color-bg-surface: var(--color-neutral-800);
109
- --color-bg-muted: var(--color-neutral-800);
110
- --color-text-main: var(--color-neutral-50);
111
- --color-text-muted: var(--color-neutral-400);
112
- --color-text-dim: var(--color-neutral-500);
113
- --color-border-subtle: var(--color-neutral-800);
114
- --color-border-strong: var(--color-neutral-700);
115
- --color-code-bg: var(--color-neutral-900);
116
- --color-code-text: var(--color-neutral-200);
117
- }
118
-
119
-
120
- @layer base {
121
- *,
122
- *::before,
123
- *::after {
124
- box-sizing: border-box;
125
- }
126
-
127
- html,
128
- body {
129
- margin: 0;
130
- padding: 0;
131
- min-height: 100%;
132
- overflow-x: hidden;
133
- }
134
-
135
- body {
136
- @apply bg-bg-main text-text-main antialiased;
137
- font-family: var(--font-sans);
138
- line-height: 1.7;
139
- }
140
-
141
- a {
142
- text-decoration: none;
143
- }
144
-
145
- /* Scroll-margin-top for anchor scrolling */
146
- h1,
147
- h2,
148
- h3,
149
- h4,
150
- h5,
151
- h6 {
152
- scroll-margin-top: 6rem;
153
- }
154
-
155
- /* Scrollbar */
156
- ::-webkit-scrollbar {
157
- width: 6px;
158
- height: 6px;
159
- }
160
- ::-webkit-scrollbar-track {
161
- background: transparent;
162
- }
163
- ::-webkit-scrollbar-thumb {
164
- @apply bg-neutral-300 dark:bg-neutral-700 rounded-full;
165
- }
166
- ::-webkit-scrollbar-thumb:hover {
167
- @apply bg-neutral-400 dark:bg-neutral-600;
168
- }
169
-
170
- /* ═══ Content Area ═══ */
171
- .boltdocs-content {
172
- scrollbar-width: none;
173
- scroll-behavior: smooth;
174
- }
175
- .boltdocs-content::-webkit-scrollbar {
176
- display: none;
177
- }
178
-
179
- /* ═══ Markdown Typography ═══ */
180
- .boltdocs-page {
181
- position: relative;
182
- padding-top: 1rem;
183
- padding-bottom: 8rem;
184
- }
185
-
186
- .boltdocs-page h1 {
187
- font-size: 2.5rem;
188
- margin: 0 0 1rem;
189
- font-weight: 800;
190
- letter-spacing: -0.04em;
191
- color: var(--color-text-main);
192
- line-height: 1.2;
193
- }
194
- .boltdocs-page h1 + p {
195
- color: var(--color-text-muted);
196
- font-size: 1.125rem;
197
- margin-bottom: 2.5rem;
198
- line-height: 1.6;
199
- }
200
- .boltdocs-page h2 {
201
- font-size: 1.75rem;
202
- margin-top: 3.5rem;
203
- margin-bottom: 1.25rem;
204
- font-weight: 700;
205
- color: var(--color-text-main);
206
- padding-bottom: 0.5rem;
207
- border-bottom: 1px solid var(--color-border-subtle);
208
- scroll-margin-top: 6rem;
209
- letter-spacing: -0.02em;
210
- }
211
- .boltdocs-page h3 {
212
- font-size: 1.25rem;
213
- margin-top: 2.5rem;
214
- margin-bottom: 1rem;
215
- font-weight: 600;
216
- color: var(--color-text-main);
217
- scroll-margin-top: 6rem;
218
- letter-spacing: -0.01em;
219
- }
220
- .boltdocs-page p {
221
- margin-top: 0;
222
- margin-bottom: 1.25rem;
223
- color: var(--color-text-muted);
224
- line-height: 1.8;
225
- }
226
- .boltdocs-page a {
227
- color: var(--color-primary-500);
228
- text-decoration: none;
229
- transition: color 0.2s;
230
- font-weight: 500;
231
- }
232
- .boltdocs-page a:hover {
233
- color: var(--color-primary-400);
234
- text-decoration: underline;
235
- }
236
- .boltdocs-page ul,
237
- .boltdocs-page ol {
238
- margin-top: 0;
239
- margin-bottom: 1.5rem;
240
- padding-left: 1.5rem;
241
- color: var(--color-text-muted);
242
- }
243
- .boltdocs-page li {
244
- margin-bottom: 0.5rem;
245
- line-height: 1.8;
246
- }
247
- .boltdocs-page strong {
248
- color: var(--color-text-main);
249
- font-weight: 700;
250
- }
251
- .boltdocs-page blockquote {
252
- margin: 2rem 0;
253
- padding: 1rem 1.5rem;
254
- border-left: 4px solid var(--color-primary-500);
255
- background-color: var(--color-primary-500);
256
- background-color: color-mix(
257
- in oklch,
258
- var(--color-primary-500),
259
- transparent 93%
260
- );
261
- border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
262
- color: var(--color-text-muted);
263
- font-style: italic;
264
- }
265
- .boltdocs-page blockquote p {
266
- margin: 0;
267
- }
268
- .boltdocs-page hr {
269
- border: none;
270
- border-top: 1px solid var(--color-border-subtle);
271
- margin: 3rem 0;
272
- }
273
- .boltdocs-page img {
274
- max-width: 100%;
275
- height: auto;
276
- border-radius: var(--radius-lg);
277
- margin: 2rem 0;
278
- display: block;
279
- }
280
- .boltdocs-page table {
281
- width: 100%;
282
- border-collapse: collapse;
283
- margin: 2rem 0;
284
- font-size: 0.875rem;
285
- }
286
- .boltdocs-page th {
287
- text-align: left;
288
- padding: 0.75rem 1rem;
289
- border-bottom: 2px solid var(--color-border-subtle);
290
- color: var(--color-text-main);
291
- font-weight: 700;
292
- }
293
- .boltdocs-page td {
294
- padding: 0.75rem 1rem;
295
- border-bottom: 1px solid var(--color-border-subtle);
296
- color: var(--color-text-muted);
297
- }
298
- .boltdocs-page tr:hover td {
299
- background-color: var(--color-bg-surface);
300
- }
301
-
302
- @media (max-width: 768px) {
303
- .boltdocs-page h1 {
304
- font-size: 1.75rem;
305
- }
306
- }
307
-
308
- /* ═══ Header Anchors ═══ */
309
- .header-anchor {
310
- margin-left: 0.5rem;
311
- color: var(--color-text-dim);
312
- opacity: 0;
313
- transition: opacity 0.2s;
314
- text-decoration: none;
315
- font-weight: 400;
316
- }
317
- .boltdocs-page h2:hover .header-anchor,
318
- .boltdocs-page h3:hover .header-anchor {
319
- opacity: 1;
320
- }
321
- .header-anchor:hover {
322
- color: var(--color-primary-500);
323
- }
324
- .boltdocs-heading {
325
- display: flex;
326
- align-items: center;
327
- }
328
- .boltdocs-heading .header-anchor {
329
- display: inline-flex;
330
- align-items: center;
331
- margin-left: 0.5rem;
332
- color: var(--color-text-dim);
333
- opacity: 0;
334
- transition: opacity 0.2s;
335
- text-decoration: none;
336
- }
337
- .boltdocs-heading:hover .header-anchor {
338
- opacity: 1;
339
- }
340
-
341
- /* ═══ Shiki Styles ═══ */
342
-
343
- /* Shiki Light/Dark Mode */
344
- :root .shiki,
345
- :root .shiki span {
346
- font-family: var(--font-mono);
347
- font-size: 12px !important;
348
- background-color: transparent !important;
349
- }
350
-
351
- :root.dark .shiki,
352
- :root.dark .shiki span {
353
- color: var(--shiki-dark) !important;
354
- }
355
-
356
- /* Base Shiki Pre & Span Styles */
357
- pre.shiki {
358
- @apply py-2 text-[12px] leading-[1.6];
359
- }
360
-
361
- pre.shiki span.line {
362
- @apply relative block px-4 py-0;
363
- min-height: 1.6em;
364
- }
365
-
366
- /* Shiki Word Wrap */
367
- pre.shiki-word-wrap {
368
- @apply whitespace-pre-wrap break-words;
369
- }
370
-
371
- pre.shiki-word-wrap span.line {
372
- @apply block w-full;
373
- }
374
-
375
- /* Shiki Line Numbers */
376
- pre.shiki-line-numbers code {
377
- counter-reset: step;
378
- counter-increment: step 0;
379
- }
380
-
381
- pre.shiki-line-numbers .line {
382
- @apply pl-12!;
383
- }
384
-
385
- /* Hide the last line if it is completely empty to avoid extra numbers */
386
- pre.shiki-line-numbers .line:last-child:empty,
387
- pre.shiki-line-numbers .line:last-child:has(> :empty) {
388
- display: none;
389
- }
390
-
391
- pre.shiki-line-numbers .line::before {
392
- counter-increment: step;
393
- content: counter(step);
394
- @apply absolute left-0 top-0 inline-flex w-10 justify-end pr-3;
395
- @apply text-[11px] text-text-muted opacity-30 select-none;
396
- line-height: inherit; /* Sync with line text */
397
- }
398
-
399
- /* Shiki Highlight */
400
- pre span.shiki-line-highlight {
401
- @apply relative z-0 inline-block w-full;
402
- &::after {
403
- content: "";
404
- @apply absolute top-0 left-0 -z-10 h-full w-full border-l-2 border-primary-500 bg-primary-500/10! opacity-100;
405
- }
406
- }
407
-
408
- /* Shiki Notation Diff */
409
- pre.has-diff span.line.diff {
410
- @apply relative inline-block w-full;
411
- }
412
-
413
- pre.has-diff span.line.diff.add {
414
- @apply bg-emerald-500/10! dark:bg-emerald-500/10!;
415
- &::before {
416
- content: "+";
417
- @apply absolute left-2 text-emerald-500 font-bold;
418
- }
419
- }
420
-
421
- pre.has-diff span.line.diff.remove {
422
- @apply bg-danger-500/10! opacity-70;
423
- &::before {
424
- content: "-";
425
- @apply absolute left-2 text-danger-500 font-bold;
426
- }
427
- }
121
+ --color-main: #141413;
122
+ /* Deep warm charcoal background */
123
+ --color-surface: #1e1e1d;
124
+ /* Slightly lighter warm charcoal for cards */
125
+ --color-soft: #252524;
126
+ /* Warm dark gray for containers */
127
+ --color-body: #f3f3f2;
128
+ /* Soft warm white body text */
129
+ --color-paragraph: #d5d5d3;
130
+ /* Warm light gray text */
131
+ --color-muted: #9a9a97;
132
+ /* Warm muted text */
133
+ --color-dim: #767673;
134
+ --color-subtle: #2c2c2a;
135
+ /* Subtle dark border */
136
+ --color-strong: #3c3c39;
137
+ /* Strong dark border */
138
+ --color-code-bg: #1c1c1b;
139
+ --color-code-text: #eb5828;
140
+ /* Outstanding terracotta orange inline code */
428
141
  }
@@ -0,0 +1,189 @@
1
+ @layer base {
2
+ *,
3
+ *::before,
4
+ *::after {
5
+ box-sizing: border-box;
6
+ }
7
+
8
+ html,
9
+ body {
10
+ margin: 0;
11
+ padding: 0;
12
+ min-height: 100%;
13
+ overflow-x: hidden;
14
+ }
15
+
16
+ body {
17
+ @apply bg-main text-body antialiased;
18
+ font-family: var(--font-sans);
19
+ line-height: 1.7;
20
+ }
21
+
22
+ a {
23
+ text-decoration: none;
24
+ }
25
+
26
+ /* Scroll-margin-top for anchor scrolling */
27
+ h1,
28
+ h2,
29
+ h3,
30
+ h4,
31
+ h5,
32
+ h6 {
33
+ scroll-margin-top: 6rem;
34
+ }
35
+
36
+ /* Scrollbar */
37
+ ::-webkit-scrollbar {
38
+ width: 6px;
39
+ height: 6px;
40
+ }
41
+
42
+ ::-webkit-scrollbar-track {
43
+ background: transparent;
44
+ }
45
+
46
+ ::-webkit-scrollbar-thumb {
47
+ background-color: var(--color-strong);
48
+ border-radius: 9999px;
49
+ }
50
+
51
+ ::-webkit-scrollbar-thumb:hover {
52
+ background-color: var(--color-muted);
53
+ }
54
+
55
+ /* ═══ Content Area ═══ */
56
+ .boltdocs-content {
57
+ scrollbar-width: none;
58
+ }
59
+
60
+ .boltdocs-content::-webkit-scrollbar {
61
+ display: none;
62
+ }
63
+
64
+ /* ═══ MDX Page - Mobile Text Overflow Prevention ═══ */
65
+ .boltdocs-page {
66
+ overflow-wrap: break-word;
67
+ word-break: break-word;
68
+ }
69
+
70
+ /* Inline code inside prose shouldn't force horizontal overflow */
71
+ .boltdocs-page :not(pre) > code {
72
+ word-break: break-all;
73
+ }
74
+
75
+ .scrollbar-hide {
76
+ scrollbar-width: none;
77
+ -ms-overflow-style: none;
78
+ }
79
+
80
+ .scrollbar-hide::-webkit-scrollbar {
81
+ display: none;
82
+ }
83
+
84
+ /* Hide native search cancel button */
85
+ input::-webkit-search-cancel-button,
86
+ input::-webkit-search-decoration,
87
+ input::-webkit-search-results-button,
88
+ input::-webkit-search-results-decoration {
89
+ display: none;
90
+ }
91
+
92
+ /* Shiki Styles are defined below */
93
+
94
+ /* ═══ Shiki Styles ═══ */
95
+
96
+ /* Shiki Light/Dark Mode */
97
+ :root .shiki,
98
+ :root .shiki span {
99
+ font-family: var(--font-mono);
100
+ font-size: 12px !important;
101
+ background-color: transparent !important;
102
+ }
103
+
104
+ :root.dark .shiki,
105
+ :root.dark .shiki span {
106
+ color: var(--shiki-dark) !important;
107
+ }
108
+
109
+ /* Base Shiki Pre & Span Styles */
110
+ pre.shiki {
111
+ @apply py-2 text-[12px] leading-[1.6];
112
+ overflow-x: auto;
113
+ -webkit-overflow-scrolling: touch;
114
+ }
115
+
116
+ pre.shiki span.line {
117
+ @apply relative block px-4 py-0;
118
+ min-height: 1.6em;
119
+ }
120
+
121
+ /* Shiki Word Wrap */
122
+ pre.shiki-word-wrap {
123
+ @apply whitespace-pre-wrap break-words;
124
+ }
125
+
126
+ pre.shiki-word-wrap span.line {
127
+ @apply block w-full;
128
+ }
129
+
130
+ /* Shiki Line Numbers */
131
+ pre.shiki-line-numbers code {
132
+ counter-reset: step;
133
+ counter-increment: step 0;
134
+ }
135
+
136
+ pre.shiki-line-numbers .line {
137
+ @apply !pl-12;
138
+ }
139
+
140
+ /* Hide the last line if it is completely empty to avoid extra numbers or spacing */
141
+ pre.shiki .line:last-child:empty,
142
+ pre.shiki .line:last-child:has(> :empty),
143
+ pre.shiki-line-numbers .line:last-child:empty,
144
+ pre.shiki-line-numbers .line:last-child:has(> :empty) {
145
+ display: none;
146
+ }
147
+
148
+ pre.shiki-line-numbers .line::before {
149
+ counter-increment: step;
150
+ content: counter(step);
151
+ @apply absolute left-0 top-0 inline-flex w-10 justify-end pr-3;
152
+ @apply text-[11px] text-muted opacity-30 select-none;
153
+ line-height: inherit;
154
+ /* Sync with line text */
155
+ }
156
+
157
+ /* Shiki Highlight */
158
+ pre span.shiki-line-highlight {
159
+ @apply relative z-0 inline-block w-full;
160
+
161
+ &::after {
162
+ content: "";
163
+ @apply absolute top-0 left-0 -z-10 h-full w-full border-l-2 border-primary-500 !bg-primary-500/10 opacity-100;
164
+ }
165
+ }
166
+
167
+ /* Shiki Notation Diff */
168
+ pre.has-diff span.line.diff {
169
+ @apply relative inline-block w-full;
170
+ }
171
+
172
+ pre.has-diff span.line.diff.add {
173
+ @apply !bg-emerald-500/10 dark:!bg-emerald-500/10;
174
+
175
+ &::before {
176
+ content: "+";
177
+ @apply absolute left-2 text-emerald-500 font-bold;
178
+ }
179
+ }
180
+
181
+ pre.has-diff span.line.diff.remove {
182
+ @apply !bg-danger-500/10 opacity-70;
183
+
184
+ &::before {
185
+ content: "-";
186
+ @apply absolute left-2 text-danger-500 font-bold;
187
+ }
188
+ }
189
+ }