@ciderpress/ui 1.0.0-rc.1

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 (428) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +23 -0
  3. package/dist/0~142.js +2 -0
  4. package/dist/0~164.js +2 -0
  5. package/dist/0~2.js +2 -0
  6. package/dist/0~225.js +2 -0
  7. package/dist/0~288.js +2 -0
  8. package/dist/0~299.js +2 -0
  9. package/dist/0~3.js +2 -0
  10. package/dist/0~301.js +2 -0
  11. package/dist/0~311.js +2 -0
  12. package/dist/0~326.js +2 -0
  13. package/dist/0~40.js +2 -0
  14. package/dist/0~43.js +2 -0
  15. package/dist/0~433.js +2 -0
  16. package/dist/0~453.js +2 -0
  17. package/dist/0~457.js +2 -0
  18. package/dist/0~497.js +2 -0
  19. package/dist/0~511.js +2 -0
  20. package/dist/0~603.js +2 -0
  21. package/dist/0~616.js +2 -0
  22. package/dist/0~659.js +2 -0
  23. package/dist/0~670.js +2 -0
  24. package/dist/0~687.js +2 -0
  25. package/dist/0~706.js +2 -0
  26. package/dist/0~729.js +2 -0
  27. package/dist/0~768.js +2 -0
  28. package/dist/0~819.js +2 -0
  29. package/dist/0~830.js +2 -0
  30. package/dist/0~854.js +2 -0
  31. package/dist/0~863.js +2 -0
  32. package/dist/0~879.js +2 -0
  33. package/dist/0~96.js +2 -0
  34. package/dist/0~97.js +2 -0
  35. package/dist/components/FileTree/FileTree.css +90 -0
  36. package/dist/components/FileTree/FileTree.d.ts +7 -0
  37. package/dist/components/FileTree/FileTree.js +531 -0
  38. package/dist/components/FileTree/FileTreeItem.d.ts +8 -0
  39. package/dist/components/FileTree/RemoteSvgIcon.d.ts +11 -0
  40. package/dist/components/FileTree/index.d.ts +4 -0
  41. package/dist/components/folder-icons.d.ts +32 -0
  42. package/dist/components/languages.d.ts +7 -0
  43. package/dist/components/tree-parser/tree-parser.d.ts +12 -0
  44. package/dist/components/tree-parser/types.d.ts +11 -0
  45. package/dist/head/css/loader-apple.css +1 -0
  46. package/dist/head/css/loader-backdrop.css +1 -0
  47. package/dist/head/css/loader-dots.css +1 -0
  48. package/dist/head/css/themes/amber.css +1 -0
  49. package/dist/head/css/themes/arcade.css +1 -0
  50. package/dist/head/css/themes/grannysmith.css +1 -0
  51. package/dist/head/css/themes/honeycrisp.css +1 -0
  52. package/dist/head/css/themes/midnight.css +1 -0
  53. package/dist/head/css/themes/mulled.css +1 -0
  54. package/dist/head/js/loader-dots.js +1 -0
  55. package/dist/head/js/vscode-nav.js +1 -0
  56. package/dist/index.d.ts +43 -0
  57. package/dist/index.mjs +40 -0
  58. package/dist/node.d.ts +81 -0
  59. package/dist/node.mjs +17762 -0
  60. package/dist/plugins/mermaid/MermaidRenderer.tsx +480 -0
  61. package/dist/plugins/mermaid/mermaid.css +199 -0
  62. package/dist/theme/components/announcement/announcement-bar.css +103 -0
  63. package/dist/theme/components/announcement/announcement-bar.tsx +173 -0
  64. package/dist/theme/components/ask-ai/ask-ai-button.css +52 -0
  65. package/dist/theme/components/ask-ai/ask-ai-button.tsx +56 -0
  66. package/dist/theme/components/content-footer/content-footer-portal.tsx +70 -0
  67. package/dist/theme/components/content-footer/feedback.css +47 -0
  68. package/dist/theme/components/content-footer/feedback.tsx +96 -0
  69. package/dist/theme/components/content-footer/meta-actions.css +25 -0
  70. package/dist/theme/components/content-footer/meta-actions.tsx +57 -0
  71. package/dist/theme/components/content-footer/page-pager.css +61 -0
  72. package/dist/theme/components/content-footer/page-pager.tsx +110 -0
  73. package/dist/theme/components/edit-source-button.tsx +97 -0
  74. package/dist/theme/components/footer/site-footer.css +179 -0
  75. package/dist/theme/components/footer/site-footer.tsx +115 -0
  76. package/dist/theme/components/home/cta.css +67 -0
  77. package/dist/theme/components/home/cta.tsx +77 -0
  78. package/dist/theme/components/home/feature-card.css +52 -0
  79. package/dist/theme/components/home/feature-card.tsx +131 -0
  80. package/dist/theme/components/home/feature.tsx +79 -0
  81. package/dist/theme/components/home/hero-demo.css +66 -0
  82. package/dist/theme/components/home/hero-demo.tsx +46 -0
  83. package/dist/theme/components/home/hero.css +96 -0
  84. package/dist/theme/components/home/hero.tsx +111 -0
  85. package/dist/theme/components/home/layout.tsx +183 -0
  86. package/dist/theme/components/home/page-rail.css +21 -0
  87. package/dist/theme/components/home/page-rail.tsx +19 -0
  88. package/dist/theme/components/home/split.css +148 -0
  89. package/dist/theme/components/home/split.tsx +120 -0
  90. package/dist/theme/components/home/trust-strip.css +33 -0
  91. package/dist/theme/components/home/trust-strip.tsx +43 -0
  92. package/dist/theme/components/home/workspaces.tsx +71 -0
  93. package/dist/theme/components/nav/branch-tag.css +54 -0
  94. package/dist/theme/components/nav/branch-tag.tsx +101 -0
  95. package/dist/theme/components/nav/ciderpress-doc-layout.tsx +247 -0
  96. package/dist/theme/components/nav/ciderpress-docs-bar.css +505 -0
  97. package/dist/theme/components/nav/ciderpress-docs-bar.tsx +426 -0
  98. package/dist/theme/components/nav/ciderpress-header.css +172 -0
  99. package/dist/theme/components/nav/ciderpress-header.tsx +113 -0
  100. package/dist/theme/components/nav/ciderpress-layout-context.tsx +49 -0
  101. package/dist/theme/components/nav/ciderpress-nav-hamburger.css +193 -0
  102. package/dist/theme/components/nav/ciderpress-nav-hamburger.tsx +112 -0
  103. package/dist/theme/components/nav/ciderpress-nav-menu.css +130 -0
  104. package/dist/theme/components/nav/ciderpress-nav-menu.tsx +372 -0
  105. package/dist/theme/components/nav/ciderpress-nav-search.css +73 -0
  106. package/dist/theme/components/nav/ciderpress-nav-search.tsx +55 -0
  107. package/dist/theme/components/nav/ciderpress-nav-social-links.css +35 -0
  108. package/dist/theme/components/nav/ciderpress-nav-social-links.tsx +87 -0
  109. package/dist/theme/components/nav/floating-branch-indicator.css +106 -0
  110. package/dist/theme/components/nav/floating-branch-indicator.tsx +109 -0
  111. package/dist/theme/components/nav/layout.tsx +268 -0
  112. package/dist/theme/components/nav/mobile-nav-cta.tsx +79 -0
  113. package/dist/theme/components/nav/nav-divider.css +15 -0
  114. package/dist/theme/components/nav/nav-divider.tsx +19 -0
  115. package/dist/theme/components/nav/nav-logo.css +42 -0
  116. package/dist/theme/components/nav/nav-logo.tsx +262 -0
  117. package/dist/theme/components/nav/theme-switcher.css +92 -0
  118. package/dist/theme/components/nav/theme-switcher.tsx +298 -0
  119. package/dist/theme/components/nav/topbar-cta.css +45 -0
  120. package/dist/theme/components/nav/topbar-cta.tsx +39 -0
  121. package/dist/theme/components/nav/variant-toggle.css +70 -0
  122. package/dist/theme/components/nav/variant-toggle.tsx +83 -0
  123. package/dist/theme/components/nav/version-chip.css +31 -0
  124. package/dist/theme/components/nav/version-chip.tsx +45 -0
  125. package/dist/theme/components/nav/vscode-tag.css +32 -0
  126. package/dist/theme/components/nav/vscode-tag.tsx +20 -0
  127. package/dist/theme/components/openapi/code-sample.tsx +341 -0
  128. package/dist/theme/components/openapi/copy-markdown-button.tsx +41 -0
  129. package/dist/theme/components/openapi/icons.tsx +45 -0
  130. package/dist/theme/components/openapi/index.ts +6 -0
  131. package/dist/theme/components/openapi/method-badge.tsx +24 -0
  132. package/dist/theme/components/openapi/openapi.css +665 -0
  133. package/dist/theme/components/openapi/operation.tsx +200 -0
  134. package/dist/theme/components/openapi/overview.tsx +207 -0
  135. package/dist/theme/components/openapi/parameters-table.tsx +149 -0
  136. package/dist/theme/components/openapi/request-body.tsx +90 -0
  137. package/dist/theme/components/openapi/response-list.tsx +112 -0
  138. package/dist/theme/components/openapi/schema-viewer.tsx +277 -0
  139. package/dist/theme/components/openapi/security-badges.tsx +63 -0
  140. package/dist/theme/components/openapi/spec-utils.ts +122 -0
  141. package/dist/theme/components/shared/accordion.css +118 -0
  142. package/dist/theme/components/shared/accordion.stories.tsx +96 -0
  143. package/dist/theme/components/shared/accordion.tsx +191 -0
  144. package/dist/theme/components/shared/brand-logo.stories.tsx +49 -0
  145. package/dist/theme/components/shared/brand-mark.stories.tsx +53 -0
  146. package/dist/theme/components/shared/browser-window.css +1 -0
  147. package/dist/theme/components/shared/browser-window.stories.tsx +100 -0
  148. package/dist/theme/components/shared/browser-window.tsx +2 -0
  149. package/dist/theme/components/shared/card.stories.tsx +50 -0
  150. package/dist/theme/components/shared/card.tsx +35 -0
  151. package/dist/theme/components/shared/ciderpress-logo.tsx +93 -0
  152. package/dist/theme/components/shared/ciderpress-mark.tsx +77 -0
  153. package/dist/theme/components/shared/color.css +56 -0
  154. package/dist/theme/components/shared/color.stories.tsx +47 -0
  155. package/dist/theme/components/shared/color.tsx +69 -0
  156. package/dist/theme/components/shared/columns.css +37 -0
  157. package/dist/theme/components/shared/columns.stories.tsx +91 -0
  158. package/dist/theme/components/shared/columns.tsx +50 -0
  159. package/dist/theme/components/shared/desktop-window.css +339 -0
  160. package/dist/theme/components/shared/desktop-window.tsx +535 -0
  161. package/dist/theme/components/shared/field.css +158 -0
  162. package/dist/theme/components/shared/field.stories.tsx +100 -0
  163. package/dist/theme/components/shared/field.tsx +186 -0
  164. package/dist/theme/components/shared/frame.css +39 -0
  165. package/dist/theme/components/shared/frame.stories.tsx +49 -0
  166. package/dist/theme/components/shared/frame.tsx +76 -0
  167. package/dist/theme/components/shared/icon.stories.tsx +90 -0
  168. package/dist/theme/components/shared/icon.tsx +41 -0
  169. package/dist/theme/components/shared/prompt.css +178 -0
  170. package/dist/theme/components/shared/prompt.stories.tsx +57 -0
  171. package/dist/theme/components/shared/prompt.tsx +369 -0
  172. package/dist/theme/components/shared/resolve-card-icon.ts +28 -0
  173. package/dist/theme/components/shared/section-card.stories.tsx +51 -0
  174. package/dist/theme/components/shared/section-card.tsx +44 -0
  175. package/dist/theme/components/shared/section-grid.stories.tsx +46 -0
  176. package/dist/theme/components/shared/section-grid.tsx +15 -0
  177. package/dist/theme/components/shared/status-badge.css +37 -0
  178. package/dist/theme/components/shared/status-badge.stories.tsx +61 -0
  179. package/dist/theme/components/shared/status-badge.tsx +74 -0
  180. package/dist/theme/components/shared/steps.css +88 -0
  181. package/dist/theme/components/shared/steps.stories.tsx +68 -0
  182. package/dist/theme/components/shared/steps.tsx +100 -0
  183. package/dist/theme/components/shared/tech-icon-table.stories.tsx +29 -0
  184. package/dist/theme/components/shared/tech-icon-table.tsx +71 -0
  185. package/dist/theme/components/shared/tech-tag.stories.tsx +40 -0
  186. package/dist/theme/components/shared/tech-tag.tsx +31 -0
  187. package/dist/theme/components/shared/theme-color-palette.css +80 -0
  188. package/dist/theme/components/shared/theme-color-palette.stories.tsx +52 -0
  189. package/dist/theme/components/shared/theme-color-palette.tsx +275 -0
  190. package/dist/theme/components/shared/tooltip.css +69 -0
  191. package/dist/theme/components/shared/tooltip.stories.tsx +72 -0
  192. package/dist/theme/components/shared/tooltip.tsx +77 -0
  193. package/dist/theme/components/sidebar/framework-picker.css +77 -0
  194. package/dist/theme/components/sidebar/framework-picker.tsx +78 -0
  195. package/dist/theme/components/sidebar/sidebar-filter.test.ts +140 -0
  196. package/dist/theme/components/sidebar/sidebar-filter.ts +79 -0
  197. package/dist/theme/components/sidebar/sidebar-links.css +102 -0
  198. package/dist/theme/components/sidebar/sidebar-links.tsx +122 -0
  199. package/dist/theme/components/sidebar/sidebar-promo.css +42 -0
  200. package/dist/theme/components/sidebar/sidebar-promo.tsx +52 -0
  201. package/dist/theme/components/sidebar/sidebar-scope.tsx +151 -0
  202. package/dist/theme/components/sidebar/sidebar-toggle.css +181 -0
  203. package/dist/theme/components/sidebar/sidebar-toggle.tsx +127 -0
  204. package/dist/theme/components/theme-provider.tsx +637 -0
  205. package/dist/theme/components/workspaces/card.css +151 -0
  206. package/dist/theme/components/workspaces/card.tsx +166 -0
  207. package/dist/theme/components/workspaces/grid.tsx +62 -0
  208. package/dist/theme/css.d.ts +1 -0
  209. package/dist/theme/env.d.ts +12 -0
  210. package/dist/theme/fonts/GeistMono-Variable.woff2 +0 -0
  211. package/dist/theme/fonts/GeistPixel-Square.woff2 +0 -0
  212. package/dist/theme/fonts/GeistSans-Variable.woff2 +0 -0
  213. package/dist/theme/hooks/use-ciderpress.ts +61 -0
  214. package/dist/theme/hooks/use-nav-items.ts +76 -0
  215. package/dist/theme/icons/index.ts +2 -0
  216. package/dist/theme/icons/tech-map.ts +228 -0
  217. package/dist/theme/index.tsx +180 -0
  218. package/dist/theme/lib/read-social-links.ts +27 -0
  219. package/dist/theme/lib/route-link.tsx +126 -0
  220. package/dist/theme/lib/safe-url.test.ts +0 -0
  221. package/dist/theme/lib/safe-url.ts +68 -0
  222. package/dist/theme/lib/theme-favicon.ts +125 -0
  223. package/dist/theme/lib/user-config-stub.ts +12 -0
  224. package/dist/theme/styles/layers.css +32 -0
  225. package/dist/theme/styles/overrides/badge.css +26 -0
  226. package/dist/theme/styles/overrides/content-footer.css +80 -0
  227. package/dist/theme/styles/overrides/details.css +61 -0
  228. package/dist/theme/styles/overrides/fonts.css +32 -0
  229. package/dist/theme/styles/overrides/home-card.css +133 -0
  230. package/dist/theme/styles/overrides/home.css +243 -0
  231. package/dist/theme/styles/overrides/rail.css +337 -0
  232. package/dist/theme/styles/overrides/rspress.css +62 -0
  233. package/dist/theme/styles/overrides/scrollbar.css +25 -0
  234. package/dist/theme/styles/overrides/section-card.css +114 -0
  235. package/dist/theme/styles/overrides/sidebar.css +144 -0
  236. package/dist/theme/styles/overrides/tokens.css +288 -0
  237. package/dist/theme/styles/overrides/vscode.css +88 -0
  238. package/dist/theme/styles/themes/amber.css +545 -0
  239. package/dist/theme/styles/themes/arcade-fx.css +366 -0
  240. package/dist/theme/styles/themes/arcade.css +273 -0
  241. package/dist/theme/styles/themes/grannysmith.css +545 -0
  242. package/dist/theme/styles/themes/honeycrisp.css +545 -0
  243. package/dist/theme/styles/themes/midnight.css +273 -0
  244. package/dist/theme/styles/themes/mulled.css +817 -0
  245. package/package.json +103 -0
  246. package/src/theme/components/announcement/announcement-bar.css +103 -0
  247. package/src/theme/components/announcement/announcement-bar.tsx +173 -0
  248. package/src/theme/components/ask-ai/ask-ai-button.css +52 -0
  249. package/src/theme/components/ask-ai/ask-ai-button.tsx +56 -0
  250. package/src/theme/components/content-footer/content-footer-portal.tsx +70 -0
  251. package/src/theme/components/content-footer/feedback.css +47 -0
  252. package/src/theme/components/content-footer/feedback.tsx +96 -0
  253. package/src/theme/components/content-footer/meta-actions.css +25 -0
  254. package/src/theme/components/content-footer/meta-actions.tsx +57 -0
  255. package/src/theme/components/content-footer/page-pager.css +61 -0
  256. package/src/theme/components/content-footer/page-pager.tsx +110 -0
  257. package/src/theme/components/edit-source-button.tsx +97 -0
  258. package/src/theme/components/footer/site-footer.css +179 -0
  259. package/src/theme/components/footer/site-footer.tsx +115 -0
  260. package/src/theme/components/home/cta.css +67 -0
  261. package/src/theme/components/home/cta.tsx +77 -0
  262. package/src/theme/components/home/feature-card.css +52 -0
  263. package/src/theme/components/home/feature-card.tsx +131 -0
  264. package/src/theme/components/home/feature.tsx +79 -0
  265. package/src/theme/components/home/hero-demo.css +66 -0
  266. package/src/theme/components/home/hero-demo.tsx +46 -0
  267. package/src/theme/components/home/hero.css +96 -0
  268. package/src/theme/components/home/hero.tsx +111 -0
  269. package/src/theme/components/home/layout.tsx +183 -0
  270. package/src/theme/components/home/page-rail.css +21 -0
  271. package/src/theme/components/home/page-rail.tsx +19 -0
  272. package/src/theme/components/home/split.css +148 -0
  273. package/src/theme/components/home/split.tsx +120 -0
  274. package/src/theme/components/home/trust-strip.css +33 -0
  275. package/src/theme/components/home/trust-strip.tsx +43 -0
  276. package/src/theme/components/home/workspaces.tsx +71 -0
  277. package/src/theme/components/nav/branch-tag.css +54 -0
  278. package/src/theme/components/nav/branch-tag.tsx +101 -0
  279. package/src/theme/components/nav/ciderpress-doc-layout.tsx +247 -0
  280. package/src/theme/components/nav/ciderpress-docs-bar.css +505 -0
  281. package/src/theme/components/nav/ciderpress-docs-bar.tsx +426 -0
  282. package/src/theme/components/nav/ciderpress-header.css +172 -0
  283. package/src/theme/components/nav/ciderpress-header.tsx +113 -0
  284. package/src/theme/components/nav/ciderpress-layout-context.tsx +49 -0
  285. package/src/theme/components/nav/ciderpress-nav-hamburger.css +193 -0
  286. package/src/theme/components/nav/ciderpress-nav-hamburger.tsx +112 -0
  287. package/src/theme/components/nav/ciderpress-nav-menu.css +130 -0
  288. package/src/theme/components/nav/ciderpress-nav-menu.tsx +372 -0
  289. package/src/theme/components/nav/ciderpress-nav-search.css +73 -0
  290. package/src/theme/components/nav/ciderpress-nav-search.tsx +55 -0
  291. package/src/theme/components/nav/ciderpress-nav-social-links.css +35 -0
  292. package/src/theme/components/nav/ciderpress-nav-social-links.tsx +87 -0
  293. package/src/theme/components/nav/floating-branch-indicator.css +106 -0
  294. package/src/theme/components/nav/floating-branch-indicator.tsx +109 -0
  295. package/src/theme/components/nav/layout.tsx +268 -0
  296. package/src/theme/components/nav/mobile-nav-cta.tsx +79 -0
  297. package/src/theme/components/nav/nav-divider.css +15 -0
  298. package/src/theme/components/nav/nav-divider.tsx +19 -0
  299. package/src/theme/components/nav/nav-logo.css +42 -0
  300. package/src/theme/components/nav/nav-logo.tsx +262 -0
  301. package/src/theme/components/nav/theme-switcher.css +92 -0
  302. package/src/theme/components/nav/theme-switcher.tsx +298 -0
  303. package/src/theme/components/nav/topbar-cta.css +45 -0
  304. package/src/theme/components/nav/topbar-cta.tsx +39 -0
  305. package/src/theme/components/nav/variant-toggle.css +70 -0
  306. package/src/theme/components/nav/variant-toggle.tsx +83 -0
  307. package/src/theme/components/nav/version-chip.css +31 -0
  308. package/src/theme/components/nav/version-chip.tsx +45 -0
  309. package/src/theme/components/nav/vscode-tag.css +32 -0
  310. package/src/theme/components/nav/vscode-tag.tsx +20 -0
  311. package/src/theme/components/openapi/code-sample.tsx +341 -0
  312. package/src/theme/components/openapi/copy-markdown-button.tsx +41 -0
  313. package/src/theme/components/openapi/icons.tsx +45 -0
  314. package/src/theme/components/openapi/index.ts +6 -0
  315. package/src/theme/components/openapi/method-badge.tsx +24 -0
  316. package/src/theme/components/openapi/openapi.css +665 -0
  317. package/src/theme/components/openapi/operation.tsx +200 -0
  318. package/src/theme/components/openapi/overview.tsx +207 -0
  319. package/src/theme/components/openapi/parameters-table.tsx +149 -0
  320. package/src/theme/components/openapi/request-body.tsx +90 -0
  321. package/src/theme/components/openapi/response-list.tsx +112 -0
  322. package/src/theme/components/openapi/schema-viewer.tsx +277 -0
  323. package/src/theme/components/openapi/security-badges.tsx +63 -0
  324. package/src/theme/components/openapi/spec-utils.ts +122 -0
  325. package/src/theme/components/shared/accordion.css +118 -0
  326. package/src/theme/components/shared/accordion.stories.tsx +96 -0
  327. package/src/theme/components/shared/accordion.tsx +191 -0
  328. package/src/theme/components/shared/brand-logo.stories.tsx +49 -0
  329. package/src/theme/components/shared/brand-mark.stories.tsx +53 -0
  330. package/src/theme/components/shared/browser-window.css +1 -0
  331. package/src/theme/components/shared/browser-window.stories.tsx +100 -0
  332. package/src/theme/components/shared/browser-window.tsx +2 -0
  333. package/src/theme/components/shared/card.stories.tsx +50 -0
  334. package/src/theme/components/shared/card.tsx +35 -0
  335. package/src/theme/components/shared/ciderpress-logo.tsx +93 -0
  336. package/src/theme/components/shared/ciderpress-mark.tsx +77 -0
  337. package/src/theme/components/shared/color.css +56 -0
  338. package/src/theme/components/shared/color.stories.tsx +47 -0
  339. package/src/theme/components/shared/color.tsx +69 -0
  340. package/src/theme/components/shared/columns.css +37 -0
  341. package/src/theme/components/shared/columns.stories.tsx +91 -0
  342. package/src/theme/components/shared/columns.tsx +50 -0
  343. package/src/theme/components/shared/desktop-window.css +339 -0
  344. package/src/theme/components/shared/desktop-window.tsx +535 -0
  345. package/src/theme/components/shared/field.css +158 -0
  346. package/src/theme/components/shared/field.stories.tsx +100 -0
  347. package/src/theme/components/shared/field.tsx +186 -0
  348. package/src/theme/components/shared/frame.css +39 -0
  349. package/src/theme/components/shared/frame.stories.tsx +49 -0
  350. package/src/theme/components/shared/frame.tsx +76 -0
  351. package/src/theme/components/shared/icon.stories.tsx +90 -0
  352. package/src/theme/components/shared/icon.tsx +41 -0
  353. package/src/theme/components/shared/prompt.css +178 -0
  354. package/src/theme/components/shared/prompt.stories.tsx +57 -0
  355. package/src/theme/components/shared/prompt.tsx +369 -0
  356. package/src/theme/components/shared/resolve-card-icon.ts +28 -0
  357. package/src/theme/components/shared/section-card.stories.tsx +51 -0
  358. package/src/theme/components/shared/section-card.tsx +44 -0
  359. package/src/theme/components/shared/section-grid.stories.tsx +46 -0
  360. package/src/theme/components/shared/section-grid.tsx +15 -0
  361. package/src/theme/components/shared/status-badge.css +37 -0
  362. package/src/theme/components/shared/status-badge.stories.tsx +61 -0
  363. package/src/theme/components/shared/status-badge.tsx +74 -0
  364. package/src/theme/components/shared/steps.css +88 -0
  365. package/src/theme/components/shared/steps.stories.tsx +68 -0
  366. package/src/theme/components/shared/steps.tsx +100 -0
  367. package/src/theme/components/shared/tech-icon-table.stories.tsx +29 -0
  368. package/src/theme/components/shared/tech-icon-table.tsx +71 -0
  369. package/src/theme/components/shared/tech-tag.stories.tsx +40 -0
  370. package/src/theme/components/shared/tech-tag.tsx +31 -0
  371. package/src/theme/components/shared/theme-color-palette.css +80 -0
  372. package/src/theme/components/shared/theme-color-palette.stories.tsx +52 -0
  373. package/src/theme/components/shared/theme-color-palette.tsx +275 -0
  374. package/src/theme/components/shared/tooltip.css +69 -0
  375. package/src/theme/components/shared/tooltip.stories.tsx +72 -0
  376. package/src/theme/components/shared/tooltip.tsx +77 -0
  377. package/src/theme/components/sidebar/framework-picker.css +77 -0
  378. package/src/theme/components/sidebar/framework-picker.tsx +78 -0
  379. package/src/theme/components/sidebar/sidebar-filter.test.ts +140 -0
  380. package/src/theme/components/sidebar/sidebar-filter.ts +79 -0
  381. package/src/theme/components/sidebar/sidebar-links.css +102 -0
  382. package/src/theme/components/sidebar/sidebar-links.tsx +122 -0
  383. package/src/theme/components/sidebar/sidebar-promo.css +42 -0
  384. package/src/theme/components/sidebar/sidebar-promo.tsx +52 -0
  385. package/src/theme/components/sidebar/sidebar-scope.tsx +151 -0
  386. package/src/theme/components/sidebar/sidebar-toggle.css +181 -0
  387. package/src/theme/components/sidebar/sidebar-toggle.tsx +127 -0
  388. package/src/theme/components/theme-provider.tsx +637 -0
  389. package/src/theme/components/workspaces/card.css +151 -0
  390. package/src/theme/components/workspaces/card.tsx +166 -0
  391. package/src/theme/components/workspaces/grid.tsx +62 -0
  392. package/src/theme/css.d.ts +1 -0
  393. package/src/theme/env.d.ts +12 -0
  394. package/src/theme/fonts/GeistMono-Variable.woff2 +0 -0
  395. package/src/theme/fonts/GeistPixel-Square.woff2 +0 -0
  396. package/src/theme/fonts/GeistSans-Variable.woff2 +0 -0
  397. package/src/theme/hooks/use-ciderpress.ts +61 -0
  398. package/src/theme/hooks/use-nav-items.ts +76 -0
  399. package/src/theme/icons/index.ts +2 -0
  400. package/src/theme/icons/tech-map.ts +228 -0
  401. package/src/theme/index.tsx +180 -0
  402. package/src/theme/lib/read-social-links.ts +27 -0
  403. package/src/theme/lib/route-link.tsx +126 -0
  404. package/src/theme/lib/safe-url.test.ts +0 -0
  405. package/src/theme/lib/safe-url.ts +68 -0
  406. package/src/theme/lib/theme-favicon.ts +125 -0
  407. package/src/theme/lib/user-config-stub.ts +12 -0
  408. package/src/theme/styles/layers.css +32 -0
  409. package/src/theme/styles/overrides/badge.css +26 -0
  410. package/src/theme/styles/overrides/content-footer.css +80 -0
  411. package/src/theme/styles/overrides/details.css +61 -0
  412. package/src/theme/styles/overrides/fonts.css +32 -0
  413. package/src/theme/styles/overrides/home-card.css +133 -0
  414. package/src/theme/styles/overrides/home.css +243 -0
  415. package/src/theme/styles/overrides/rail.css +337 -0
  416. package/src/theme/styles/overrides/rspress.css +62 -0
  417. package/src/theme/styles/overrides/scrollbar.css +25 -0
  418. package/src/theme/styles/overrides/section-card.css +114 -0
  419. package/src/theme/styles/overrides/sidebar.css +144 -0
  420. package/src/theme/styles/overrides/tokens.css +288 -0
  421. package/src/theme/styles/overrides/vscode.css +88 -0
  422. package/src/theme/styles/themes/amber.css +545 -0
  423. package/src/theme/styles/themes/arcade-fx.css +366 -0
  424. package/src/theme/styles/themes/arcade.css +273 -0
  425. package/src/theme/styles/themes/grannysmith.css +545 -0
  426. package/src/theme/styles/themes/honeycrisp.css +545 -0
  427. package/src/theme/styles/themes/midnight.css +273 -0
  428. package/src/theme/styles/themes/mulled.css +817 -0
