@master/internal-site 0.0.0-stage → 0.1.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 (687) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +66 -2
  3. package/dist/astro.d.mts +3 -0
  4. package/dist/astro.mjs +510 -0
  5. package/dist/config.d.mts +64 -0
  6. package/dist/config.mjs +10 -0
  7. package/package.json +384 -4
  8. package/src/astro/Page.astro +12 -0
  9. package/src/astro/content-pages.ts +75 -0
  10. package/src/astro/index.ts +124 -0
  11. package/src/astro/module-id.ts +4 -0
  12. package/src/astro/propagated-assets.ts +29 -0
  13. package/src/astro/route-paths.ts +78 -0
  14. package/src/astro/routes.template.ts +110 -0
  15. package/src/astro/server-styles.ts +26 -0
  16. package/src/astro/site-context.ts +27 -0
  17. package/src/astro/source-url.ts +22 -0
  18. package/src/astro/svelte-renderer.ts +45 -0
  19. package/src/astro/svg-markup.ts +23 -0
  20. package/src/benchmarks/BenchmarkBarRows.astro +34 -0
  21. package/src/benchmarks/BenchmarkBars.astro +14 -0
  22. package/src/benchmarks/BenchmarkChart.astro +53 -0
  23. package/src/benchmarks/BenchmarkChartGroup.astro +24 -0
  24. package/src/benchmarks/BenchmarkDataTable.astro +24 -0
  25. package/src/benchmarks/BenchmarkDelta.astro +23 -0
  26. package/src/benchmarks/BenchmarkFigure.astro +30 -0
  27. package/src/benchmarks/BenchmarkMetricTable.astro +38 -0
  28. package/src/benchmarks/BenchmarkMetrics.astro +23 -0
  29. package/src/benchmarks/BenchmarkSampleSummary.astro +30 -0
  30. package/src/benchmarks/BenchmarkScrollRegion.svelte +27 -0
  31. package/src/benchmarks/BenchmarkSource.astro +20 -0
  32. package/src/benchmarks/BenchmarkStackedBars.astro +54 -0
  33. package/src/benchmarks/BenchmarkStatus.astro +16 -0
  34. package/src/benchmarks/types.ts +98 -0
  35. package/src/benchmarks/utils.ts +42 -0
  36. package/src/blog/BlogAuthors.astro +25 -0
  37. package/src/blog/article/BlogArticleContents.svelte +24 -0
  38. package/src/blog/article/BlogArticleEnd.astro +55 -0
  39. package/src/blog/article/BlogArticleMasthead.astro +61 -0
  40. package/src/blog/article/language.ts +29 -0
  41. package/src/blog/article/neighbors.ts +27 -0
  42. package/src/blog/article/title-lines.astro +14 -0
  43. package/src/blog/article/title-parts.ts +9 -0
  44. package/src/components.d.ts +5 -0
  45. package/src/config.ts +66 -0
  46. package/src/css/ButtonPreview.astro +22 -0
  47. package/src/css/ConfiguredExample.astro +15 -0
  48. package/src/css/NamespaceUtilityTable.astro +50 -0
  49. package/src/css/StylesheetExample.astro +15 -0
  50. package/src/css/ThemeNumberVariableTable.astro +57 -0
  51. package/src/css/configured-example.ts +53 -0
  52. package/src/css/foundation-data/elevation/shadow-data.ts +52 -0
  53. package/src/css/foundation-data/sizing/scale-data.ts +37 -0
  54. package/src/css/foundation-data/specimen-content.ts +10 -0
  55. package/src/css/foundation-data/specimens.ts +96 -0
  56. package/src/css/foundation-data/tokens.ts +32 -0
  57. package/src/css/generate-preset-css.ts +12 -0
  58. package/src/css/highlight.ts +34 -0
  59. package/src/css/manifest-utilities.ts +29 -0
  60. package/src/css/markdown.ts +279 -0
  61. package/src/css/preset-css.ts +15 -0
  62. package/src/css/preset-manifest.ts +3 -0
  63. package/src/css/stylesheet-example.ts +26 -0
  64. package/src/css/theme-variables.ts +74 -0
  65. package/src/css/variable-namespace-sources.ts +20 -0
  66. package/src/demo/Demo.svelte +55 -0
  67. package/src/demo/DemoAsset.astro +38 -0
  68. package/src/demo/DemoAxes.svelte +22 -0
  69. package/src/demo/DemoBadge.svelte +18 -0
  70. package/src/demo/DemoCatalog.astro +36 -0
  71. package/src/demo/DemoComparison.svelte +36 -0
  72. package/src/demo/DemoConfiguredExample.astro +48 -0
  73. package/src/demo/DemoContainer.svelte +48 -0
  74. package/src/demo/DemoControls.svelte +16 -0
  75. package/src/demo/DemoCopyButton.svelte +50 -0
  76. package/src/demo/DemoCopyGroup.svelte +15 -0
  77. package/src/demo/DemoExample.astro +27 -0
  78. package/src/demo/DemoFeatureSupport.svelte +18 -0
  79. package/src/demo/DemoGeneratedCSS.svelte +8 -0
  80. package/src/demo/DemoIndex.astro +23 -0
  81. package/src/demo/DemoInstallation.astro +17 -0
  82. package/src/demo/DemoItem.svelte +17 -0
  83. package/src/demo/DemoLabel.svelte +15 -0
  84. package/src/demo/DemoLegend.svelte +15 -0
  85. package/src/demo/DemoMeasure.svelte +28 -0
  86. package/src/demo/DemoMedia.svelte +43 -0
  87. package/src/demo/DemoMotion.svelte +41 -0
  88. package/src/demo/DemoPageViewport.astro +17 -0
  89. package/src/demo/DemoPalette.astro +29 -0
  90. package/src/demo/DemoPaletteGroups.svelte +15 -0
  91. package/src/demo/DemoScrollArea.svelte +15 -0
  92. package/src/demo/DemoStyleComparison.astro +25 -0
  93. package/src/demo/DemoSurface.svelte +15 -0
  94. package/src/demo/DemoSwatch.svelte +19 -0
  95. package/src/demo/DemoThemeComparison.astro +30 -0
  96. package/src/demo/DemoTokenTable.astro +34 -0
  97. package/src/demo/DemoViewTransition.astro +18 -0
  98. package/src/demo/DemoViewport.svelte +324 -0
  99. package/src/demo/DemoWaterfall.astro +30 -0
  100. package/src/demo/FoundationBreakpoint.astro +12 -0
  101. package/src/demo/ProjectStyleExample.astro +13 -0
  102. package/src/demo/copy-feedback.ts +10 -0
  103. package/src/demo/demo-waterfall.ts +17 -0
  104. package/src/demo/drag-readings.ts +20 -0
  105. package/src/demo/foundations/FoundationAxes.astro +12 -0
  106. package/src/demo/foundations/FoundationColorRoles.astro +5 -0
  107. package/src/demo/foundations/FoundationContainerGrid.astro +24 -0
  108. package/src/demo/foundations/FoundationDialog.astro +14 -0
  109. package/src/demo/foundations/FoundationElevation.astro +5 -0
  110. package/src/demo/foundations/FoundationElevationState.astro +5 -0
  111. package/src/demo/foundations/FoundationHue.astro +5 -0
  112. package/src/demo/foundations/FoundationLines.astro +5 -0
  113. package/src/demo/foundations/FoundationMedia.astro +28 -0
  114. package/src/demo/foundations/FoundationMotion.astro +5 -0
  115. package/src/demo/foundations/FoundationPalette.astro +8 -0
  116. package/src/demo/foundations/FoundationRadius.astro +13 -0
  117. package/src/demo/foundations/FoundationShapes.astro +12 -0
  118. package/src/demo/foundations/FoundationShrink.astro +14 -0
  119. package/src/demo/foundations/FoundationSizing.astro +19 -0
  120. package/src/demo/foundations/FoundationSpecimen.astro +20 -0
  121. package/src/demo/foundations/FoundationSurfaces.astro +5 -0
  122. package/src/demo/foundations/FoundationTextHue.astro +5 -0
  123. package/src/demo/foundations/FoundationTextRoles.astro +5 -0
  124. package/src/demo/foundations/FoundationTokens.astro +22 -0
  125. package/src/demo/foundations/FoundationTokensView.astro +65 -0
  126. package/src/demo/foundations/FoundationTransition.astro +5 -0
  127. package/src/demo/foundations/FoundationTypeComparison.astro +12 -0
  128. package/src/demo/foundations/FoundationTypography.astro +5 -0
  129. package/src/demo/foundations/Palette.svelte +37 -0
  130. package/src/demo/foundations/ShadowScaleDemo.astro +22 -0
  131. package/src/demo/illustration-materials.ts +180 -0
  132. package/src/demo/maintenance-example.ts +62 -0
  133. package/src/demo/playback.ts +75 -0
  134. package/src/demo/project-style-examples.ts +128 -0
  135. package/src/demo/reference/alignment.ts +42 -0
  136. package/src/demo/reference/animations.ts +30 -0
  137. package/src/demo/reference/backgrounds.ts +39 -0
  138. package/src/demo/reference/border-paint.ts +31 -0
  139. package/src/demo/reference/clipping.ts +26 -0
  140. package/src/demo/reference/document.ts +55 -0
  141. package/src/demo/reference/edges.ts +40 -0
  142. package/src/demo/reference/effects.ts +27 -0
  143. package/src/demo/reference/flexbox.ts +33 -0
  144. package/src/demo/reference/frame.css +118 -0
  145. package/src/demo/reference/grid.ts +42 -0
  146. package/src/demo/reference/html.ts +40 -0
  147. package/src/demo/reference/interaction.ts +42 -0
  148. package/src/demo/reference/layout-html.ts +10 -0
  149. package/src/demo/reference/layout.ts +102 -0
  150. package/src/demo/reference/media.ts +29 -0
  151. package/src/demo/reference/positioning.ts +90 -0
  152. package/src/demo/reference/scenes.ts +197 -0
  153. package/src/demo/reference/scrolling.ts +66 -0
  154. package/src/demo/reference/shapes.ts +22 -0
  155. package/src/demo/reference/sizing.ts +43 -0
  156. package/src/demo/reference/source.ts +8 -0
  157. package/src/demo/reference/text-effects.ts +37 -0
  158. package/src/demo/reference/text-flow.ts +41 -0
  159. package/src/demo/reference/transforms.ts +26 -0
  160. package/src/demo/reference/transitions.ts +24 -0
  161. package/src/demo/reference/type-specimens.ts +56 -0
  162. package/src/demo/reference/types.ts +30 -0
  163. package/src/demo/reference/typography.ts +32 -0
  164. package/src/demo/specimens/accent-color.json +50 -0
  165. package/src/demo/specimens/align-items.json +56 -0
  166. package/src/demo/specimens/animation-delay.json +55 -0
  167. package/src/demo/specimens/animation-direction.json +49 -0
  168. package/src/demo/specimens/animation-fill-mode.json +55 -0
  169. package/src/demo/specimens/animation-iteration-count.json +55 -0
  170. package/src/demo/specimens/animation-play-state.json +83 -0
  171. package/src/demo/specimens/animation-timing-function.json +48 -0
  172. package/src/demo/specimens/appearance.json +44 -0
  173. package/src/demo/specimens/aspect-ratio.json +28 -0
  174. package/src/demo/specimens/backdrop-filter.json +44 -0
  175. package/src/demo/specimens/background-attachment.json +49 -0
  176. package/src/demo/specimens/background-image.json +25 -0
  177. package/src/demo/specimens/background-origin.json +36 -0
  178. package/src/demo/specimens/background-size.json +29 -0
  179. package/src/demo/specimens/border-collapse.json +45 -0
  180. package/src/demo/specimens/border-color.json +35 -0
  181. package/src/demo/specimens/border-image-repeat.json +50 -0
  182. package/src/demo/specimens/border-image-slice.json +45 -0
  183. package/src/demo/specimens/border-radius.json +30 -0
  184. package/src/demo/specimens/box-decoration-break.json +35 -0
  185. package/src/demo/specimens/box-shadow.json +33 -0
  186. package/src/demo/specimens/clear.json +77 -0
  187. package/src/demo/specimens/clip-path.json +38 -0
  188. package/src/demo/specimens/content.json +27 -0
  189. package/src/demo/specimens/counter-set.json +31 -0
  190. package/src/demo/specimens/fill.json +23 -0
  191. package/src/demo/specimens/filter.json +23 -0
  192. package/src/demo/specimens/flex-direction.json +27 -0
  193. package/src/demo/specimens/flex-grow.json +27 -0
  194. package/src/demo/specimens/font-style.json +23 -0
  195. package/src/demo/specimens/font-variant-numeric.json +28 -0
  196. package/src/demo/specimens/grid-auto-columns.json +29 -0
  197. package/src/demo/specimens/grid-auto-flow.json +37 -0
  198. package/src/demo/specimens/grid-template-areas.json +34 -0
  199. package/src/demo/specimens/grid-template-columns.json +36 -0
  200. package/src/demo/specimens/isolation.json +25 -0
  201. package/src/demo/specimens/justify-content.json +36 -0
  202. package/src/demo/specimens/line-height.json +28 -0
  203. package/src/demo/specimens/list-style-position.json +36 -0
  204. package/src/demo/specimens/mask-image.json +54 -0
  205. package/src/demo/specimens/min-width.json +39 -0
  206. package/src/demo/specimens/mix-blend-mode.json +43 -0
  207. package/src/demo/specimens/object-fit.json +27 -0
  208. package/src/demo/specimens/object-position.json +27 -0
  209. package/src/demo/specimens/opacity.json +37 -0
  210. package/src/demo/specimens/order.json +28 -0
  211. package/src/demo/specimens/overflow-wrap.json +26 -0
  212. package/src/demo/specimens/overflow.json +53 -0
  213. package/src/demo/specimens/overscroll-behavior.json +29 -0
  214. package/src/demo/specimens/padding.json +84 -0
  215. package/src/demo/specimens/place-content.json +31 -0
  216. package/src/demo/specimens/pointer-events.json +46 -0
  217. package/src/demo/specimens/position.json +29 -0
  218. package/src/demo/specimens/resize.json +32 -0
  219. package/src/demo/specimens/screen-readers.json +37 -0
  220. package/src/demo/specimens/scroll-padding.json +29 -0
  221. package/src/demo/specimens/scroll-snap-stop.json +33 -0
  222. package/src/demo/specimens/shape-image-threshold.json +37 -0
  223. package/src/demo/specimens/shape-margin.json +40 -0
  224. package/src/demo/specimens/shape-outside.json +37 -0
  225. package/src/demo/specimens/stroke-width.json +27 -0
  226. package/src/demo/specimens/text-fill-color.json +23 -0
  227. package/src/demo/specimens/text-stroke-width.json +32 -0
  228. package/src/demo/specimens/touch-action.json +45 -0
  229. package/src/demo/specimens/transform-box.json +37 -0
  230. package/src/demo/specimens/transform-origin.json +56 -0
  231. package/src/demo/specimens/transform-style.json +55 -0
  232. package/src/demo/specimens/transform.json +47 -0
  233. package/src/demo/specimens/transition-delay.json +57 -0
  234. package/src/demo/specimens/transition-duration.json +60 -0
  235. package/src/demo/specimens/transition-property.json +60 -0
  236. package/src/demo/specimens/transition-timing-function.json +65 -0
  237. package/src/demo/specimens/user-drag.json +28 -0
  238. package/src/demo/specimens/user-select.json +25 -0
  239. package/src/demo/specimens/vertical-align.json +28 -0
  240. package/src/demo/specimens/width.json +56 -0
  241. package/src/demo/specimens/will-change.json +50 -0
  242. package/src/demo/specimens/writing-mode.json +26 -0
  243. package/src/demo/specimens/z-index.json +35 -0
  244. package/src/demo/style.ts +15 -0
  245. package/src/demo/tone.ts +4 -0
  246. package/src/demo/useDemoViewTransition.svelte.ts +71 -0
  247. package/src/docs-shell/common/i18n.config.d.ts +2 -0
  248. package/src/docs-shell/common/i18n.config.js +13 -0
  249. package/src/docs-shell/common/svgo.config.d.ts +2 -0
  250. package/src/docs-shell/common/svgo.config.js +11 -0
  251. package/src/docs-shell/components/ArticleHeader.astro +65 -0
  252. package/src/docs-shell/components/ArticleTOC.astro +18 -0
  253. package/src/docs-shell/components/Callout.astro +26 -0
  254. package/src/docs-shell/components/Code.astro +25 -0
  255. package/src/docs-shell/components/CodeCopyButton.astro +25 -0
  256. package/src/docs-shell/components/CodeTabBar.astro +40 -0
  257. package/src/docs-shell/components/CodeTabs.astro +53 -0
  258. package/src/docs-shell/components/CodeView.astro +23 -0
  259. package/src/docs-shell/components/Do.astro +5 -0
  260. package/src/docs-shell/components/DoNot.astro +5 -0
  261. package/src/docs-shell/components/DocArticle.astro +14 -0
  262. package/src/docs-shell/components/DocHeader.svelte +87 -0
  263. package/src/docs-shell/components/DocHeading.astro +28 -0
  264. package/src/docs-shell/components/DocMain.astro +19 -0
  265. package/src/docs-shell/components/DocMenuButton.svelte +95 -0
  266. package/src/docs-shell/components/DocSidebar.svelte +62 -0
  267. package/src/docs-shell/components/DocVersionSelect.svelte +22 -0
  268. package/src/docs-shell/components/DocWrapper.astro +11 -0
  269. package/src/docs-shell/components/DocumentAPIIndex.astro +24 -0
  270. package/src/docs-shell/components/DocumentChoices.astro +24 -0
  271. package/src/docs-shell/components/DocumentCodeExample.astro +20 -0
  272. package/src/docs-shell/components/DocumentCodeExampleView.astro +35 -0
  273. package/src/docs-shell/components/DocumentCodeTable.astro +19 -0
  274. package/src/docs-shell/components/DocumentComparison.astro +7 -0
  275. package/src/docs-shell/components/DocumentCopyButton.svelte +41 -0
  276. package/src/docs-shell/components/DocumentDeclaration.astro +17 -0
  277. package/src/docs-shell/components/DocumentDeclarationView.astro +12 -0
  278. package/src/docs-shell/components/DocumentDisclosure.astro +14 -0
  279. package/src/docs-shell/components/DocumentFileTree.astro +34 -0
  280. package/src/docs-shell/components/DocumentFlow.astro +27 -0
  281. package/src/docs-shell/components/DocumentIdentifier.astro +14 -0
  282. package/src/docs-shell/components/DocumentIllustration.astro +46 -0
  283. package/src/docs-shell/components/DocumentKeyList.astro +22 -0
  284. package/src/docs-shell/components/DocumentNamespaceTable.astro +20 -0
  285. package/src/docs-shell/components/DocumentOptionEntry.astro +15 -0
  286. package/src/docs-shell/components/DocumentOptionList.astro +11 -0
  287. package/src/docs-shell/components/DocumentOptions.astro +23 -0
  288. package/src/docs-shell/components/DocumentParameters.astro +30 -0
  289. package/src/docs-shell/components/DocumentPrompt.astro +16 -0
  290. package/src/docs-shell/components/DocumentValueList.astro +25 -0
  291. package/src/docs-shell/components/DocumentationIndex.svelte +144 -0
  292. package/src/docs-shell/components/Dropped.astro +21 -0
  293. package/src/docs-shell/components/ExpandContent.svelte +21 -0
  294. package/src/docs-shell/components/ExplorerView.astro +37 -0
  295. package/src/docs-shell/components/FileIcon.astro +123 -0
  296. package/src/docs-shell/components/Footer.svelte +80 -0
  297. package/src/docs-shell/components/GeneratedCSS.astro +8 -0
  298. package/src/docs-shell/components/Header.svelte +121 -0
  299. package/src/docs-shell/components/HeaderIcon.astro +14 -0
  300. package/src/docs-shell/components/HeaderNav.svelte +18 -0
  301. package/src/docs-shell/components/Image.svelte +56 -0
  302. package/src/docs-shell/components/Info.astro +5 -0
  303. package/src/docs-shell/components/InlineCode.astro +30 -0
  304. package/src/docs-shell/components/InteractingIndicator.astro +19 -0
  305. package/src/docs-shell/components/LanguageButton.svelte +18 -0
  306. package/src/docs-shell/components/LanguageSelect.svelte +44 -0
  307. package/src/docs-shell/components/Link.svelte +127 -0
  308. package/src/docs-shell/components/ModeImg.astro +11 -0
  309. package/src/docs-shell/components/NotFound.astro +21 -0
  310. package/src/docs-shell/components/OverviewButtons.astro +36 -0
  311. package/src/docs-shell/components/PMAction.astro +25 -0
  312. package/src/docs-shell/components/PackageBadges.astro +39 -0
  313. package/src/docs-shell/components/PageContent.svelte +38 -0
  314. package/src/docs-shell/components/PageContentBootstrap.astro +13 -0
  315. package/src/docs-shell/components/PageContentDisclosure.astro +25 -0
  316. package/src/docs-shell/components/PageContentList.svelte +70 -0
  317. package/src/docs-shell/components/PageContentProvider.svelte +15 -0
  318. package/src/docs-shell/components/PageContentTitle.svelte +16 -0
  319. package/src/docs-shell/components/PageNavs.astro +40 -0
  320. package/src/docs-shell/components/PreparedCodeView.astro +12 -0
  321. package/src/docs-shell/components/RenderNode.astro +16 -0
  322. package/src/docs-shell/components/RouteLayers.astro +17 -0
  323. package/src/docs-shell/components/SearchButton.svelte +31 -0
  324. package/src/docs-shell/components/SearchDialog.svelte +174 -0
  325. package/src/docs-shell/components/Segments.svelte +62 -0
  326. package/src/docs-shell/components/Step.astro +13 -0
  327. package/src/docs-shell/components/StepL.astro +10 -0
  328. package/src/docs-shell/components/StepR.astro +10 -0
  329. package/src/docs-shell/components/StepSection.astro +12 -0
  330. package/src/docs-shell/components/Tab.astro +8 -0
  331. package/src/docs-shell/components/Tabs.astro +10 -0
  332. package/src/docs-shell/components/ThemeIcon.astro +19 -0
  333. package/src/docs-shell/components/ThemeSelect.svelte +20 -0
  334. package/src/docs-shell/components/TimeAgo.svelte +32 -0
  335. package/src/docs-shell/components/Translate.astro +14 -0
  336. package/src/docs-shell/components/Warn.astro +5 -0
  337. package/src/docs-shell/components/code-props.ts +28 -0
  338. package/src/docs-shell/components/document-types.ts +119 -0
  339. package/src/docs-shell/components/markdown/Anchor.astro +5 -0
  340. package/src/docs-shell/components/markdown/Heading2.astro +5 -0
  341. package/src/docs-shell/components/markdown/Heading3.astro +5 -0
  342. package/src/docs-shell/components/markdown/Table.astro +6 -0
  343. package/src/docs-shell/components/markdown-components.ts +36 -0
  344. package/src/docs-shell/components/page-content-bootstrap.ts +115 -0
  345. package/src/docs-shell/components/page-content.svelte.ts +125 -0
  346. package/src/docs-shell/contexts/search.ts +18 -0
  347. package/src/docs-shell/contexts/theme-mode.svelte.ts +61 -0
  348. package/src/docs-shell/data/authors.ts +17 -0
  349. package/src/docs-shell/data/base-colors.ts +29 -0
  350. package/src/docs-shell/data/brands.ts +79 -0
  351. package/src/docs-shell/data/color-names.ts +1 -0
  352. package/src/docs-shell/data/color-palette.ts +50 -0
  353. package/src/docs-shell/data/colors.ts +1 -0
  354. package/src/docs-shell/factories/Page.astro +35 -0
  355. package/src/docs-shell/factories/create-page.ts +31 -0
  356. package/src/docs-shell/layouts/BlogArticle.astro +53 -0
  357. package/src/docs-shell/layouts/Doc.astro +41 -0
  358. package/src/docs-shell/remark/markdown-components.d.ts +2 -0
  359. package/src/docs-shell/remark/markdown-components.js +101 -0
  360. package/src/docs-shell/remark/slug-and-toc.d.ts +2 -0
  361. package/src/docs-shell/remark/slug-and-toc.js +53 -0
  362. package/src/docs-shell/scripts/code-tabs-bootstrap.ts +34 -0
  363. package/src/docs-shell/scripts/code.ts +124 -0
  364. package/src/docs-shell/scripts/document-anchor.ts +57 -0
  365. package/src/docs-shell/scripts/document.ts +47 -0
  366. package/src/docs-shell/site.ts +67 -0
  367. package/src/docs-shell/types/IllustrationImages.ts +2 -0
  368. package/src/docs-shell/types/Metadata.ts +17 -0
  369. package/src/docs-shell/types/Props.ts +9 -0
  370. package/src/docs-shell/types/StaticImage.ts +6 -0
  371. package/src/docs-shell/uses/use-selected-preview-syntax.svelte.ts +16 -0
  372. package/src/docs-shell/utils/anchor.ts +24 -0
  373. package/src/docs-shell/utils/beautify-css.ts +14 -0
  374. package/src/docs-shell/utils/beautify-html.ts +12 -0
  375. package/src/docs-shell/utils/beautify-js.ts +9 -0
  376. package/src/docs-shell/utils/create-highlighter.ts +50 -0
  377. package/src/docs-shell/utils/css-modern-grammar.ts +339 -0
  378. package/src/docs-shell/utils/documentation-search.ts +68 -0
  379. package/src/docs-shell/utils/generate-metadata.ts +60 -0
  380. package/src/docs-shell/utils/group-page-content.ts +10 -0
  381. package/src/docs-shell/utils/head.ts +72 -0
  382. package/src/docs-shell/utils/highlight-code-core.ts +146 -0
  383. package/src/docs-shell/utils/highlight-code.ts +1 -0
  384. package/src/docs-shell/utils/highlighted-code-text.ts +27 -0
  385. package/src/docs-shell/utils/i18n-pathname.ts +98 -0
  386. package/src/docs-shell/utils/i18n.ts +12 -0
  387. package/src/docs-shell/utils/is-date-within-seven-days.ts +16 -0
  388. package/src/docs-shell/utils/isBrowser.ts +1 -0
  389. package/src/docs-shell/utils/isInteractOutside.ts +16 -0
  390. package/src/docs-shell/utils/markdown-tree.ts +22 -0
  391. package/src/docs-shell/utils/metadata.ts +25 -0
  392. package/src/docs-shell/utils/prepared-code.ts +21 -0
  393. package/src/docs-shell/utils/resolve-heading.d.ts +1 -0
  394. package/src/docs-shell/utils/resolve-heading.js +19 -0
  395. package/src/docs-shell/utils/search-pages.ts +271 -0
  396. package/src/docs-shell/utils/slot-text.ts +15 -0
  397. package/src/docs-shell/utils/snackbar.ts +39 -0
  398. package/src/docs-shell/utils/syntax-theme.ts +53 -0
  399. package/src/docs-shell/utils/transformer-notation-word-mark.ts +146 -0
  400. package/src/docs-shell/utils/unique-id.ts +11 -0
  401. package/src/examples/article-transitions/page.astro +7 -0
  402. package/src/examples/article-transitions/transitions.css +10 -0
  403. package/src/examples/components/ArticleTransitionScene.svelte +83 -0
  404. package/src/examples/components/ViewTransitionScene.svelte +31 -0
  405. package/src/examples/images/article-aurora.jpg +0 -0
  406. package/src/examples/images/article-coast.jpg +0 -0
  407. package/src/examples/images/article-grid.jpg +0 -0
  408. package/src/examples/images/article-studio.jpg +0 -0
  409. package/src/examples/layout-system/page.astro +59 -0
  410. package/src/examples/scene.css +3 -0
  411. package/src/examples/view-transitions/page.astro +7 -0
  412. package/src/examples/view-transitions/transitions.css +9 -0
  413. package/src/home/HeroCanvas.svelte +617 -0
  414. package/src/home/HomeAction.astro +17 -0
  415. package/src/home/HomeBentoFrame.astro +9 -0
  416. package/src/home/HomeBentoGrid.astro +9 -0
  417. package/src/home/HomeCompactIcon.astro +15 -0
  418. package/src/home/HomeFooter.svelte +63 -0
  419. package/src/home/HomeIllustration.astro +17 -0
  420. package/src/home/HomeIllustrationArt.svelte +15 -0
  421. package/src/home/HomeLamp.svelte +18 -0
  422. package/src/home/design.css +532 -0
  423. package/src/home/footer.css +225 -0
  424. package/src/home/hero-shaders.ts +460 -0
  425. package/src/home/hero-title-mask.ts +175 -0
  426. package/src/home/hero.css +547 -0
  427. package/src/home/home-illustration.ts +5 -0
  428. package/src/home/home-lamp.ts +225 -0
  429. package/src/home/home.css +1077 -0
  430. package/src/home/icons/agent-check-preview-apply.svg +24 -0
  431. package/src/home/icons/agent-clients.svg +26 -0
  432. package/src/home/icons/agent-project-tools.svg +23 -0
  433. package/src/home/icons/artwork/agent-check-preview-apply-dark.webp +0 -0
  434. package/src/home/icons/artwork/agent-check-preview-apply-light.webp +0 -0
  435. package/src/home/icons/artwork/agent-clients-dark.webp +0 -0
  436. package/src/home/icons/artwork/agent-clients-light.webp +0 -0
  437. package/src/home/icons/artwork/agent-edit-file-dark.webp +0 -0
  438. package/src/home/icons/artwork/agent-edit-file-light.webp +0 -0
  439. package/src/home/icons/artwork/agent-project-tools-dark.webp +0 -0
  440. package/src/home/icons/artwork/agent-project-tools-light.webp +0 -0
  441. package/src/home/icons/artwork/design-cascade-layers-dark.webp +0 -0
  442. package/src/home/icons/artwork/design-cascade-layers-light.webp +0 -0
  443. package/src/home/icons/artwork/design-layout-motion-dark.webp +0 -0
  444. package/src/home/icons/artwork/design-layout-motion-light.webp +0 -0
  445. package/src/home/icons/artwork/design-p3-gamut-dark.webp +0 -0
  446. package/src/home/icons/artwork/design-p3-gamut-light.webp +0 -0
  447. package/src/home/icons/artwork/design-theme-modes-dark.webp +0 -0
  448. package/src/home/icons/artwork/design-theme-modes-light.webp +0 -0
  449. package/src/home/icons/artwork/design-theme-tokens-dark.webp +0 -0
  450. package/src/home/icons/artwork/design-theme-tokens-light.webp +0 -0
  451. package/src/home/icons/artwork/editor-color-tools-dark.webp +0 -0
  452. package/src/home/icons/artwork/editor-color-tools-light.webp +0 -0
  453. package/src/home/icons/artwork/editor-focused-highlighting-dark.webp +0 -0
  454. package/src/home/icons/artwork/editor-focused-highlighting-light.webp +0 -0
  455. package/src/home/icons/artwork/editor-hover-inspection-dark.webp +0 -0
  456. package/src/home/icons/artwork/editor-hover-inspection-light.webp +0 -0
  457. package/src/home/icons/artwork/editor-manifest-completions-dark.webp +0 -0
  458. package/src/home/icons/artwork/editor-manifest-completions-light.webp +0 -0
  459. package/src/home/icons/artwork/lint-class-order-dark.webp +0 -0
  460. package/src/home/icons/artwork/lint-class-order-light.webp +0 -0
  461. package/src/home/icons/artwork/lint-conflicting-classes-dark.webp +0 -0
  462. package/src/home/icons/artwork/lint-conflicting-classes-light.webp +0 -0
  463. package/src/home/icons/artwork/lint-fix-previews-dark.webp +0 -0
  464. package/src/home/icons/artwork/lint-fix-previews-light.webp +0 -0
  465. package/src/home/icons/artwork/lint-invalid-classes-dark.webp +0 -0
  466. package/src/home/icons/artwork/lint-invalid-classes-light.webp +0 -0
  467. package/src/home/icons/artwork/lint-strict-vocabulary-dark.webp +0 -0
  468. package/src/home/icons/artwork/lint-strict-vocabulary-light.webp +0 -0
  469. package/src/home/icons/artwork/lint-theme-tokens-dark.webp +0 -0
  470. package/src/home/icons/artwork/lint-theme-tokens-light.webp +0 -0
  471. package/src/home/icons/artwork/mcp-apply-preview-dark.webp +0 -0
  472. package/src/home/icons/artwork/mcp-apply-preview-light.webp +0 -0
  473. package/src/home/icons/artwork/mcp-css-compare-dark.webp +0 -0
  474. package/src/home/icons/artwork/mcp-css-compare-light.webp +0 -0
  475. package/src/home/icons/artwork/mcp-inspect-class-dark.webp +0 -0
  476. package/src/home/icons/artwork/mcp-inspect-class-light.webp +0 -0
  477. package/src/home/icons/artwork/mcp-lint-project-dark.webp +0 -0
  478. package/src/home/icons/artwork/mcp-lint-project-light.webp +0 -0
  479. package/src/home/icons/artwork/mcp-manifest-query-dark.webp +0 -0
  480. package/src/home/icons/artwork/mcp-manifest-query-light.webp +0 -0
  481. package/src/home/icons/artwork/mcp-preview-fixes-dark.webp +0 -0
  482. package/src/home/icons/artwork/mcp-preview-fixes-light.webp +0 -0
  483. package/src/home/icons/artwork/mcp-render-css-dark.webp +0 -0
  484. package/src/home/icons/artwork/mcp-render-css-light.webp +0 -0
  485. package/src/home/icons/artwork/mcp-scan-project-dark.webp +0 -0
  486. package/src/home/icons/artwork/mcp-scan-project-light.webp +0 -0
  487. package/src/home/icons/artwork/mcp-trace-class-dark.webp +0 -0
  488. package/src/home/icons/artwork/mcp-trace-class-light.webp +0 -0
  489. package/src/home/icons/artwork/render-progressive-dark.webp +0 -0
  490. package/src/home/icons/artwork/render-progressive-light.webp +0 -0
  491. package/src/home/icons/artwork/render-runtime-dark.webp +0 -0
  492. package/src/home/icons/artwork/render-runtime-light.webp +0 -0
  493. package/src/home/icons/artwork/render-static-dark.webp +0 -0
  494. package/src/home/icons/artwork/render-static-light.webp +0 -0
  495. package/src/home/icons/artwork/section-ai-agents-dark.webp +0 -0
  496. package/src/home/icons/artwork/section-ai-agents-light.webp +0 -0
  497. package/src/home/icons/artwork/section-css-size-dark.webp +0 -0
  498. package/src/home/icons/artwork/section-css-size-light.webp +0 -0
  499. package/src/home/icons/artwork/section-design-system-dark.webp +0 -0
  500. package/src/home/icons/artwork/section-design-system-light.webp +0 -0
  501. package/src/home/icons/artwork/section-editor-dark.webp +0 -0
  502. package/src/home/icons/artwork/section-editor-light.webp +0 -0
  503. package/src/home/icons/artwork/section-lint-dark.webp +0 -0
  504. package/src/home/icons/artwork/section-lint-light.webp +0 -0
  505. package/src/home/icons/artwork/section-rendering-dark.webp +0 -0
  506. package/src/home/icons/artwork/section-rendering-light.webp +0 -0
  507. package/src/home/icons/artwork/section-workflow-dark.webp +0 -0
  508. package/src/home/icons/artwork/section-workflow-light.webp +0 -0
  509. package/src/home/icons/artwork/source.json +303 -0
  510. package/src/home/icons/artwork/workflow-integrations-dark.webp +0 -0
  511. package/src/home/icons/artwork/workflow-integrations-light.webp +0 -0
  512. package/src/home/icons/artwork/workflow-monorepo-dark.webp +0 -0
  513. package/src/home/icons/artwork/workflow-monorepo-light.webp +0 -0
  514. package/src/home/icons/artwork/workflow-route-styles-dark.webp +0 -0
  515. package/src/home/icons/artwork/workflow-route-styles-light.webp +0 -0
  516. package/src/home/icons/artwork/workflow-trace-change-dark.webp +0 -0
  517. package/src/home/icons/artwork/workflow-trace-change-light.webp +0 -0
  518. package/src/home/icons/artwork.css +4 -0
  519. package/src/home/icons/artwork.ts +131 -0
  520. package/src/home/icons/catalog.ts +381 -0
  521. package/src/home/icons/design-cascade-layers.svg +32 -0
  522. package/src/home/icons/design-layout-motion.svg +16 -0
  523. package/src/home/icons/design-p3-gamut.svg +12 -0
  524. package/src/home/icons/design-theme-modes.svg +12 -0
  525. package/src/home/icons/design-theme-tokens.svg +20 -0
  526. package/src/home/icons/editor-color-tools.svg +18 -0
  527. package/src/home/icons/editor-focused-highlighting.svg +15 -0
  528. package/src/home/icons/editor-hover-inspection.svg +19 -0
  529. package/src/home/icons/editor-manifest-completions.svg +24 -0
  530. package/src/home/icons/lint-class-order-compact.svg +15 -0
  531. package/src/home/icons/lint-class-order.svg +28 -0
  532. package/src/home/icons/lint-conflicting-classes-compact.svg +11 -0
  533. package/src/home/icons/lint-conflicting-classes.svg +24 -0
  534. package/src/home/icons/lint-fix-previews-compact.svg +9 -0
  535. package/src/home/icons/lint-fix-previews.svg +19 -0
  536. package/src/home/icons/lint-invalid-classes-compact.svg +7 -0
  537. package/src/home/icons/lint-invalid-classes.svg +17 -0
  538. package/src/home/icons/lint-strict-vocabulary-compact.svg +8 -0
  539. package/src/home/icons/lint-strict-vocabulary.svg +16 -0
  540. package/src/home/icons/lint-theme-tokens-compact.svg +7 -0
  541. package/src/home/icons/lint-theme-tokens.svg +14 -0
  542. package/src/home/icons/mcp-apply-preview-compact.svg +9 -0
  543. package/src/home/icons/mcp-apply-preview.svg +18 -0
  544. package/src/home/icons/mcp-css-compare-compact.svg +9 -0
  545. package/src/home/icons/mcp-css-compare.svg +20 -0
  546. package/src/home/icons/mcp-inspect-class-compact.svg +9 -0
  547. package/src/home/icons/mcp-inspect-class.svg +18 -0
  548. package/src/home/icons/mcp-lint-project-compact.svg +14 -0
  549. package/src/home/icons/mcp-lint-project.svg +30 -0
  550. package/src/home/icons/mcp-manifest-query-compact.svg +14 -0
  551. package/src/home/icons/mcp-manifest-query.svg +27 -0
  552. package/src/home/icons/mcp-preview-fixes-compact.svg +9 -0
  553. package/src/home/icons/mcp-preview-fixes.svg +15 -0
  554. package/src/home/icons/mcp-render-css-compact.svg +13 -0
  555. package/src/home/icons/mcp-render-css.svg +30 -0
  556. package/src/home/icons/mcp-scan-project-compact.svg +7 -0
  557. package/src/home/icons/mcp-scan-project.svg +13 -0
  558. package/src/home/icons/mcp-trace-class-compact.svg +11 -0
  559. package/src/home/icons/mcp-trace-class.svg +24 -0
  560. package/src/home/icons/render-progressive.svg +17 -0
  561. package/src/home/icons/render-runtime.svg +23 -0
  562. package/src/home/icons/render-static.svg +29 -0
  563. package/src/home/icons/section-ai-agents.svg +24 -0
  564. package/src/home/icons/section-css-size.svg +13 -0
  565. package/src/home/icons/section-design-system.svg +24 -0
  566. package/src/home/icons/section-editor.svg +14 -0
  567. package/src/home/icons/section-lint.svg +14 -0
  568. package/src/home/icons/section-rendering.svg +30 -0
  569. package/src/home/icons/section-workflow.svg +22 -0
  570. package/src/home/icons/workflow-integrations.svg +15 -0
  571. package/src/home/icons/workflow-monorepo.svg +27 -0
  572. package/src/home/icons/workflow-route-styles.svg +24 -0
  573. package/src/home/icons/workflow-trace-change.svg +21 -0
  574. package/src/layouts/Document.astro +71 -0
  575. package/src/public/brand/v2/logo/mark/master-mark-small-on-dark.svg +1 -0
  576. package/src/public/brand/v2/logo/master-css/master-css-horizontal-on-dark.svg +1 -0
  577. package/src/public/brand/v2/logo/master-css/master-css-horizontal-on-light.svg +1 -0
  578. package/src/public/demo/border-grid.svg +7 -0
  579. package/src/public/demo/landscape.svg +1 -0
  580. package/src/public/demo/marker.svg +1 -0
  581. package/src/public/demo/mask.svg +1 -0
  582. package/src/public/fonts/Geist-Medium.ttf +0 -0
  583. package/src/public/fonts/Geist-Regular.ttf +0 -0
  584. package/src/public/fonts/GeistVariable.woff2 +0 -0
  585. package/src/public/fonts/IBMPlexMono-Bold.woff2 +0 -0
  586. package/src/public/fonts/IBMPlexMono-Medium.woff2 +0 -0
  587. package/src/public/fonts/IBMPlexMono-Regular.woff2 +0 -0
  588. package/src/public/fonts/IBMPlexMono-SemiBold.woff2 +0 -0
  589. package/src/public/fonts/index.css +40 -0
  590. package/src/public/icons/csharp.svg +1 -0
  591. package/src/public/icons/css.svg +1 -0
  592. package/src/public/icons/eslint.svg +1 -0
  593. package/src/public/icons/folder.svg +12 -0
  594. package/src/public/icons/html.svg +1 -0
  595. package/src/public/icons/php.svg +1 -0
  596. package/src/public/icons/sass.svg +1 -0
  597. package/src/public/icons/storybook.svg +1 -0
  598. package/src/public/icons/visualstudiocode.svg +41 -0
  599. package/src/public/images/authors/aron.jpg +0 -0
  600. package/src/public/images/authors/benseage.jpg +0 -0
  601. package/src/public/images/authors/joy.jpg +0 -0
  602. package/src/public/images/authors/lola.jpg +0 -0
  603. package/src/public/images/authors/miles.jpg +0 -0
  604. package/src/public/images/bootstrap.svg +23 -0
  605. package/src/public/images/build-tools/rsbuild.svg +1 -0
  606. package/src/public/images/build-tools/rspack.svg +1 -0
  607. package/src/public/images/build-tools/vite.svg +15 -0
  608. package/src/public/images/build-tools/webpack.svg +10 -0
  609. package/src/public/images/cdns/esm-sh.svg +1 -0
  610. package/src/public/images/chevron-left.svg +4 -0
  611. package/src/public/images/cover-bg.jpg +0 -0
  612. package/src/public/images/emotion.svg +1 -0
  613. package/src/public/images/frameworks/angular.svg +29 -0
  614. package/src/public/images/frameworks/astro.svg +4 -0
  615. package/src/public/images/frameworks/blazor.svg +22 -0
  616. package/src/public/images/frameworks/express.svg +1 -0
  617. package/src/public/images/frameworks/laravel.svg +8 -0
  618. package/src/public/images/frameworks/line-liff.svg +1 -0
  619. package/src/public/images/frameworks/lit.svg +1 -0
  620. package/src/public/images/frameworks/nextjs.svg +16 -0
  621. package/src/public/images/frameworks/nuxtjs.svg +3 -0
  622. package/src/public/images/frameworks/rails.svg +1 -0
  623. package/src/public/images/frameworks/react.svg +8 -0
  624. package/src/public/images/frameworks/remix.svg +5 -0
  625. package/src/public/images/frameworks/shopify.svg +1 -0
  626. package/src/public/images/frameworks/svelte.svg +6 -0
  627. package/src/public/images/frameworks/tanstack.svg +1 -0
  628. package/src/public/images/frameworks/vuejs.svg +11 -0
  629. package/src/public/images/frameworks/wordpress.svg +1 -0
  630. package/src/public/images/mui.svg +1 -0
  631. package/src/public/images/styled-components.svg +4 -0
  632. package/src/public/images/tailwindcss.svg +1 -0
  633. package/src/scripts/bundler-imports.ts +25 -0
  634. package/src/scripts/static-social.ts +333 -0
  635. package/src/scripts/write-if-changed.ts +26 -0
  636. package/src/sections/blog.astro +11 -0
  637. package/src/sections/design-system.astro +14 -0
  638. package/src/sections/document.astro +8 -0
  639. package/src/sections/examples.astro +6 -0
  640. package/src/sections/guide.astro +26 -0
  641. package/src/sections/home.astro +7 -0
  642. package/src/sections/page.astro +12 -0
  643. package/src/styles/base.css +57 -0
  644. package/src/styles/benchmarks.css +20 -0
  645. package/src/styles/blog-article.css +670 -0
  646. package/src/styles/blog-materials.css +399 -0
  647. package/src/styles/blog.css +568 -0
  648. package/src/styles/demo.css +30 -0
  649. package/src/styles/design-system.css +15 -0
  650. package/src/styles/docs-shell/code.css +61 -0
  651. package/src/styles/docs-shell/docs.css +79 -0
  652. package/src/styles/docs-shell/documentation-search.css +42 -0
  653. package/src/styles/docs-shell/footer.css +38 -0
  654. package/src/styles/docs-shell/header.css +69 -0
  655. package/src/styles/docs-shell/materials.css +25 -0
  656. package/src/styles/docs-shell/menu.css +19 -0
  657. package/src/styles/docs-shell/not-found.css +10 -0
  658. package/src/styles/docs-shell/page-content.css +37 -0
  659. package/src/styles/docs-shell/prose.css +89 -0
  660. package/src/styles/docs-shell/segments.css +13 -0
  661. package/src/styles/docs-shell/steps.css +39 -0
  662. package/src/styles/docs-shell/syntax-theme.css +18 -0
  663. package/src/styles/docs-shell/theme.css +68 -0
  664. package/src/styles/docs-shell/wrapper.css +10 -0
  665. package/src/styles/document-comparison.css +7 -0
  666. package/src/styles/documentation-illustration.css +34 -0
  667. package/src/styles/documentation-index.css +100 -0
  668. package/src/styles/documents.css +4 -0
  669. package/src/styles/documents.ts +2 -0
  670. package/src/styles/foundation.css +4 -0
  671. package/src/styles/globals.css +2 -0
  672. package/src/styles/interface.css +3 -0
  673. package/src/styles/interface.ts +2 -0
  674. package/src/styles/site.ts +2 -0
  675. package/src/styles/system/DESIGN.md +108 -0
  676. package/src/styles/system/buttons.css +51 -0
  677. package/src/styles/system/code.css +85 -0
  678. package/src/styles/system/controls.css +110 -0
  679. package/src/styles/system/data.css +134 -0
  680. package/src/styles/system/mixins.css +7 -0
  681. package/src/styles/system/prose.css +75 -0
  682. package/src/styles/system/shell.css +102 -0
  683. package/src/styles/system/specimens.css +98 -0
  684. package/src/styles/system/surfaces.css +104 -0
  685. package/src/styles/system/tokens.css +136 -0
  686. package/src/utils/cloudflare-image-loader.js +85 -0
  687. package/src/virtual.d.ts +36 -0