@@ -0,0 +1,114 @@
1
+ /**
2
+ * Section landing page cards — emitted by the sync engine as raw HTML.
3
+ */
4
+
5
+ /* ── Section grid ────────────────────────────────────────── */
6
+ .cp-section-grid {
7
+ display: grid;
8
+ grid-template-columns: repeat(2, 1fr);
9
+ gap: 12px;
10
+ margin-top: 24px;
11
+ }
12
+
13
+ .cp-section-card {
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: 6px;
17
+ padding: 14px 16px;
18
+ border-radius: var(--rp-radius);
19
+ border: 1px solid var(--cp-c-border);
20
+ background: var(--cp-c-bg-soft);
21
+ text-decoration: none !important;
22
+ transition:
23
+ border-color 0.2s,
24
+ background 0.2s,
25
+ box-shadow 0.2s;
26
+ }
27
+
28
+ .cp-section-card__header {
29
+ display: flex;
30
+ align-items: center;
31
+ gap: 10px;
32
+ }
33
+
34
+ .cp-section-card:hover {
35
+ border-color: var(--cp-c-brand-1);
36
+ background: var(--cp-c-bg-elv);
37
+ box-shadow: var(--cp-shadow-card-hover);
38
+ }
39
+
40
+ .cp-section-card__icon {
41
+ display: flex;
42
+ align-items: center;
43
+ justify-content: center;
44
+ width: 28px;
45
+ height: 28px;
46
+ border-radius: 4px;
47
+ flex-shrink: 0;
48
+ }
49
+
50
+ .cp-section-card__icon svg {
51
+ width: 16px;
52
+ height: 16px;
53
+ }
54
+
55
+ /* ── Section icon colors ─────────────────────────────────── */
56
+ .cp-section-card__icon--blue {
57
+ background: var(--cp-c-tint-blue-bg);
58
+ color: var(--cp-c-tint-blue-fg);
59
+ }
60
+
61
+ .cp-section-card__icon--purple {
62
+ background: var(--cp-c-tint-purple-bg);
63
+ color: var(--cp-c-tint-purple-fg);
64
+ }
65
+
66
+ .cp-section-card__icon--green {
67
+ background: var(--cp-c-tint-green-bg);
68
+ color: var(--cp-c-tint-green-fg);
69
+ }
70
+
71
+ .cp-section-card__icon--amber {
72
+ background: var(--cp-c-tint-amber-bg);
73
+ color: var(--cp-c-tint-amber-fg);
74
+ }
75
+
76
+ .cp-section-card__icon--red {
77
+ background: var(--cp-c-tint-red-bg);
78
+ color: var(--cp-c-tint-red-fg);
79
+ }
80
+
81
+ .cp-section-card__icon--slate {
82
+ background: var(--cp-c-tint-slate-bg);
83
+ color: var(--cp-c-tint-slate-fg);
84
+ }
85
+
86
+ .cp-section-card__icon--cyan {
87
+ background: var(--cp-c-tint-cyan-bg);
88
+ color: var(--cp-c-tint-cyan-fg);
89
+ }
90
+
91
+ .cp-section-card__icon--pink {
92
+ background: var(--cp-c-tint-pink-bg);
93
+ color: var(--cp-c-tint-pink-fg);
94
+ }
95
+
96
+ .cp-section-card__title {
97
+ font-size: 14px;
98
+ font-weight: 600;
99
+ color: var(--cp-c-text-1);
100
+ line-height: 1;
101
+ }
102
+
103
+ .cp-section-card__desc {
104
+ font-size: 12.5px;
105
+ color: var(--cp-c-text-2);
106
+ line-height: 1.45;
107
+ }
108
+
109
+ /* ── Responsive ──────────────────────────────────────────── */
110
+ @media (max-width: 768px) {
111
+ .cp-section-grid {
112
+ grid-template-columns: 1fr;
113
+ }
114
+ }
@@ -0,0 +1,144 @@
1
+ /**
2
+ * Rspress sidebar overrides — group headers, item sizing, active stripe,
3
+ * mobile drawer transitions.
4
+ *
5
+ * Cascade layer: `ciderpress.overrides` (see styles/layers.css).
6
+ *
7
+ * `!important` inventory (task 8.2):
8
+ * - Before: 0
9
+ * - After: 0
10
+ *
11
+ * No `!important` declarations are needed here — `html .rp-sidebar-*`
12
+ * specificity combined with the `ciderpress.overrides` layer wins against
13
+ * Rspress's sidebar defaults.
14
+ */
15
+
16
+ @layer ciderpress.overrides {
17
+ /* ── Transitions (960px–1439px) ──────────────────────────── */
18
+
19
+ @media (min-width: 960px) and (max-width: 1439px) {
20
+ .rspress-sidebar {
21
+ transition:
22
+ width 0.3s ease,
23
+ min-width 0.3s ease;
24
+ }
25
+ }
26
+
27
+ /* ── Group section headers — mono ALL CAPS (mockup pattern) ──── */
28
+ html .rp-sidebar-section-header {
29
+ font-family: var(--cp-font-family-mono);
30
+ font-size: 10px;
31
+ text-transform: uppercase;
32
+ letter-spacing: 0.08em;
33
+ color: var(--cp-c-text-3);
34
+ font-weight: 500;
35
+ }
36
+
37
+ html .rp-sidebar-section-header__left {
38
+ color: var(--cp-c-text-3);
39
+ }
40
+
41
+ /* Top-level group anchors (clickable section headers) styled as eyebrow labels */
42
+ html .rp-sidebar-item.rp-sidebar-group[data-depth='0'] {
43
+ font-family: var(--cp-font-family-mono);
44
+ font-size: 10px;
45
+ text-transform: uppercase;
46
+ letter-spacing: 0.08em;
47
+ color: var(--cp-c-text-3);
48
+ font-weight: 500;
49
+ margin-top: 12px;
50
+ }
51
+
52
+ html .rp-sidebar-item.rp-sidebar-group[data-depth='0']:hover {
53
+ color: var(--cp-c-text-1);
54
+ }
55
+
56
+ /* Sub-items — 13px regular Geist, denser than Rspress default */
57
+ html .rp-sidebar-item.rp-sidebar-item--group-item {
58
+ font-size: 13px;
59
+ }
60
+
61
+ /* Tighten sidebar horizontal padding — Rspress's defaults leave too
62
+ much room on the left/right inside the rail, which makes the
63
+ content feel narrow. */
64
+ html .rp-doc-layout__sidebar,
65
+ html .rspress-sidebar {
66
+ padding-left: 8px;
67
+ padding-right: 8px;
68
+ padding-bottom: 16px;
69
+ }
70
+
71
+ html .rp-sidebar-body {
72
+ padding-bottom: 16px;
73
+ }
74
+
75
+ /* ── Active item — accent stripe on the left edge ─────────── */
76
+ /* Pin `font-weight` to the base value. Rspress's default jumps to 600
77
+ on `--active`, which widens the text and reflows the sidebar layout
78
+ every time the active page changes. The stripe + bg + brand color
79
+ already mark the row; the bold is redundant. */
80
+ html .rp-sidebar-item--active {
81
+ color: var(--cp-c-text-1);
82
+ background: var(--cp-c-bg-soft);
83
+ font-weight: 400;
84
+ position: relative;
85
+ }
86
+
87
+ html .rp-sidebar-item--active::before {
88
+ content: '';
89
+ position: absolute;
90
+ left: -8px;
91
+ top: 7px;
92
+ bottom: 7px;
93
+ width: 2px;
94
+ background: var(--cp-c-brand-1);
95
+ border-radius: 0 2px 2px 0;
96
+ }
97
+
98
+ /* TODO: assess adding this override back in a future pass */
99
+ /* ── Mobile drawer at 900px (Rspress default: 768px) ────── */
100
+
101
+ /*
102
+ * Rspress collapses the sidebar into a slide-out drawer at ≤768px.
103
+ * Extend that behavior up to ≤900px so narrower viewports get the
104
+ * drawer sooner. The existing ≤768px rules still apply below.
105
+ *
106
+
107
+ @media (min-width: 769px) and (max-width: 900px) {
108
+ .rp-doc-layout__sidebar {
109
+ position: fixed;
110
+ top: 0;
111
+ left: 0;
112
+ bottom: 0;
113
+ width: var(--rp-sidebar-width);
114
+ opacity: 0;
115
+ transform: translate3d(-100%, 0, 0);
116
+ transition:
117
+ opacity 0.25s,
118
+ transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
119
+ z-index: var(--rp-z-index-sidebar);
120
+ height: 100vh;
121
+ overflow: auto scroll;
122
+ padding-bottom: 100px;
123
+ }
124
+
125
+ .rp-doc-layout__sidebar--open {
126
+ opacity: 1;
127
+ transform: translate3d(0, 0, 0);
128
+ }
129
+
130
+ .rp-sidebar-menu__mask {
131
+ display: block;
132
+ }
133
+
134
+ .rp-nav-hamburger__sm {
135
+ display: block;
136
+ }
137
+
138
+ .rp-nav-menu {
139
+ display: none;
140
+ }
141
+ }
142
+
143
+ */
144
+ }
@@ -0,0 +1,288 @@
1
+ /**
2
+ * ciderpress structural tokens (--cp-* prefix).
3
+ *
4
+ * Color definitions live in theme files (styles/themes/*.css).
5
+ * This file holds non-color structural tokens only: spacing, radii, shadows,
6
+ * motion, z-index, line-heights, letter-spacings, opacities, sizes,
7
+ * breakpoints, blurs, and font-families.
8
+ *
9
+ * Naming follows `TOKEN_TO_CSS_VAR` in `@ciderpress/theme` (packages/theme/src/tokens.ts):
10
+ * --cp-s-{N} spacing scale (N = px value on a 2-px grid)
11
+ * --cp-radius-* border-radius
12
+ * --cp-shadow-* box-shadow recipes
13
+ * --cp-duration-* transition durations
14
+ * --cp-ease-* transition easings
15
+ * --cp-z-* z-index
16
+ * --cp-lh-* line-height
17
+ * --cp-letter-* letter-spacing
18
+ * --cp-opacity-* opacity
19
+ * --cp-size-* component sizes (non-spacing)
20
+ * --cp-bp-* breakpoint widths
21
+ * --cp-blur-* backdrop blur
22
+ * --cp-ff-* font-family
23
+ * --cp-fw-* font-weight
24
+ * --cp-fs-* font-size
25
+ *
26
+ * Values are mirrored from `.snapshots/baseline/token-audit.txt` so the
27
+ * defaults match the implicit values previously inlined across component CSS.
28
+ * DO NOT change a default here without re-running the audit — visual output
29
+ * must remain stable.
30
+ *
31
+ * Cascade layer: `ciderpress.tokens` (see styles/layers.css).
32
+ */
33
+
34
+ @layer ciderpress.tokens {
35
+ :root {
36
+ /* ── Font families ──────────────────────────────────────── */
37
+ /**
38
+ * Default body / UI font — Geist Mono. Whole site reads as a
39
+ * terminal-style mono surface.
40
+ */
41
+ --cp-font-family-base: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
42
+ /**
43
+ * Optional sans fallback — exposed for cases that explicitly want
44
+ * proportional Geist (e.g. very long prose passages).
45
+ */
46
+ --cp-font-family-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
47
+ /**
48
+ * Decorative pixel-art font — opt-in for brand marks, headlines, etc.
49
+ * Apply with `font-family: var(--cp-font-family-pixel)` on the target.
50
+ */
51
+ --cp-font-family-pixel: 'Geist Pixel Square', ui-sans-serif, system-ui, sans-serif;
52
+ /**
53
+ * Monospace alias — same as base. Kept for callsites that explicitly
54
+ * tag "this should be monospace" (code, shortcuts, eyebrow labels) so
55
+ * the intent stays readable in the stylesheet.
56
+ */
57
+ --cp-font-family-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
58
+
59
+ /* Canonical aliases matching TOKEN_TO_CSS_VAR (fonts.family.sans/mono). */
60
+ --cp-ff-sans: var(--cp-font-family-sans);
61
+ --cp-ff-mono: var(--cp-font-family-mono);
62
+
63
+ /* ── Font weights ───────────────────────────────────────── */
64
+ --cp-fw-regular: 400;
65
+ --cp-fw-medium: 500;
66
+ --cp-fw-semibold: 600;
67
+ --cp-fw-bold: 700;
68
+
69
+ /* ── Font sizes ─────────────────────────────────────────── */
70
+ --cp-fs-body: 16px;
71
+ --cp-fs-btn: 14px;
72
+ --cp-fs-bullet: 14px;
73
+ --cp-fs-code: 13px;
74
+ --cp-fs-eyebrow: 11px;
75
+ --cp-fs-tagline: 18px;
76
+ --cp-fs-hero-title: clamp(40px, 6.5vw, 76px);
77
+ --cp-fs-split-title: clamp(28px, 4vw, 40px);
78
+ --cp-fs-feature-title: 18px;
79
+ --cp-fs-feature-desc: 16px;
80
+ --cp-fs-feature-link: 12px;
81
+ --cp-fs-section-title: 14px;
82
+ --cp-fs-section-desc: 12.5px;
83
+ --cp-fs-badge: 11px;
84
+ --cp-fs-tooltip: 13px;
85
+ --cp-fs-tooltip-headline: 13px;
86
+ --cp-fs-tooltip-cta: 12px;
87
+ --cp-fs-check: 11px;
88
+ --cp-fs-field-name: 14px;
89
+ --cp-fs-field-type: 11px;
90
+ --cp-fs-field-badge: 11px;
91
+ --cp-fs-field-default: 12px;
92
+ --cp-fs-field-default-code: 11px;
93
+ --cp-fs-field-body: 14px;
94
+ --cp-fs-field-group-title: 14px;
95
+ --cp-fs-field-trigger: 12px;
96
+ --cp-fs-prompt-desc: 14px;
97
+ --cp-fs-prompt-feedback: 12px;
98
+ --cp-fs-prompt-btn: 12px;
99
+ --cp-fs-prompt-menu-item: 13px;
100
+ --cp-fs-prompt-menu-desc: 11px;
101
+ --cp-fs-color-name: 12px;
102
+ --cp-fs-color-value: 11px;
103
+ --cp-fs-window-title: 12px;
104
+ --cp-fs-window-tab: 12px;
105
+ --cp-fs-window-url: 11px;
106
+ --cp-fs-term-body: 13px;
107
+ --cp-fs-demo-title: 11px;
108
+ --cp-fs-demo-body: 13px;
109
+ --cp-fs-ask-ai: 13px;
110
+ --cp-fs-ask-ai-mark: 10px;
111
+ --cp-fs-ask-ai-shortcut: 10px;
112
+ --cp-fs-sidebar-link: 14px;
113
+
114
+ /* ── Spacing scale (2-px grid) ──────────────────────────── */
115
+ --cp-s-1: 1px;
116
+ --cp-s-2: 2px;
117
+ --cp-s-3: 3px;
118
+ --cp-s-4: 4px;
119
+ --cp-s-5: 5px;
120
+ --cp-s-6: 6px;
121
+ --cp-s-8: 8px;
122
+ --cp-s-10: 10px;
123
+ --cp-s-12: 12px;
124
+ --cp-s-14: 14px;
125
+ --cp-s-16: 16px;
126
+ --cp-s-18: 18px;
127
+ --cp-s-20: 20px;
128
+ --cp-s-24: 24px;
129
+ --cp-s-28: 28px;
130
+ --cp-s-32: 32px;
131
+ --cp-s-40: 40px;
132
+ --cp-s-48: 48px;
133
+ --cp-s-56: 56px;
134
+ --cp-s-64: 64px;
135
+ --cp-s-72: 72px;
136
+ --cp-s-96: 96px;
137
+
138
+ /* ── Radii ──────────────────────────────────────────────── */
139
+ --cp-radius-xs: 2px;
140
+ --cp-radius-xs-sm: 3px;
141
+ --cp-radius-sm: 4px;
142
+ --cp-radius-md-sm: 6px;
143
+ --cp-radius-md: 8px;
144
+ --cp-radius-lg: 10px;
145
+ --cp-radius-md-lg: 12px;
146
+ --cp-radius-pill: 9999px;
147
+
148
+ /* Legacy radius aliases — preserved for back-compat with existing callsites. */
149
+ --cp-radius-card: 6px;
150
+ --cp-radius-frame: 10px;
151
+
152
+ /* Override Rspress radius defaults to favor sharper corners. */
153
+ --rp-radius: 0.25rem;
154
+ --rp-radius-small: 0.125rem;
155
+ --rp-radius-large: 0.5rem;
156
+
157
+ /* ── Shadows ────────────────────────────────────────────── */
158
+ /**
159
+ * Card hover lift — uses the purple-glow tint (rgba(167,139,250,.08)).
160
+ * The tint var is supplied by the theme palette files.
161
+ */
162
+ --cp-shadow-card-hover: 0 2px 12px var(--cp-c-tint-purple-glow);
163
+ --cp-shadow-menu: 0 8px 24px rgba(0, 0, 0, 0.12);
164
+ --cp-shadow-tooltip: 0 4px 12px rgba(0, 0, 0, 0.08);
165
+ /**
166
+ * Hero demo — 3-layer composite: hairline outline, large drop shadow,
167
+ * and a soft brand-soft glow.
168
+ */
169
+ --cp-shadow-hero-demo:
170
+ 0 0 0 1px rgba(0, 0, 0, 0.5), 0 24px 48px -12px rgba(0, 0, 0, 0.6),
171
+ 0 0 80px var(--cp-c-brand-soft);
172
+ /**
173
+ * Ask-AI floating button — 2-layer composite: large drop shadow plus
174
+ * focus halo ring.
175
+ */
176
+ --cp-shadow-ask-ai: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(0, 0, 0, 0.5);
177
+
178
+ /* ── Motion ─────────────────────────────────────────────── */
179
+ --cp-duration-fast: 0.15s;
180
+ --cp-duration-base: 0.2s;
181
+ --cp-ease-base: ease;
182
+
183
+ /* ── Z-index ────────────────────────────────────────────── */
184
+ --cp-z-dropdown: 50;
185
+ --cp-z-floating: 60;
186
+ --cp-z-tooltip: 100;
187
+
188
+ /* ── Line-heights ───────────────────────────────────────── */
189
+ --cp-lh-display: 1;
190
+ --cp-lh-tight: 1.4;
191
+ --cp-lh-tighter: 1.3;
192
+ --cp-lh-snug: 1.45;
193
+ --cp-lh-base: 1.5;
194
+ --cp-lh-relaxed: 1.6;
195
+ --cp-lh-demo: 1.65;
196
+ --cp-lh-code: 1.7;
197
+ --cp-lh-sidebar: 24px;
198
+
199
+ /* ── Letter-spacings ────────────────────────────────────── */
200
+ --cp-letter-wide: 0.02em;
201
+ --cp-letter-eyebrow: 0.1em;
202
+ --cp-letter-display: -0.025em;
203
+ --cp-letter-hero: -0.04em;
204
+
205
+ /* ── Opacities ──────────────────────────────────────────── */
206
+ --cp-opacity-muted: 0.5;
207
+ --cp-opacity-deprecated: 0.6;
208
+ --cp-opacity-hover: 0.8;
209
+
210
+ /* ── Sizes (component sizes that aren't pure spacing) ──── */
211
+ --cp-size-titlebar: 36px;
212
+ --cp-size-window-dot: 10px;
213
+ --cp-size-window-tab-dot: 6px;
214
+ --cp-size-browser-tab-max: 200px;
215
+ --cp-size-browser-icon: 14px;
216
+ --cp-size-browser-urlbar: 28px;
217
+ --cp-size-icon-box: 36px;
218
+ --cp-size-icon-box-sm: 28px;
219
+ --cp-size-icon-svg: 18px;
220
+ --cp-size-icon-svg-sm: 16px;
221
+ --cp-size-icon-sm: 16px;
222
+ --cp-size-content-max: 1152px;
223
+ --cp-size-focus-ring: 2px;
224
+ --cp-size-focus-ring-offset: 2px;
225
+ --cp-size-tooltip-max: 320px;
226
+ --cp-size-swatch: 24px;
227
+ --cp-size-demo-max: 920px;
228
+ --cp-size-split-max: 1200px;
229
+ --cp-size-hero-grid: 24px;
230
+ --cp-size-hero-max: 1100px;
231
+ --cp-size-tagline-max: 640px;
232
+ --cp-size-prompt-icon: 20px;
233
+ --cp-size-prompt-btn: 30px;
234
+ --cp-size-menu-min: 220px;
235
+ --cp-size-prompt-menu-icon: 18px;
236
+ --cp-size-check: 18px;
237
+ --cp-size-chevron: 14px;
238
+ --cp-size-ask-ai-icon: 18px;
239
+ --cp-size-sidebar-circle: 36px;
240
+ --cp-size-scrollbar: 6px;
241
+
242
+ /* ── Breakpoints ────────────────────────────────────────── */
243
+ --cp-bp-sm: 768px;
244
+ --cp-bp-md: 720px;
245
+ --cp-bp-md-lg: 880px;
246
+ --cp-bp-content: 1184px;
247
+
248
+ /* ── Backdrop blur ──────────────────────────────────────── */
249
+ --cp-blur-base: 8px;
250
+
251
+ /* ── Gradients ──────────────────────────────────────────── */
252
+ /**
253
+ * Brand gradient — used by the ask-ai icon. 135deg sweep from brand-1
254
+ * through brand-3.
255
+ */
256
+ --cp-gradient-brand: linear-gradient(135deg, var(--cp-c-brand-1), var(--cp-c-brand-3));
257
+ /**
258
+ * Hero title gradient — 3-stop sweep from brand-1 through hero-cyan to
259
+ * hero-purple.
260
+ */
261
+ --cp-gradient-hero-title: linear-gradient(
262
+ 120deg,
263
+ var(--cp-c-brand-1) 0%,
264
+ var(--cp-c-gradient-hero-cyan) 50%,
265
+ var(--cp-c-gradient-hero-purple) 100%
266
+ );
267
+
268
+ /* ── Legacy layout aliases ──────────────────────────────── */
269
+ --cp-layout-max-width: 1680px;
270
+ --cp-landing-max-width: 1200px;
271
+ --cp-frame-gutter: 12px;
272
+ --cp-announce-h: 36px;
273
+ }
274
+
275
+ /* ── Typography defaults — match the mockup (14px / 1.5 / Geist) ── */
276
+ html body,
277
+ html .rp-doc,
278
+ html .rspress-doc,
279
+ html .rp-home-hero,
280
+ html .rp-nav {
281
+ font-family: var(--cp-font-family-base);
282
+ }
283
+
284
+ html body {
285
+ font-size: 14px;
286
+ line-height: 1.5;
287
+ }
288
+ }
@@ -0,0 +1,88 @@
1
+ /**
2
+ * VS Code preview mode overrides.
3
+ *
4
+ * Applied when html[data-ciderpress-env="vscode"] is set — injected synchronously
5
+ * by the inline head script before first paint.
6
+ */
7
+
8
+ /* Hide left sidebar and its placeholder */
9
+ html[data-ciderpress-env='vscode'] .rp-doc-layout__sidebar,
10
+ html[data-ciderpress-env='vscode'] .rp-doc-layout__sidebar-placeholder {
11
+ display: none;
12
+ }
13
+
14
+ /* Hide right TOC and its placeholder */
15
+ html[data-ciderpress-env='vscode'] .rp-doc-layout__outline,
16
+ html[data-ciderpress-env='vscode'] .rp-doc-layout__outline-placeholder {
17
+ display: none;
18
+ }
19
+
20
+ /* Center content at 1200px max */
21
+ html[data-ciderpress-env='vscode'] .rp-doc-layout__doc {
22
+ max-width: 1200px;
23
+ margin: 0 auto;
24
+ }
25
+
26
+ /* ── Hide Copy Markdown in VS Code — replaced by Edit button ── */
27
+ html[data-ciderpress-env='vscode'] .rp-llms-copy-button {
28
+ display: none;
29
+ }
30
+
31
+ /* ── Edit source button (inside .rp-llms-container) ────── */
32
+ /* Matches Rspress .rp-llms-button styles exactly */
33
+ .cp-edit-source-btn {
34
+ border: 1px solid var(--rp-c-divider-light);
35
+ background: var(--rp-c-bg);
36
+ height: 36px;
37
+ color: var(--rp-c-text-2);
38
+ -webkit-user-select: none;
39
+ user-select: none;
40
+ white-space: nowrap;
41
+ cursor: pointer;
42
+ border-radius: 8px;
43
+ justify-content: center;
44
+ align-items: center;
45
+ gap: 6px;
46
+ padding: 0 12px;
47
+ font-size: 14px;
48
+ font-weight: 500;
49
+ font-family: var(--rp-font-family-base, system-ui, sans-serif);
50
+ line-height: normal;
51
+ transition:
52
+ background 0.2s,
53
+ border-color 0.2s,
54
+ color 0.2s,
55
+ box-shadow 0.2s,
56
+ transform 0.1s;
57
+ display: inline-flex;
58
+ }
59
+
60
+ .cp-edit-source-btn:hover {
61
+ background: var(--rp-c-bg-soft);
62
+ border-color: var(--rp-c-divider);
63
+ color: var(--rp-c-text-1);
64
+ box-shadow: 0 2px 6px rgb(0 0 0 / 4%);
65
+ }
66
+
67
+ .cp-edit-source-btn:active {
68
+ background: var(--rp-c-bg-soft);
69
+ box-shadow: none;
70
+ }
71
+
72
+ .cp-edit-source-btn svg {
73
+ flex-shrink: 0;
74
+ }
75
+
76
+ /* Hide nav items, social links, hamburger, mobile nav, appearance toggle */
77
+ html[data-ciderpress-env='vscode'] .rp-nav-menu__item,
78
+ html[data-ciderpress-env='vscode'] .rp-social-links,
79
+ html[data-ciderpress-env='vscode'] .rp-nav-hamburger,
80
+ html[data-ciderpress-env='vscode'] .rp-nav-screen,
81
+ html[data-ciderpress-env='vscode'] .rp-nav-screen-menu,
82
+ html[data-ciderpress-env='vscode'] .rp-local-nav,
83
+ html[data-ciderpress-env='vscode'] .rp-switch-appearance,
84
+ html[data-ciderpress-env='vscode'] .rp-nav-screen-appearance,
85
+ html[data-ciderpress-env='vscode'] .rp-doc-layout__menu,
86
+ html[data-ciderpress-env='vscode'] .cp-site-footer {
87
+ display: none;
88
+ }