@@ -0,0 +1,1077 @@
1
+ @layer components {
2
+ .home-page {
3
+ /* Matches `.app-wrapper`, so the guides land just outside the content edges. */
4
+ --home-gutter: 1.25rem;
5
+ --home-column: min(100%, 100rem);
6
+ --home-rail: calc((100% - var(--home-column)) / 2 + var(--home-gutter) - 1.25rem);
7
+
8
+ @media (--sm) {
9
+ --home-gutter: 2.5rem;
10
+ }
11
+ }
12
+
13
+ .home-section {
14
+ position: relative;
15
+ isolation: isolate;
16
+ padding-block: var(--home-section-space);
17
+ }
18
+
19
+ /*
20
+ * Drafting guides: rails 20px outside the content edges, a rule between sections and a cross where
21
+ * they meet. Outside each rail a ruler ticks every 16px, longer every 128px, starting at the section's
22
+ * top so its first long tick meets the cross. Tick colors are opaque mixes, so a long tick drawn over
23
+ * a short one reads as one line.
24
+ */
25
+ @media (--md) {
26
+ :is(.home-hero, .home-section)::after {
27
+ --home-tick: color-mix(in oklab, var(--home-text) 9%, var(--home-ground));
28
+ --home-tick-major: color-mix(in oklab, var(--home-text) 20%, var(--home-ground));
29
+ position: absolute;
30
+ inset-block: 0;
31
+ left: calc(var(--home-rail) - 0.75rem);
32
+ right: calc(var(--home-rail) - 0.75rem);
33
+ z-index: -1;
34
+ background:
35
+ linear-gradient(var(--home-guide), var(--home-guide)) left 0.75rem top 0 / 1px 100% no-repeat,
36
+ linear-gradient(var(--home-guide), var(--home-guide)) right 0.75rem top 0 / 1px 100% no-repeat;
37
+ pointer-events: none;
38
+ content: '';
39
+ }
40
+
41
+ .home-section::after {
42
+ background:
43
+ linear-gradient(var(--home-tick-major) 0 1px, transparent 1px) left 0 top 0 / 0.75rem 8rem repeat-y,
44
+ linear-gradient(var(--home-tick-major) 0 1px, transparent 1px) right 0 top 0 / 0.75rem 8rem repeat-y,
45
+ linear-gradient(var(--home-tick) 0 1px, transparent 1px) left 0.375rem top 0 / 0.375rem 1rem repeat-y,
46
+ linear-gradient(var(--home-tick) 0 1px, transparent 1px) right 0.375rem top 0 / 0.375rem 1rem repeat-y,
47
+ linear-gradient(var(--home-guide), var(--home-guide)) left 0.75rem top 0 / 1px 100% no-repeat,
48
+ linear-gradient(var(--home-guide), var(--home-guide)) right 0.75rem top 0 / 1px 100% no-repeat;
49
+ }
50
+
51
+ /* The fixed header (60px) sits over the top of the hero; the rails start below it. */
52
+ .home-hero::after {
53
+ top: 3.75rem;
54
+ mask-image: linear-gradient(transparent, black 6rem);
55
+ }
56
+
57
+ .home-section::before {
58
+ --home-cross: var(--home-rule-strong);
59
+ position: absolute;
60
+ top: -5px;
61
+ left: calc(var(--home-rail) - 5px);
62
+ right: calc(var(--home-rail) - 5px);
63
+ height: 11px;
64
+ background:
65
+ linear-gradient(var(--home-cross), var(--home-cross)) 0 5px / 11px 1px no-repeat,
66
+ linear-gradient(var(--home-cross), var(--home-cross)) 5px 0 / 1px 11px no-repeat,
67
+ linear-gradient(var(--home-cross), var(--home-cross)) 100% 5px / 11px 1px no-repeat,
68
+ linear-gradient(var(--home-cross), var(--home-cross)) calc(100% - 5px) 0 / 1px 11px no-repeat;
69
+ pointer-events: none;
70
+ content: '';
71
+ }
72
+
73
+ .home-section {
74
+ border-top: 1px solid var(--home-guide);
75
+ }
76
+ }
77
+
78
+ /* The homepage's header sits on the content column, so the logo and the last icon share the sections' edges. */
79
+ .home-header > * {
80
+ /* The sections' 100rem wrapper minus its 2.5rem gutters: where the column is wide enough to matter. */
81
+ max-width: 95rem;
82
+ }
83
+
84
+ .home-header[data-background="transparent"] :is(.ui-header-nav, .ui-header-end > :not(a[aria-label="GitHub"])) {
85
+ display: none;
86
+ }
87
+
88
+ /* The compact header keeps the brand centred: GitHub takes the search button's end, as wide as the menu button. */
89
+ .home-header[data-background="transparent"] .ui-header-end {
90
+ justify-content: flex-end;
91
+ width: 2.375rem;
92
+
93
+ @media (--md) {
94
+ width: auto;
95
+ }
96
+ }
97
+
98
+ .home-header[data-background="transparent"] .ui-header-end > a[aria-label="GitHub"] {
99
+ display: flex;
100
+ margin-left: 0;
101
+
102
+ @media (--md) {
103
+ margin-left: auto;
104
+ margin-right: -0.188rem;
105
+ }
106
+ }
107
+
108
+ .home-section-wrap {
109
+ position: relative;
110
+ max-width: 100rem;
111
+ }
112
+
113
+ /* A hatched fill for reserved or inactive space inside a figure: an empty slot, a margin, a gap. */
114
+ .home-hatch {
115
+ background-image: var(--home-hatch);
116
+ background-size: var(--home-hatch-size) var(--home-hatch-size);
117
+ }
118
+
119
+ /*
120
+ * Artboard marks: four corner ticks just outside a box, the way a design tool marks a frame. For open
121
+ * figures that need an edge without a border. The box must be positioned.
122
+ */
123
+ .home-marks::before {
124
+ --home-tick: 0.5rem;
125
+ position: absolute;
126
+ inset: -0.375rem;
127
+ background:
128
+ linear-gradient(var(--home-mark), var(--home-mark)) 0 0 / var(--home-tick) 1px no-repeat,
129
+ linear-gradient(var(--home-mark), var(--home-mark)) 0 0 / 1px var(--home-tick) no-repeat,
130
+ linear-gradient(var(--home-mark), var(--home-mark)) 100% 0 / var(--home-tick) 1px no-repeat,
131
+ linear-gradient(var(--home-mark), var(--home-mark)) 100% 0 / 1px var(--home-tick) no-repeat,
132
+ linear-gradient(var(--home-mark), var(--home-mark)) 0 100% / var(--home-tick) 1px no-repeat,
133
+ linear-gradient(var(--home-mark), var(--home-mark)) 0 100% / 1px var(--home-tick) no-repeat,
134
+ linear-gradient(var(--home-mark), var(--home-mark)) 100% 100% / var(--home-tick) 1px no-repeat,
135
+ linear-gradient(var(--home-mark), var(--home-mark)) 100% 100% / 1px var(--home-tick) no-repeat;
136
+ pointer-events: none;
137
+ content: '';
138
+ }
139
+
140
+ /* Every section opens the same way, hung on the left rail: eyebrow, title, lead, an optional link. */
141
+ .home-section-header {
142
+ display: grid;
143
+ /* The column never grows past the content edge, even when large text widens the eyebrow row. */
144
+ grid-template-columns: minmax(0, 1fr);
145
+ justify-items: start;
146
+ max-width: 44rem;
147
+ margin-bottom: var(--home-header-space);
148
+ }
149
+
150
+ .home-illustration {
151
+ --home-illustration-size: 4rem;
152
+ position: relative;
153
+ display: block;
154
+ flex: none;
155
+ width: var(--home-illustration-size);
156
+ height: var(--home-illustration-size);
157
+ pointer-events: none;
158
+ }
159
+
160
+ .home-illustration img {
161
+ position: absolute;
162
+ inset: 0;
163
+ display: block;
164
+ width: 100%;
165
+ height: 100%;
166
+ object-fit: contain;
167
+ }
168
+
169
+ /*
170
+ * Beside a title or a title and description, the illustration centers on the text and gives back its
171
+ * height with negative margins, so the text alone sets the row's height and the drawing overhangs it.
172
+ */
173
+ .home-illustration-hung {
174
+ align-self: center;
175
+ margin-block: calc(var(--home-illustration-size) / -2);
176
+ }
177
+
178
+ .home-illustration .home-illustration-dark { display: none; }
179
+ .dark .home-illustration .home-illustration-light { display: none; }
180
+ .dark .home-illustration .home-illustration-dark { display: block; }
181
+
182
+ .home-compact-icon {
183
+ --home-illustration-size: 3rem;
184
+ }
185
+
186
+ .home-section-caption {
187
+ display: flex;
188
+ flex-wrap: wrap;
189
+ align-items: center;
190
+ gap: var(--spacing-sm);
191
+ margin-inline-start: -0.4rem;
192
+
193
+ @media (--md) {
194
+ margin-inline-start: -0.5rem;
195
+
196
+ .home-illustration { --home-illustration-size: 5rem; }
197
+ }
198
+ }
199
+
200
+ .home-section-heading {
201
+ max-width: 22ch;
202
+ margin: 1.5rem 0 0;
203
+ font-size: var(--home-title);
204
+ font-weight: var(--font-weight-regular);
205
+ line-height: 1.08;
206
+ letter-spacing: -0.035em;
207
+ color: var(--home-text);
208
+ text-wrap: balance;
209
+ /* Only a word wider than the column breaks, as with very large text on a phone; `anywhere` also lets the grid item shrink. */
210
+ overflow-wrap: anywhere;
211
+ }
212
+
213
+ .home-section-body {
214
+ max-width: 40rem;
215
+ margin: 1.5rem 0 0;
216
+ font-size: var(--home-lead);
217
+ line-height: 1.6;
218
+ color: var(--home-text-quiet);
219
+ text-wrap: pretty;
220
+ }
221
+
222
+ .home-section-header > .home-section-link {
223
+ margin-top: 1.75rem;
224
+ }
225
+
226
+ .home-action {
227
+ display: inline-flex;
228
+ align-items: center;
229
+ justify-content: center;
230
+ gap: var(--spacing-xs);
231
+ height: 2.75rem;
232
+ padding-inline: 1.125rem;
233
+ border-radius: var(--home-radius-control);
234
+ font-size: 0.9375rem;
235
+ font-weight: var(--font-weight-medium);
236
+ letter-spacing: -0.005em;
237
+ transition: background-color var(--home-quick) var(--home-ease), box-shadow var(--home-quick) var(--home-ease);
238
+ }
239
+
240
+ /* The primary action is solid ink: the one dark object in a light composition, and the reverse in dark mode. */
241
+ .home-action-primary {
242
+ color: var(--home-text-inverse);
243
+ background-color: var(--home-ink);
244
+ box-shadow: inset 0 1px 0 var(--home-highlight-ink), 0 0 0 1px var(--home-ink), var(--home-contact);
245
+
246
+ &:hover {
247
+ background-color: color-mix(in oklab, var(--home-ink) 86%, var(--home-ground));
248
+ }
249
+
250
+ /* Pressing trades the raised edge for an inner shadow; nothing moves. */
251
+ &:active {
252
+ box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.35), 0 0 0 1px var(--home-ink);
253
+ }
254
+
255
+ &:focus-visible {
256
+ outline: 2px solid var(--home-ink);
257
+ outline-offset: 2px;
258
+ }
259
+ }
260
+
261
+ .home-action-secondary {
262
+ color: var(--home-text);
263
+ background-color: var(--home-sheet);
264
+ box-shadow: 0 0 0 1px var(--home-rule), var(--home-elevation-1);
265
+
266
+ &:hover {
267
+ background-color: var(--home-float);
268
+ box-shadow: 0 0 0 1px var(--home-rule-strong), var(--home-elevation-1);
269
+ }
270
+
271
+ &:active {
272
+ box-shadow: 0 0 0 1px var(--home-rule), var(--home-pressed);
273
+ }
274
+
275
+ &:focus-visible {
276
+ outline: 2px solid var(--home-ink);
277
+ outline-offset: 2px;
278
+ }
279
+ }
280
+
281
+ /* A quiet way into the guide: small, faint and plain, so it never competes with the figure it follows. */
282
+ .home-section-link {
283
+ display: inline-flex;
284
+ align-items: center;
285
+ gap: 0.375rem;
286
+ font-size: 0.875rem;
287
+ line-height: 1.25rem;
288
+ color: var(--home-text-faint);
289
+ text-decoration: none;
290
+ transition: color var(--duration-fast) var(--easing-smooth);
291
+
292
+ /* Only the arrow moves, so the link never changes size under the pointer. */
293
+ & > svg {
294
+ width: 0.875rem;
295
+ height: 0.875rem;
296
+ transition: translate var(--duration-normal) var(--easing-crisp);
297
+ }
298
+
299
+ &:hover {
300
+ color: var(--home-text);
301
+
302
+ & > svg {
303
+ translate: 3px 0;
304
+ }
305
+ }
306
+
307
+ &:focus-visible {
308
+ border-radius: var(--radius-sm);
309
+ outline: 2px solid var(--home-ink);
310
+ outline-offset: 3px;
311
+ }
312
+
313
+ /* On touch the 20px line gets a 44px target that reaches into the air around it; nothing visible moves. */
314
+ @media (pointer: coarse) {
315
+ position: relative;
316
+
317
+ &::before {
318
+ position: absolute;
319
+ inset: -0.75rem -0.5rem;
320
+ content: '';
321
+ }
322
+ }
323
+ }
324
+
325
+ /*
326
+ * Motion. The hero arrives in reading order on load; below it, each header and card rises as it
327
+ * scrolls in on a view timeline, so the stagger comes from position on the page, not from timers.
328
+ * Browsers without view timelines show everything in place.
329
+ */
330
+ @media (--motion-safe) {
331
+ .home-enter {
332
+ animation-name: home-rise;
333
+ animation-duration: 0.9s;
334
+ animation-timing-function: var(--home-ease);
335
+ animation-fill-mode: both;
336
+ }
337
+
338
+ .home-hero-pill {
339
+ animation-delay: 0.05s;
340
+ }
341
+
342
+ .home-display-line:first-child {
343
+ animation-delay: 0.12s;
344
+ }
345
+
346
+ .home-display-line:last-child {
347
+ animation-delay: 0.2s;
348
+ }
349
+
350
+ .home-hero-lead {
351
+ animation-delay: 0.3s;
352
+ }
353
+
354
+ .home-hero-actions {
355
+ animation-delay: 0.38s;
356
+ }
357
+
358
+ /* One glint crosses a stone title once it reaches the reading area, as on the hero's title. */
359
+ .home-stone-type[data-glint] {
360
+ animation-name: home-stone-glint;
361
+ animation-duration: 1.4s;
362
+ animation-timing-function: linear;
363
+ animation-fill-mode: both;
364
+ }
365
+
366
+ @supports (animation-timeline: view()) {
367
+ /* Longhands: a timeline inside the `animation` shorthand is not yet supported by browsers. */
368
+ .home-section-header > :not(.home-eyebrow),
369
+ .home-reveal-item {
370
+ animation-name: home-reveal-item;
371
+ animation-timing-function: linear;
372
+ animation-fill-mode: both;
373
+ animation-timeline: view();
374
+ /* Fixed scroll lengths, so a tall window and a one-line lead arrive at the same pace. */
375
+ animation-range: entry 0px entry 220px;
376
+ }
377
+
378
+ .home-section-header > :not(.home-eyebrow) {
379
+ animation-range: entry 0px entry 160px;
380
+ }
381
+
382
+ .home-section-header > .home-section-heading {
383
+ animation-range: entry 24px entry 184px;
384
+ }
385
+
386
+ /* A risen title keeps its scroll reveal while its one glint plays on the clock. */
387
+ .home-section-header > .home-section-heading.home-stone-type[data-glint] {
388
+ animation-name: home-reveal-item, home-stone-glint;
389
+ animation-duration: auto, 1.4s;
390
+ animation-timing-function: linear, linear;
391
+ animation-timeline: view(), auto;
392
+ animation-range: entry 24px entry 184px, normal;
393
+ }
394
+
395
+ .home-section-header > .home-section-body {
396
+ animation-range: entry 48px entry 208px;
397
+ }
398
+
399
+ .home-section-header > .home-section-link {
400
+ animation-range: entry 72px entry 232px;
401
+ }
402
+ }
403
+ }
404
+
405
+ /*
406
+ * Cards stand directly on the page ground: no shell around them, so every edge is the card's own 1px
407
+ * contour. A card may hold its figure in a well, 12px in, and nothing deeper.
408
+ */
409
+ .home-bento-frame {
410
+ position: relative;
411
+ }
412
+
413
+ .home-bento-grid {
414
+ display: grid;
415
+ gap: var(--home-gap);
416
+
417
+ @media (--md) {
418
+ gap: 1rem;
419
+ }
420
+ }
421
+
422
+ .home-bento-card {
423
+ position: relative;
424
+ display: flex;
425
+ flex-direction: column;
426
+ min-width: 0;
427
+ border-radius: var(--home-radius-sheet);
428
+ background-color: var(--home-sheet);
429
+ box-shadow: 0 0 0 1px var(--home-hairline), var(--home-elevation-1);
430
+ transition: box-shadow var(--home-base) var(--home-ease);
431
+
432
+ &:hover {
433
+ box-shadow: 0 0 0 1px var(--home-rule), var(--home-elevation-1);
434
+ }
435
+ }
436
+
437
+ /* The title and description stay together, with a separate illustration to their right. */
438
+ .home-bento-card-header {
439
+ /* Contain the header only: size containment on the subgrid card collapses auto-height code panes. */
440
+ container: home-card / inline-size;
441
+ padding: 1.75rem 1.5rem 2rem;
442
+
443
+ @media (--sm) {
444
+ padding: 2.25rem 2.25rem 2.5rem;
445
+ }
446
+
447
+ @media (--lg) {
448
+ padding: 2.5rem 2.75rem 2.75rem;
449
+ }
450
+ }
451
+
452
+ .home-bento-card-caption {
453
+ display: grid;
454
+ grid-template-columns: minmax(0, 44ch) 7rem;
455
+ /* In a wide card the copy keeps its measure and the illustration rides the card's right edge. */
456
+ justify-content: space-between;
457
+ align-items: start;
458
+ align-content: start;
459
+ column-gap: 1.5rem;
460
+ }
461
+
462
+ .home-bento-card-copy { min-width: 0; }
463
+
464
+ .home-bento-card-caption > .home-illustration {
465
+ --home-illustration-size: 7rem;
466
+ }
467
+
468
+ /*
469
+ * A narrow card cannot spare a 7rem column beside its copy: the title shares a row with a smaller
470
+ * illustration and the description takes the full measure below, so neither wraps a word or two per line.
471
+ */
472
+ @container home-card (width < 28rem) {
473
+ .home-bento-card-caption {
474
+ grid-template-columns: minmax(0, 1fr) 4rem;
475
+ align-items: center;
476
+ gap: 0.75rem 1rem;
477
+ }
478
+ .home-bento-card-copy { display: contents; }
479
+ .home-bento-card-title { grid-column: 1; grid-row: 1; }
480
+ .home-bento-card-body { grid-column: 1 / -1; grid-row: 2; max-width: none; margin-top: 0; }
481
+ .home-bento-card-hint { grid-column: 1 / -1; grid-row: 3; margin-top: 0; }
482
+ .home-bento-card-caption > .home-illustration {
483
+ --home-illustration-size: 4rem;
484
+ grid-column: 2;
485
+ grid-row: 1;
486
+ margin-block: 0;
487
+ }
488
+ }
489
+
490
+ @container home-card (width < 16rem) {
491
+ .home-bento-card-caption { grid-template-columns: minmax(0, 1fr) 3rem; column-gap: 0.75rem; }
492
+ .home-bento-card-caption > .home-illustration { --home-illustration-size: 3rem; }
493
+ }
494
+
495
+ @container home-card (width < 12rem) {
496
+ .home-bento-card-caption { grid-template-columns: minmax(0, 1fr); }
497
+ .home-bento-card-caption > .home-illustration { display: none; }
498
+ }
499
+
500
+ @container home-card (width >= 28rem) {
501
+ .home-bento-card-caption { column-gap: 3rem; }
502
+ }
503
+
504
+ .home-bento-card-title {
505
+ min-width: 0;
506
+ margin: 0;
507
+ font-size: var(--home-card-title);
508
+ font-weight: var(--font-weight-regular);
509
+ line-height: 1.25;
510
+ letter-spacing: -0.025em;
511
+ color: var(--home-text);
512
+ text-wrap: balance;
513
+ }
514
+
515
+ .home-bento-card-body {
516
+ min-width: 0;
517
+ max-width: 44ch;
518
+ margin: 0.75rem 0 0;
519
+ font-size: var(--home-body);
520
+ line-height: 1.6;
521
+ color: var(--home-text-quiet);
522
+ text-wrap: pretty;
523
+ }
524
+
525
+ .home-bento-card-hint {
526
+ margin: 0.75rem 0 0;
527
+ font-size: var(--home-caption);
528
+ line-height: 1.5;
529
+ color: var(--home-text-faint);
530
+ }
531
+
532
+ .home-heading-link {
533
+ color: inherit;
534
+ text-decoration: none;
535
+ text-decoration-thickness: 1px;
536
+ text-underline-offset: 0.2em;
537
+
538
+ &:hover { text-decoration-line: underline; }
539
+
540
+ &:focus-visible {
541
+ border-radius: var(--radius-sm);
542
+ outline: 2px solid var(--home-ink);
543
+ outline-offset: 4px;
544
+ }
545
+ }
546
+
547
+ /*
548
+ * The well's contour is drawn above the figure, so a pane that fills the well never hides it and
549
+ * a pane's own edge never doubles it: every well reads as one 1px line.
550
+ */
551
+ .home-bento-visual {
552
+ position: relative;
553
+ isolation: isolate;
554
+ overflow: hidden;
555
+ margin: auto var(--home-gap) var(--home-gap);
556
+ border-radius: var(--home-radius-well);
557
+ background-color: var(--home-well);
558
+
559
+ &::after {
560
+ position: absolute;
561
+ inset: 0;
562
+ z-index: 20;
563
+ border-radius: inherit;
564
+ box-shadow: var(--home-groove);
565
+ pointer-events: none;
566
+ content: '';
567
+ }
568
+ }
569
+
570
+ .home-bento-visual-top {
571
+ margin-top: 0;
572
+ }
573
+
574
+ .home-dot-grid {
575
+ background-image: radial-gradient(var(--home-rule) 1px, transparent 1px);
576
+ background-size: 16px 16px;
577
+ background-position: 8px 8px;
578
+ }
579
+
580
+ /* A tag: mono caps inside a hairline, for states such as "Default". */
581
+ .home-tag {
582
+ display: inline-flex;
583
+ align-items: center;
584
+ height: 1.25rem;
585
+ padding-inline: 0.4375rem;
586
+ border-radius: var(--home-radius-chip);
587
+ font-family: var(--home-mono);
588
+ font-size: 0.625rem;
589
+ letter-spacing: 0.08em;
590
+ text-transform: uppercase;
591
+ color: var(--home-text-quiet);
592
+ box-shadow: inset 0 0 0 1px var(--home-rule);
593
+ }
594
+
595
+ /* Code sits straight in its well: the docs block border, fill and radius stay out of figures. */
596
+ .home-code-window {
597
+ position: relative;
598
+ display: flex;
599
+ flex-direction: column;
600
+ overflow: hidden;
601
+ tab-size: 2;
602
+
603
+ .ui-code {
604
+ border: 0;
605
+ border-radius: 0;
606
+ background: transparent;
607
+ box-shadow: none;
608
+ }
609
+
610
+ .home-code-window-pre {
611
+ overflow: hidden;
612
+ padding: var(--spacing-lg) var(--spacing-sm);
613
+ border-radius: 0;
614
+ background-color: transparent;
615
+ }
616
+ }
617
+
618
+ .home-code-window-has-fix {
619
+ &:where(:hover, :active) .home-code-window-source {
620
+ opacity: 0;
621
+ }
622
+
623
+ &:where(:hover, :active) .home-code-window-fix {
624
+ opacity: 1;
625
+ }
626
+ }
627
+
628
+ .home-code-window-dot {
629
+ display: block;
630
+ width: 0.625rem;
631
+ height: 0.625rem;
632
+ border-radius: calc(infinity * 1px);
633
+ background-color: var(--home-rule);
634
+ opacity: 0.56;
635
+ }
636
+
637
+ .home-code-window-stack {
638
+ display: grid;
639
+ flex: auto;
640
+ min-height: 0;
641
+ }
642
+
643
+ .home-code-window-layer {
644
+ grid-area: 1 / 1 / 2 / 2;
645
+ min-width: 0;
646
+ transition: opacity 0.16s ease-out;
647
+ will-change: opacity;
648
+ }
649
+
650
+ .home-code-window-fix {
651
+ opacity: 0;
652
+ }
653
+
654
+ .home-code-window-body {
655
+ flex: auto;
656
+ min-height: 0;
657
+ }
658
+
659
+ /* The scrollable code fills a clipped well, so its focus ring sits inside the well's edge. */
660
+ .home-code-window-body :focus-visible {
661
+ outline-offset: -2px;
662
+ }
663
+
664
+ .home-code-window-problem {
665
+ display: flex;
666
+ align-items: flex-start;
667
+ gap: var(--spacing-sm);
668
+ padding-inline: var(--spacing-md);
669
+ }
670
+
671
+ .home-code-window-problem-icon {
672
+ flex: none;
673
+ margin-top: 1px;
674
+ }
675
+
676
+ .home-code-window-problem-content {
677
+ min-width: 0;
678
+ }
679
+
680
+ .home-code-window-problem-meta {
681
+ overflow: hidden;
682
+ text-overflow: ellipsis;
683
+ white-space: nowrap;
684
+ }
685
+
686
+ /* Diagnostics wrap like an editor's problems panel instead of running out of the card. */
687
+ .home-code-window-problem-message {
688
+ display: -webkit-box;
689
+ overflow: hidden;
690
+ margin: 0;
691
+ -webkit-box-orient: vertical;
692
+ -webkit-line-clamp: 2;
693
+ text-wrap: pretty;
694
+ font-size: var(--text-sm);
695
+ line-height: var(--text-sm--line-height);
696
+ color: var(--home-text);
697
+ }
698
+
699
+ .home-code-window-problem-meta {
700
+ margin: var(--spacing-3xs) 0 0;
701
+ font-size: var(--text-2xs);
702
+ line-height: var(--text-2xs--line-height);
703
+ color: var(--home-text-quiet);
704
+ }
705
+
706
+ /* A recessed gray track holds a white selected segment that sits just above it. */
707
+ /*
708
+ * Segmented control: a soft pill track drawn with one 1px line, and a raised thumb that slides to the
709
+ * chosen option and takes its width. Until the thumb is measured, the chosen option paints its own.
710
+ */
711
+ .home-segmented-control {
712
+ --home-segment-pad: 3px;
713
+ position: relative;
714
+ isolation: isolate;
715
+ display: inline-flex;
716
+ align-items: center;
717
+ width: fit-content;
718
+ padding: var(--home-segment-pad);
719
+ border-radius: calc(infinity * 1px);
720
+ background-color: color-mix(in oklab, var(--home-text) 4%, var(--home-ground));
721
+ box-shadow: inset 0 0 0 1px var(--home-hairline);
722
+ }
723
+
724
+ .home-segmented-control-thumb {
725
+ position: absolute;
726
+ top: var(--home-segment-pad);
727
+ bottom: var(--home-segment-pad);
728
+ left: 0;
729
+ z-index: -1;
730
+ width: var(--home-segment-width, 0);
731
+ border-radius: calc(infinity * 1px);
732
+ background-color: light-dark(var(--home-sheet), color-mix(in oklab, var(--home-sheet) 86%, white));
733
+ /* The thumb is lit by the page lamp, like the hero's glass: its shadow falls away from the lamp. */
734
+ box-shadow:
735
+ 0 0 0 1px var(--home-hairline),
736
+ 0 1px 2px light-dark(oklch(18% 0 none / 0.06), oklch(0% 0 none / 0.4)),
737
+ calc(var(--cast-x, 1px) * 0.6) calc(var(--cast-y, 4px) * 0.6) 8px -3px light-dark(oklch(18% 0 none / 0.1), oklch(0% 0 none / 0.5)),
738
+ inset 0 1px 0 var(--home-highlight);
739
+ translate: var(--home-segment-x, 0) 0;
740
+ opacity: 0;
741
+
742
+ /* Both rims catch light: the near one from the lamp, the far one turned a little away from it. */
743
+ &::before {
744
+ position: absolute;
745
+ inset: 0;
746
+ padding: 1px;
747
+ border-radius: inherit;
748
+ background: linear-gradient(var(--lit-angle, -20deg), light-dark(oklch(0.2 0 none / 0.06), rgb(255 255 255 / 0.05)), transparent 35%, transparent 62%, light-dark(rgb(255 255 255 / 1), rgb(255 255 255 / 0.22)));
749
+ mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
750
+ pointer-events: none;
751
+ content: '';
752
+ }
753
+
754
+ .home-segmented-control[data-ready] & {
755
+ opacity: 1;
756
+ transition: translate var(--home-base) var(--home-ease), width var(--home-base) var(--home-ease);
757
+ }
758
+ }
759
+
760
+ .home-segmented-control-option {
761
+ display: inline-flex;
762
+ align-items: center;
763
+ justify-content: center;
764
+ height: 1.875rem;
765
+ min-width: 3.75rem;
766
+ padding-inline: 0.875rem;
767
+ border: 0;
768
+ border-radius: calc(infinity * 1px);
769
+ font-size: 0.8125rem;
770
+ font-weight: var(--font-weight-medium);
771
+ line-height: 1;
772
+ letter-spacing: -0.005em;
773
+ white-space: nowrap;
774
+ color: var(--home-text-quiet);
775
+ background-color: transparent;
776
+ cursor: pointer;
777
+ transition: color var(--home-quick) var(--home-ease);
778
+
779
+ &:hover,
780
+ &[aria-pressed='true'] {
781
+ color: var(--home-text);
782
+ }
783
+
784
+ /* Before the thumb is measured, the chosen option carries the raised look itself. */
785
+ .home-segmented-control:not([data-ready]) &[aria-pressed='true'] {
786
+ background-color: var(--home-sheet);
787
+ box-shadow: 0 0 0 1px var(--home-hairline);
788
+ }
789
+
790
+ &:focus-visible {
791
+ outline: 2px solid var(--home-ink);
792
+ outline-offset: 1px;
793
+ }
794
+ }
795
+
796
+ @media (--motion-reduce) {
797
+ .home-segmented-control-thumb {
798
+ transition: none !important;
799
+ }
800
+
801
+ /* Without motion, hover keeps its color cue but the arrow stays put instead of jumping. */
802
+ .home-section-link:hover > svg,
803
+ .home-cta-actions .home-action-primary:is(:hover, :focus-visible) > svg {
804
+ translate: none;
805
+ }
806
+ }
807
+
808
+ .home-chip {
809
+ display: inline-flex;
810
+ flex: none;
811
+ align-items: center;
812
+ padding: var(--spacing-4xs) var(--spacing-xs);
813
+ border-radius: var(--home-radius-chip);
814
+ outline: 1px solid var(--home-hairline);
815
+ font-family: var(--home-mono);
816
+ font-size: 0.75rem;
817
+ line-height: 1.5;
818
+ white-space: nowrap;
819
+ color: var(--home-text-body);
820
+ background-color: var(--home-sheet);
821
+ }
822
+
823
+ .home-terminal-line {
824
+ display: block;
825
+ overflow: hidden;
826
+ padding: var(--spacing-xs) var(--spacing-sm);
827
+ border-radius: var(--radius-lg);
828
+ font-family: var(--home-mono);
829
+ font-size: 0.75rem;
830
+ line-height: 1.5;
831
+ text-overflow: ellipsis;
832
+ white-space: nowrap;
833
+ color: var(--home-text);
834
+ background-color: var(--home-sheet);
835
+ box-shadow: inset 0 0 0 1px var(--home-hairline), var(--home-edge);
836
+ }
837
+
838
+ /* An endless row: the track holds two copies, so moving it by half its width loops seamlessly. */
839
+ .home-marquee {
840
+ overflow: hidden;
841
+ mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
842
+ }
843
+
844
+ .home-marquee-track {
845
+ display: flex;
846
+ width: max-content;
847
+ /* Longhands keep the keyframe name static; a variable inside the shorthand reads as a dynamic name. */
848
+ animation-name: home-marquee;
849
+ animation-duration: var(--home-marquee-duration, 32s);
850
+ animation-timing-function: linear;
851
+ animation-iteration-count: infinite;
852
+
853
+ & > * {
854
+ margin-right: var(--spacing-xs);
855
+ }
856
+
857
+ .home-marquee:hover & {
858
+ animation-play-state: paused;
859
+ }
860
+ }
861
+
862
+ .home-marquee-reverse .home-marquee-track {
863
+ animation-direction: reverse;
864
+ }
865
+
866
+ /* Same height and corner as an action beside it; the copy button nests inside with a concentric corner. */
867
+ .home-command {
868
+ display: inline-flex;
869
+ align-items: center;
870
+ gap: var(--spacing-sm);
871
+ box-sizing: border-box;
872
+ max-width: 100%;
873
+ height: 2.75rem;
874
+ padding: 0 0.25rem 0 var(--spacing-md);
875
+ border-radius: var(--home-radius-control);
876
+ font-family: var(--home-mono);
877
+ font-size: 0.875rem;
878
+ color: var(--home-text);
879
+ }
880
+
881
+ /* The command fills the field and reads from the left, so the copy button sits at the far edge. */
882
+ .home-command > code {
883
+ flex: auto;
884
+ text-align: left;
885
+ }
886
+
887
+ .home-command-copy {
888
+ display: grid;
889
+ flex: none;
890
+ place-content: center;
891
+ width: 2.25rem;
892
+ height: 2.25rem;
893
+ border-radius: calc(var(--home-radius-control) - 0.25rem);
894
+ color: var(--home-text-quiet);
895
+ cursor: pointer;
896
+ transition: color var(--duration-fast) var(--easing-smooth), background-color var(--duration-fast) var(--easing-smooth);
897
+
898
+ &:hover {
899
+ color: var(--home-text);
900
+ background-color: var(--home-well);
901
+ }
902
+
903
+ &:focus-visible {
904
+ outline: 2px solid var(--home-ink);
905
+ }
906
+ }
907
+
908
+ .home-code-tag {
909
+ color: var(--home-code-tag);
910
+ }
911
+
912
+ /* Markup brackets and `=` are punctuation, as in the docs' highlighted code. */
913
+ .home-code-punct {
914
+ color: var(--home-text-faint);
915
+ }
916
+
917
+ .home-code-attr {
918
+ color: var(--home-code-attr);
919
+ }
920
+
921
+ .home-code-string {
922
+ color: var(--home-code-string);
923
+ }
924
+
925
+ .home-spin {
926
+ animation: home-spin 0.9s linear infinite;
927
+ }
928
+
929
+ @media (--motion-reduce) {
930
+ .home-marquee-track,
931
+ .home-spin {
932
+ animation: none;
933
+ }
934
+
935
+ }
936
+ }
937
+
938
+ /* Capture only the header, keeping the scrolling page live underneath its transition. */
939
+ :root[data-header-transition] {
940
+ view-transition-name: none;
941
+ }
942
+
943
+ [data-header-transition] .home-header {
944
+ view-transition-name: home-header;
945
+ }
946
+
947
+ [data-header-transition] .home-header .ui-header-end > a[aria-label="GitHub"] {
948
+ view-transition-name: home-header-github;
949
+ }
950
+
951
+ [data-header-transition] .home-header .ui-header-brand {
952
+ view-transition-name: home-header-logo;
953
+ }
954
+
955
+ [data-header-transition] .home-header .ui-version {
956
+ view-transition-name: home-header-version;
957
+ }
958
+
959
+ [data-header-transition] .home-header .ui-header-menu {
960
+ view-transition-name: home-header-menu;
961
+ }
962
+
963
+ [data-header-transition]::view-transition {
964
+ pointer-events: none;
965
+ }
966
+
967
+ [data-header-transition]::view-transition-group(*) {
968
+ animation-duration: var(--duration-slow);
969
+ animation-timing-function: cubic-bezier(.4, 0, .2, 1);
970
+ }
971
+
972
+ /* Reaching the top re-forms the bar: the frosted bar fades out quickly, the bare one arrives as the pieces land. */
973
+ [data-header-transition='top']::view-transition-old(home-header) {
974
+ animation-duration: var(--duration-fastest);
975
+ }
976
+
977
+ [data-header-transition='top']::view-transition-new(home-header) {
978
+ animation-duration: var(--duration-faster);
979
+ animation-delay: var(--duration-normal);
980
+ }
981
+
982
+ /* Tucking away or coming back only moves the same bar, so it slides as one piece with no cross-fade. */
983
+ [data-header-transition='tuck']::view-transition-group(*) {
984
+ animation-duration: var(--duration-normal);
985
+ }
986
+
987
+ [data-header-transition='tuck']::view-transition-old(*) {
988
+ animation: none;
989
+ opacity: 0;
990
+ }
991
+
992
+ [data-header-transition='tuck']::view-transition-new(*) {
993
+ animation: none;
994
+ }
995
+
996
+ /* Translation only: figures that measure themselves while they arrive keep their true size. */
997
+ @keyframes home-reveal-item {
998
+ from {
999
+ opacity: 0;
1000
+ translate: 0 24px;
1001
+ }
1002
+
1003
+ to {
1004
+ opacity: 1;
1005
+ translate: 0 0;
1006
+ }
1007
+ }
1008
+
1009
+ @keyframes home-marquee {
1010
+ to {
1011
+ translate: -50% 0;
1012
+ }
1013
+ }
1014
+
1015
+ @keyframes home-spin {
1016
+ to {
1017
+ rotate: 1turn;
1018
+ }
1019
+ }
1020
+
1021
+ @keyframes home-rise {
1022
+ from {
1023
+ opacity: 0;
1024
+ translate: 0 20px;
1025
+ filter: blur(6px);
1026
+ }
1027
+
1028
+ to {
1029
+ opacity: 1;
1030
+ translate: 0 0;
1031
+ filter: blur(0);
1032
+ }
1033
+ }
1034
+
1035
+ /*
1036
+ * Forced colors drop shadows and backgrounds: framed tools keep a system-color contour, the size chart keeps
1037
+ * its measured bars, and the footer's engraved mark (decoration only) steps aside instead of covering the links.
1038
+ */
1039
+ @layer components {
1040
+ @media (forced-colors: active) {
1041
+ :is(.home-bento-card, .home-editor-window, .home-agent, .home-code-window, .home-lint-pane) {
1042
+ outline: 1px solid CanvasText;
1043
+ }
1044
+
1045
+ .home-bench-bar {
1046
+ forced-color-adjust: none;
1047
+ }
1048
+
1049
+ .home-footer-mark {
1050
+ display: none;
1051
+ }
1052
+
1053
+ /* The theme split keeps a visible line and handle where the two modes meet. */
1054
+ .home-theme-divider {
1055
+ forced-color-adjust: none;
1056
+ background-color: CanvasText !important;
1057
+ }
1058
+
1059
+ .home-theme-knob {
1060
+ outline: 1px solid CanvasText;
1061
+ }
1062
+
1063
+ /* The agent's steps keep a visible current step and progress without their fills. */
1064
+ .home-agent-step[aria-current] {
1065
+ outline: 1px solid Highlight;
1066
+ }
1067
+
1068
+ .home-agent-step-track {
1069
+ outline: 1px solid CanvasText;
1070
+ }
1071
+
1072
+ .home-agent-step-fill {
1073
+ background-color: Highlight;
1074
+ forced-color-adjust: none;
1075
+ }
1076
+ }
1077
+ }