@sypnia/ui 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 (593) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +95 -2
  3. package/astro/ActionCard.astro +17 -0
  4. package/astro/ActionCardSkeleton.astro +10 -0
  5. package/astro/Actions.astro +6 -0
  6. package/astro/AgentInstall.astro +13 -0
  7. package/astro/Alert.astro +20 -0
  8. package/astro/Announcement.astro +7 -0
  9. package/astro/ApiReference.astro +29 -0
  10. package/astro/ArticleHead.astro +24 -0
  11. package/astro/Aside.astro +17 -0
  12. package/astro/AspectRatio.astro +7 -0
  13. package/astro/AuthLayout.astro +31 -0
  14. package/astro/AuthLayoutSkeleton.astro +19 -0
  15. package/astro/Avatar.astro +7 -0
  16. package/astro/AvatarGroup.astro +16 -0
  17. package/astro/AvatarGroupSkeleton.astro +7 -0
  18. package/astro/AvatarSkeleton.astro +6 -0
  19. package/astro/Badge.astro +8 -0
  20. package/astro/BadgeSkeleton.astro +6 -0
  21. package/astro/Banner.astro +6 -0
  22. package/astro/Button.astro +26 -0
  23. package/astro/ButtonGroup.astro +6 -0
  24. package/astro/CallToAction.astro +10 -0
  25. package/astro/Callout.astro +13 -0
  26. package/astro/CalloutSkeleton.astro +10 -0
  27. package/astro/Card.astro +11 -0
  28. package/astro/CardGrid.astro +9 -0
  29. package/astro/CardGridSkeleton.astro +7 -0
  30. package/astro/CardSkeleton.astro +11 -0
  31. package/astro/Cards.astro +16 -0
  32. package/astro/CardsSkeleton.astro +5 -0
  33. package/astro/CaseMap.astro +72 -0
  34. package/astro/Center.astro +7 -0
  35. package/astro/Changelog.astro +23 -0
  36. package/astro/Character.astro +7 -0
  37. package/astro/Checklist.astro +27 -0
  38. package/astro/ChecklistSkeleton.astro +10 -0
  39. package/astro/Chip.astro +10 -0
  40. package/astro/ChipSkeleton.astro +4 -0
  41. package/astro/Cli.astro +10 -0
  42. package/astro/CodeBlock.astro +20 -0
  43. package/astro/CodeBlockSkeleton.astro +9 -0
  44. package/astro/CodeTabs.astro +31 -0
  45. package/astro/Columns.astro +7 -0
  46. package/astro/Compare.astro +16 -0
  47. package/astro/CompareTable.astro +29 -0
  48. package/astro/CompareTableSkeleton.astro +12 -0
  49. package/astro/Container.astro +6 -0
  50. package/astro/CopyButton.astro +15 -0
  51. package/astro/Count.astro +9 -0
  52. package/astro/CountSkeleton.astro +4 -0
  53. package/astro/Delta.astro +20 -0
  54. package/astro/DeltaSkeleton.astro +4 -0
  55. package/astro/DescriptionList.astro +8 -0
  56. package/astro/DescriptionListSkeleton.astro +7 -0
  57. package/astro/Divider.astro +6 -0
  58. package/astro/DocsArticleSkeleton.astro +25 -0
  59. package/astro/DocsHead.astro +33 -0
  60. package/astro/DocsHeader.astro +44 -0
  61. package/astro/DocsHero.astro +13 -0
  62. package/astro/DocsShell.astro +79 -0
  63. package/astro/EditLink.astro +9 -0
  64. package/astro/EmptyState.astro +14 -0
  65. package/astro/Endpoint.astro +21 -0
  66. package/astro/ErrorItem.astro +5 -0
  67. package/astro/ErrorList.astro +8 -0
  68. package/astro/Expected.astro +8 -0
  69. package/astro/Faq.astro +11 -0
  70. package/astro/FeatureGrid.astro +11 -0
  71. package/astro/FeatureGridSkeleton.astro +8 -0
  72. package/astro/FeatureList.astro +18 -0
  73. package/astro/FeatureListSkeleton.astro +7 -0
  74. package/astro/Figure.astro +17 -0
  75. package/astro/FigureSkeleton.astro +9 -0
  76. package/astro/Fireflies.astro +8 -0
  77. package/astro/Glossary.astro +8 -0
  78. package/astro/Grid.astro +7 -0
  79. package/astro/Heading.astro +7 -0
  80. package/astro/Hero.astro +21 -0
  81. package/astro/Icon.astro +17 -0
  82. package/astro/IconButton.astro +21 -0
  83. package/astro/Identity.astro +7 -0
  84. package/astro/IdentitySkeleton.astro +10 -0
  85. package/astro/Install.astro +7 -0
  86. package/astro/Kbd.astro +4 -0
  87. package/astro/KeyValue.astro +6 -0
  88. package/astro/KeyValueSkeleton.astro +7 -0
  89. package/astro/Ledger.astro +6 -0
  90. package/astro/Logo.astro +9 -0
  91. package/astro/Mark.astro +1 -0
  92. package/astro/McpTool.astro +13 -0
  93. package/astro/NewCard.astro +7 -0
  94. package/astro/Option.astro +6 -0
  95. package/astro/Options.astro +6 -0
  96. package/astro/PackageTabs.astro +12 -0
  97. package/astro/Page.astro +5 -0
  98. package/astro/PageFeedback.astro +20 -0
  99. package/astro/PageHeader.astro +14 -0
  100. package/astro/PageHeaderSkeleton.astro +12 -0
  101. package/astro/PageSkeleton.astro +19 -0
  102. package/astro/PaginationSkeleton.astro +17 -0
  103. package/astro/Panel.astro +11 -0
  104. package/astro/PanelSkeleton.astro +10 -0
  105. package/astro/Param.astro +15 -0
  106. package/astro/Params.astro +12 -0
  107. package/astro/ParamsSkeleton.astro +5 -0
  108. package/astro/Phone.astro +6 -0
  109. package/astro/PlanCard.astro +27 -0
  110. package/astro/PlanCardSkeleton.astro +13 -0
  111. package/astro/PrevNext.astro +15 -0
  112. package/astro/PricingTable.astro +41 -0
  113. package/astro/PricingTableSkeleton.astro +9 -0
  114. package/astro/ProductGrid.astro +10 -0
  115. package/astro/ProductMark.astro +10 -0
  116. package/astro/Progress.astro +12 -0
  117. package/astro/ProgressSkeleton.astro +9 -0
  118. package/astro/Prose.astro +7 -0
  119. package/astro/Quote.astro +10 -0
  120. package/astro/QuoteSkeleton.astro +10 -0
  121. package/astro/Releases.astro +6 -0
  122. package/astro/RequestExample.astro +8 -0
  123. package/astro/ResponseExample.astro +9 -0
  124. package/astro/Row.astro +7 -0
  125. package/astro/Says.astro +6 -0
  126. package/astro/ScrollArea.astro +7 -0
  127. package/astro/Search.astro +36 -0
  128. package/astro/SearchResult.astro +8 -0
  129. package/astro/SearchResultSkeleton.astro +5 -0
  130. package/astro/Section.astro +17 -0
  131. package/astro/SectionSkeleton.astro +9 -0
  132. package/astro/Setting.astro +19 -0
  133. package/astro/Show.astro +6 -0
  134. package/astro/SideNav.astro +40 -0
  135. package/astro/SideNavSkeleton.astro +13 -0
  136. package/astro/SiteFooter.astro +14 -0
  137. package/astro/SiteHeader.astro +28 -0
  138. package/astro/Skeleton.astro +8 -0
  139. package/astro/SkeletonText.astro +6 -0
  140. package/astro/Spacer.astro +7 -0
  141. package/astro/Split.astro +17 -0
  142. package/astro/Stack.astro +7 -0
  143. package/astro/Stage.astro +12 -0
  144. package/astro/Stat.astro +10 -0
  145. package/astro/StatGroup.astro +1 -0
  146. package/astro/StatGroupSkeleton.astro +7 -0
  147. package/astro/StatSkeleton.astro +10 -0
  148. package/astro/Status.astro +6 -0
  149. package/astro/StatusSkeleton.astro +4 -0
  150. package/astro/Step.astro +5 -0
  151. package/astro/Steps.astro +4 -0
  152. package/astro/Sticky.astro +7 -0
  153. package/astro/TableOfContents.astro +16 -0
  154. package/astro/TableOfContentsSkeleton.astro +5 -0
  155. package/astro/TableSkeleton.astro +16 -0
  156. package/astro/Tabs.astro +31 -0
  157. package/astro/TabsSkeleton.astro +6 -0
  158. package/astro/Term.astro +8 -0
  159. package/astro/Terms.astro +4 -0
  160. package/astro/Text.astro +6 -0
  161. package/astro/TextSkeleton.astro +9 -0
  162. package/astro/Toolbar.astro +7 -0
  163. package/astro/ToolbarGroup.astro +5 -0
  164. package/astro/ToolbarSeparator.astro +1 -0
  165. package/astro/ToolbarSkeleton.astro +6 -0
  166. package/astro/VersionBadge.astro +8 -0
  167. package/astro/_gap.ts +5 -0
  168. package/astro/_id.ts +3 -0
  169. package/astro/_locale.ts +9 -0
  170. package/css/base.css +92 -0
  171. package/css/components/actions.css +36 -0
  172. package/css/components/brand.css +28 -0
  173. package/css/components/button.css +84 -0
  174. package/css/components/charts-more.css +89 -0
  175. package/css/components/charts.css +83 -0
  176. package/css/components/code.css +86 -0
  177. package/css/components/data-display.css +105 -0
  178. package/css/components/data-more.css +323 -0
  179. package/css/components/data-table.css +146 -0
  180. package/css/components/docs.css +451 -0
  181. package/css/components/feedback.css +103 -0
  182. package/css/components/field.css +92 -0
  183. package/css/components/fields-advanced.css +158 -0
  184. package/css/components/fields-more.css +93 -0
  185. package/css/components/floating.css +55 -0
  186. package/css/components/forms.css +109 -0
  187. package/css/components/layout.css +97 -0
  188. package/css/components/nav.css +105 -0
  189. package/css/components/navigation.css +133 -0
  190. package/css/components/overlay.css +112 -0
  191. package/css/components/primitives.css +15 -0
  192. package/css/components/screens.css +42 -0
  193. package/css/components/shell.css +118 -0
  194. package/css/components/site.css +114 -0
  195. package/css/components/status.css +81 -0
  196. package/css/components/surface.css +69 -0
  197. package/css/components/table.css +49 -0
  198. package/css/components/viz.css +117 -0
  199. package/css/fonts.css +8 -0
  200. package/css/index.css +34 -0
  201. package/css/tokens.css +409 -0
  202. package/dist/chunk-6X3IJPUY.js +699 -0
  203. package/dist/chunk-AXIJDECU.js +97 -0
  204. package/dist/chunk-O5ZNXHSV.js +86 -0
  205. package/dist/dom/elements.d.ts +2 -0
  206. package/dist/dom/elements.js +539 -0
  207. package/dist/dom/index.d.ts +51 -0
  208. package/dist/dom/index.js +2 -0
  209. package/dist/i18n/index.d.ts +659 -0
  210. package/dist/i18n/index.js +1 -0
  211. package/dist/react/index.d.ts +4455 -0
  212. package/dist/react/index.js +8208 -0
  213. package/dist/tokens/index.d.ts +64 -0
  214. package/dist/tokens/index.js +49 -0
  215. package/fonts/LICENSE-instrument-sans.txt +93 -0
  216. package/fonts/LICENSE-literata.txt +93 -0
  217. package/fonts/LICENSE-martian-mono.txt +93 -0
  218. package/fonts/instrument-sans.woff2 +0 -0
  219. package/fonts/literata-italic.woff2 +0 -0
  220. package/fonts/literata-roman.woff2 +0 -0
  221. package/fonts/martian-mono.woff2 +0 -0
  222. package/icons/sprite.svg +1 -0
  223. package/icons/svg/accessibility.svg +1 -0
  224. package/icons/svg/agent.svg +1 -0
  225. package/icons/svg/alert.svg +1 -0
  226. package/icons/svg/align-center.svg +1 -0
  227. package/icons/svg/align-left.svg +1 -0
  228. package/icons/svg/align-right.svg +1 -0
  229. package/icons/svg/api.svg +1 -0
  230. package/icons/svg/archive.svg +1 -0
  231. package/icons/svg/arrow-down-left.svg +1 -0
  232. package/icons/svg/arrow-down-right.svg +1 -0
  233. package/icons/svg/arrow-down.svg +1 -0
  234. package/icons/svg/arrow-left.svg +1 -0
  235. package/icons/svg/arrow-right.svg +1 -0
  236. package/icons/svg/arrow-up-left.svg +1 -0
  237. package/icons/svg/arrow-up-right.svg +1 -0
  238. package/icons/svg/arrow-up.svg +1 -0
  239. package/icons/svg/at.svg +1 -0
  240. package/icons/svg/audit.svg +1 -0
  241. package/icons/svg/award.svg +1 -0
  242. package/icons/svg/backend.svg +1 -0
  243. package/icons/svg/backup.svg +1 -0
  244. package/icons/svg/bag.svg +1 -0
  245. package/icons/svg/ban.svg +1 -0
  246. package/icons/svg/bank.svg +1 -0
  247. package/icons/svg/bell-off.svg +1 -0
  248. package/icons/svg/bell.svg +1 -0
  249. package/icons/svg/bold.svg +1 -0
  250. package/icons/svg/bolt.svg +1 -0
  251. package/icons/svg/book-open.svg +1 -0
  252. package/icons/svg/book.svg +1 -0
  253. package/icons/svg/bookmark.svg +1 -0
  254. package/icons/svg/box.svg +1 -0
  255. package/icons/svg/braces.svg +1 -0
  256. package/icons/svg/brackets.svg +1 -0
  257. package/icons/svg/browser.svg +1 -0
  258. package/icons/svg/brush.svg +1 -0
  259. package/icons/svg/bug.svg +1 -0
  260. package/icons/svg/calendar-check.svg +1 -0
  261. package/icons/svg/calendar-plus.svg +1 -0
  262. package/icons/svg/calendar.svg +1 -0
  263. package/icons/svg/camera.svg +1 -0
  264. package/icons/svg/cards.svg +1 -0
  265. package/icons/svg/cart.svg +1 -0
  266. package/icons/svg/certificate.svg +1 -0
  267. package/icons/svg/chart-area.svg +1 -0
  268. package/icons/svg/chart-bar.svg +1 -0
  269. package/icons/svg/chart-line.svg +1 -0
  270. package/icons/svg/chart-parts.svg +1 -0
  271. package/icons/svg/chart-scatter.svg +1 -0
  272. package/icons/svg/chat.svg +1 -0
  273. package/icons/svg/chats.svg +1 -0
  274. package/icons/svg/check-small.svg +1 -0
  275. package/icons/svg/check.svg +1 -0
  276. package/icons/svg/chevron-down.svg +1 -0
  277. package/icons/svg/chevron-left.svg +1 -0
  278. package/icons/svg/chevron-right.svg +1 -0
  279. package/icons/svg/chevron-up.svg +1 -0
  280. package/icons/svg/chevrons-down.svg +1 -0
  281. package/icons/svg/chevrons-left.svg +1 -0
  282. package/icons/svg/chevrons-right.svg +1 -0
  283. package/icons/svg/chevrons-up-down.svg +1 -0
  284. package/icons/svg/chevrons-up.svg +1 -0
  285. package/icons/svg/clipboard-check.svg +1 -0
  286. package/icons/svg/clipboard.svg +1 -0
  287. package/icons/svg/clock.svg +1 -0
  288. package/icons/svg/close-small.svg +1 -0
  289. package/icons/svg/close.svg +1 -0
  290. package/icons/svg/cloud-download.svg +1 -0
  291. package/icons/svg/cloud-off.svg +1 -0
  292. package/icons/svg/cloud-upload.svg +1 -0
  293. package/icons/svg/cloud.svg +1 -0
  294. package/icons/svg/code.svg +1 -0
  295. package/icons/svg/coins.svg +1 -0
  296. package/icons/svg/collapse.svg +1 -0
  297. package/icons/svg/columns.svg +1 -0
  298. package/icons/svg/comment.svg +1 -0
  299. package/icons/svg/commit.svg +1 -0
  300. package/icons/svg/compass.svg +1 -0
  301. package/icons/svg/contact.svg +1 -0
  302. package/icons/svg/container.svg +1 -0
  303. package/icons/svg/copy.svg +1 -0
  304. package/icons/svg/cpu.svg +1 -0
  305. package/icons/svg/credit-card.svg +1 -0
  306. package/icons/svg/cron.svg +1 -0
  307. package/icons/svg/crop.svg +1 -0
  308. package/icons/svg/crown.svg +1 -0
  309. package/icons/svg/csv.svg +1 -0
  310. package/icons/svg/cursor.svg +1 -0
  311. package/icons/svg/dark-mode.svg +1 -0
  312. package/icons/svg/dashboard.svg +1 -0
  313. package/icons/svg/data.svg +1 -0
  314. package/icons/svg/dead-click.svg +1 -0
  315. package/icons/svg/density.svg +1 -0
  316. package/icons/svg/deploy.svg +1 -0
  317. package/icons/svg/desktop.svg +1 -0
  318. package/icons/svg/disk.svg +1 -0
  319. package/icons/svg/dns.svg +1 -0
  320. package/icons/svg/dollar.svg +1 -0
  321. package/icons/svg/domain.svg +1 -0
  322. package/icons/svg/dot-off.svg +1 -0
  323. package/icons/svg/dot.svg +1 -0
  324. package/icons/svg/download.svg +1 -0
  325. package/icons/svg/duplicate.svg +1 -0
  326. package/icons/svg/edit.svg +1 -0
  327. package/icons/svg/engine.svg +1 -0
  328. package/icons/svg/enter.svg +1 -0
  329. package/icons/svg/environment.svg +1 -0
  330. package/icons/svg/equal.svg +1 -0
  331. package/icons/svg/eraser.svg +1 -0
  332. package/icons/svg/error.svg +1 -0
  333. package/icons/svg/expand.svg +1 -0
  334. package/icons/svg/export.svg +1 -0
  335. package/icons/svg/external.svg +1 -0
  336. package/icons/svg/eye-off.svg +1 -0
  337. package/icons/svg/failure.svg +1 -0
  338. package/icons/svg/fast-forward.svg +1 -0
  339. package/icons/svg/file-check.svg +1 -0
  340. package/icons/svg/file-code.svg +1 -0
  341. package/icons/svg/file-lock.svg +1 -0
  342. package/icons/svg/file-plus.svg +1 -0
  343. package/icons/svg/file-table.svg +1 -0
  344. package/icons/svg/file-text.svg +1 -0
  345. package/icons/svg/file.svg +1 -0
  346. package/icons/svg/files.svg +1 -0
  347. package/icons/svg/filter.svg +1 -0
  348. package/icons/svg/fingerprint.svg +1 -0
  349. package/icons/svg/fire.svg +1 -0
  350. package/icons/svg/firewall.svg +1 -0
  351. package/icons/svg/fix.svg +1 -0
  352. package/icons/svg/flag.svg +1 -0
  353. package/icons/svg/folder-open.svg +1 -0
  354. package/icons/svg/folder-plus.svg +1 -0
  355. package/icons/svg/folder.svg +1 -0
  356. package/icons/svg/fork.svg +1 -0
  357. package/icons/svg/fullscreen-exit.svg +1 -0
  358. package/icons/svg/fullscreen.svg +1 -0
  359. package/icons/svg/function.svg +1 -0
  360. package/icons/svg/funnel.svg +1 -0
  361. package/icons/svg/gauge.svg +1 -0
  362. package/icons/svg/gift.svg +1 -0
  363. package/icons/svg/git-branch.svg +1 -0
  364. package/icons/svg/globe.svg +1 -0
  365. package/icons/svg/grid.svg +1 -0
  366. package/icons/svg/grip.svg +1 -0
  367. package/icons/svg/hand.svg +1 -0
  368. package/icons/svg/handshake.svg +1 -0
  369. package/icons/svg/hash.svg +1 -0
  370. package/icons/svg/heading.svg +1 -0
  371. package/icons/svg/heart.svg +1 -0
  372. package/icons/svg/heatmap.svg +1 -0
  373. package/icons/svg/help.svg +1 -0
  374. package/icons/svg/highlight.svg +1 -0
  375. package/icons/svg/history.svg +1 -0
  376. package/icons/svg/home.svg +1 -0
  377. package/icons/svg/hourglass.svg +1 -0
  378. package/icons/svg/id-card.svg +1 -0
  379. package/icons/svg/idea.svg +1 -0
  380. package/icons/svg/image.svg +1 -0
  381. package/icons/svg/import.svg +1 -0
  382. package/icons/svg/inbox.svg +1 -0
  383. package/icons/svg/incognito.svg +1 -0
  384. package/icons/svg/indent.svg +1 -0
  385. package/icons/svg/index.svg +1 -0
  386. package/icons/svg/info.svg +1 -0
  387. package/icons/svg/invoice.svg +1 -0
  388. package/icons/svg/italic.svg +1 -0
  389. package/icons/svg/json.svg +1 -0
  390. package/icons/svg/kanban.svg +1 -0
  391. package/icons/svg/key.svg +1 -0
  392. package/icons/svg/keyboard.svg +1 -0
  393. package/icons/svg/laptop.svg +1 -0
  394. package/icons/svg/layers.svg +1 -0
  395. package/icons/svg/layout.svg +1 -0
  396. package/icons/svg/leaf.svg +1 -0
  397. package/icons/svg/light.svg +1 -0
  398. package/icons/svg/link.svg +1 -0
  399. package/icons/svg/list-checks.svg +1 -0
  400. package/icons/svg/list-ordered.svg +1 -0
  401. package/icons/svg/list.svg +1 -0
  402. package/icons/svg/load-balancer.svg +1 -0
  403. package/icons/svg/lock.svg +1 -0
  404. package/icons/svg/log-in.svg +1 -0
  405. package/icons/svg/logs.svg +1 -0
  406. package/icons/svg/mail-open.svg +1 -0
  407. package/icons/svg/mail.svg +1 -0
  408. package/icons/svg/map.svg +1 -0
  409. package/icons/svg/mcp.svg +1 -0
  410. package/icons/svg/megaphone.svg +1 -0
  411. package/icons/svg/memory.svg +1 -0
  412. package/icons/svg/menu.svg +1 -0
  413. package/icons/svg/merge.svg +1 -0
  414. package/icons/svg/mic-off.svg +1 -0
  415. package/icons/svg/mic.svg +1 -0
  416. package/icons/svg/migrate.svg +1 -0
  417. package/icons/svg/minus-circle.svg +1 -0
  418. package/icons/svg/minus.svg +1 -0
  419. package/icons/svg/mobile.svg +1 -0
  420. package/icons/svg/moon.svg +1 -0
  421. package/icons/svg/more-vertical.svg +1 -0
  422. package/icons/svg/more.svg +1 -0
  423. package/icons/svg/mouse.svg +1 -0
  424. package/icons/svg/move.svg +1 -0
  425. package/icons/svg/mute.svg +1 -0
  426. package/icons/svg/network.svg +1 -0
  427. package/icons/svg/notebook.svg +1 -0
  428. package/icons/svg/null.svg +1 -0
  429. package/icons/svg/open-source.svg +1 -0
  430. package/icons/svg/organization.svg +1 -0
  431. package/icons/svg/outdent.svg +1 -0
  432. package/icons/svg/p-agent.svg +1 -0
  433. package/icons/svg/p-ai.svg +1 -0
  434. package/icons/svg/p-app.svg +1 -0
  435. package/icons/svg/p-cases.svg +1 -0
  436. package/icons/svg/p-data.svg +1 -0
  437. package/icons/svg/p-design.svg +1 -0
  438. package/icons/svg/p-domains.svg +1 -0
  439. package/icons/svg/p-files.svg +1 -0
  440. package/icons/svg/p-git.svg +1 -0
  441. package/icons/svg/p-learn.svg +1 -0
  442. package/icons/svg/p-mail.svg +1 -0
  443. package/icons/svg/p-run.svg +1 -0
  444. package/icons/svg/p-skills.svg +1 -0
  445. package/icons/svg/p-telemetry.svg +1 -0
  446. package/icons/svg/p-ui.svg +1 -0
  447. package/icons/svg/palette.svg +1 -0
  448. package/icons/svg/panel-bottom.svg +1 -0
  449. package/icons/svg/paperclip.svg +1 -0
  450. package/icons/svg/paragraph.svg +1 -0
  451. package/icons/svg/password.svg +1 -0
  452. package/icons/svg/paste.svg +1 -0
  453. package/icons/svg/pause.svg +1 -0
  454. package/icons/svg/pending.svg +1 -0
  455. package/icons/svg/percent.svg +1 -0
  456. package/icons/svg/performance.svg +1 -0
  457. package/icons/svg/phone.svg +1 -0
  458. package/icons/svg/picture-in-picture.svg +1 -0
  459. package/icons/svg/pin.svg +1 -0
  460. package/icons/svg/pipeline.svg +1 -0
  461. package/icons/svg/plan.svg +1 -0
  462. package/icons/svg/play.svg +1 -0
  463. package/icons/svg/plug.svg +1 -0
  464. package/icons/svg/plus-circle.svg +1 -0
  465. package/icons/svg/plus.svg +1 -0
  466. package/icons/svg/pointer.svg +1 -0
  467. package/icons/svg/policy.svg +1 -0
  468. package/icons/svg/power.svg +1 -0
  469. package/icons/svg/primary-key.svg +1 -0
  470. package/icons/svg/print.svg +1 -0
  471. package/icons/svg/prompt.svg +1 -0
  472. package/icons/svg/pull-request.svg +1 -0
  473. package/icons/svg/puzzle.svg +1 -0
  474. package/icons/svg/qr-code.svg +1 -0
  475. package/icons/svg/query.svg +1 -0
  476. package/icons/svg/queue.svg +1 -0
  477. package/icons/svg/quote.svg +1 -0
  478. package/icons/svg/rage-click.svg +1 -0
  479. package/icons/svg/receipt.svg +1 -0
  480. package/icons/svg/record.svg +1 -0
  481. package/icons/svg/redo.svg +1 -0
  482. package/icons/svg/refresh.svg +1 -0
  483. package/icons/svg/region.svg +1 -0
  484. package/icons/svg/relation.svg +1 -0
  485. package/icons/svg/release.svg +1 -0
  486. package/icons/svg/replay.svg +1 -0
  487. package/icons/svg/rewind.svg +1 -0
  488. package/icons/svg/robot.svg +1 -0
  489. package/icons/svg/rocket.svg +1 -0
  490. package/icons/svg/role.svg +1 -0
  491. package/icons/svg/rollback.svg +1 -0
  492. package/icons/svg/route.svg +1 -0
  493. package/icons/svg/rows.svg +1 -0
  494. package/icons/svg/rss.svg +1 -0
  495. package/icons/svg/ruler.svg +1 -0
  496. package/icons/svg/save.svg +1 -0
  497. package/icons/svg/scan.svg +1 -0
  498. package/icons/svg/scissors.svg +1 -0
  499. package/icons/svg/sdk.svg +1 -0
  500. package/icons/svg/search.svg +1 -0
  501. package/icons/svg/secret.svg +1 -0
  502. package/icons/svg/seed.svg +1 -0
  503. package/icons/svg/select.svg +1 -0
  504. package/icons/svg/self-host.svg +1 -0
  505. package/icons/svg/send.svg +1 -0
  506. package/icons/svg/server.svg +1 -0
  507. package/icons/svg/settings.svg +1 -0
  508. package/icons/svg/share.svg +1 -0
  509. package/icons/svg/shield-alert.svg +1 -0
  510. package/icons/svg/shield-off.svg +1 -0
  511. package/icons/svg/shield-user.svg +1 -0
  512. package/icons/svg/shield.svg +1 -0
  513. package/icons/svg/sidebar-left.svg +1 -0
  514. package/icons/svg/sidebar-right.svg +1 -0
  515. package/icons/svg/sign-out.svg +1 -0
  516. package/icons/svg/signals-in.svg +1 -0
  517. package/icons/svg/skip-back.svg +1 -0
  518. package/icons/svg/skip-forward.svg +1 -0
  519. package/icons/svg/slash.svg +1 -0
  520. package/icons/svg/sleep.svg +1 -0
  521. package/icons/svg/sliders.svg +1 -0
  522. package/icons/svg/sort.svg +1 -0
  523. package/icons/svg/sparkle.svg +1 -0
  524. package/icons/svg/sparkline.svg +1 -0
  525. package/icons/svg/split.svg +1 -0
  526. package/icons/svg/star.svg +1 -0
  527. package/icons/svg/stop.svg +1 -0
  528. package/icons/svg/strikethrough.svg +1 -0
  529. package/icons/svg/success.svg +1 -0
  530. package/icons/svg/suggestion.svg +1 -0
  531. package/icons/svg/sum.svg +1 -0
  532. package/icons/svg/summary.svg +1 -0
  533. package/icons/svg/sun.svg +1 -0
  534. package/icons/svg/support.svg +1 -0
  535. package/icons/svg/swap-vertical.svg +1 -0
  536. package/icons/svg/swap.svg +1 -0
  537. package/icons/svg/table.svg +1 -0
  538. package/icons/svg/tablet.svg +1 -0
  539. package/icons/svg/tag.svg +1 -0
  540. package/icons/svg/target.svg +1 -0
  541. package/icons/svg/team.svg +1 -0
  542. package/icons/svg/terminal.svg +1 -0
  543. package/icons/svg/test.svg +1 -0
  544. package/icons/svg/text.svg +1 -0
  545. package/icons/svg/theme.svg +1 -0
  546. package/icons/svg/thumbs-down.svg +1 -0
  547. package/icons/svg/thumbs-up.svg +1 -0
  548. package/icons/svg/timer.svg +1 -0
  549. package/icons/svg/toggle.svg +1 -0
  550. package/icons/svg/traces.svg +1 -0
  551. package/icons/svg/translate.svg +1 -0
  552. package/icons/svg/trash.svg +1 -0
  553. package/icons/svg/trend-down.svg +1 -0
  554. package/icons/svg/trend-up.svg +1 -0
  555. package/icons/svg/two-factor.svg +1 -0
  556. package/icons/svg/underline.svg +1 -0
  557. package/icons/svg/undo.svg +1 -0
  558. package/icons/svg/unlink.svg +1 -0
  559. package/icons/svg/unlock.svg +1 -0
  560. package/icons/svg/upgrade.svg +1 -0
  561. package/icons/svg/upload.svg +1 -0
  562. package/icons/svg/uptime.svg +1 -0
  563. package/icons/svg/usage.svg +1 -0
  564. package/icons/svg/user-check.svg +1 -0
  565. package/icons/svg/user-circle.svg +1 -0
  566. package/icons/svg/user-minus.svg +1 -0
  567. package/icons/svg/user-plus.svg +1 -0
  568. package/icons/svg/user-x.svg +1 -0
  569. package/icons/svg/user.svg +1 -0
  570. package/icons/svg/users.svg +1 -0
  571. package/icons/svg/variable.svg +1 -0
  572. package/icons/svg/verified.svg +1 -0
  573. package/icons/svg/video.svg +1 -0
  574. package/icons/svg/volume.svg +1 -0
  575. package/icons/svg/wallet.svg +1 -0
  576. package/icons/svg/wand.svg +1 -0
  577. package/icons/svg/warning.svg +1 -0
  578. package/icons/svg/watch.svg +1 -0
  579. package/icons/svg/wave.svg +1 -0
  580. package/icons/svg/web.svg +1 -0
  581. package/icons/svg/webhook.svg +1 -0
  582. package/icons/svg/wifi-off.svg +1 -0
  583. package/icons/svg/wifi.svg +1 -0
  584. package/icons/svg/window.svg +1 -0
  585. package/icons/svg/zoom-in.svg +1 -0
  586. package/icons/svg/zoom-out.svg +1 -0
  587. package/package.json +108 -4
  588. package/src/characters/data.ts +13 -0
  589. package/src/characters/index.ts +23 -0
  590. package/src/dom/search.ts +59 -0
  591. package/src/i18n/index.ts +140 -0
  592. package/src/icons/data.ts +760 -0
  593. package/tokens/tokens.json +625 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ // A row of Stats before their numbers are known.
3
+ import StatSkeleton from './StatSkeleton.astro';
4
+ interface Props { items?: number; delta?: boolean }
5
+ const { items = 4, delta = true } = Astro.props;
6
+ ---
7
+ <div class="sy-stats" data-skeleton aria-hidden="true">{Array.from({ length: items }, () => <StatSkeleton delta={delta} />)}</div>
@@ -0,0 +1,10 @@
1
+ ---
2
+ // A Stat before its number is known: the label, the value and the change, as bars.
3
+ interface Props { delta?: boolean }
4
+ const { delta = true } = Astro.props;
5
+ ---
6
+ <div class="sy-stat" data-skeleton aria-hidden="true">
7
+ <span class="sy-stat__label"><span class="sy-skeleton sy-skeleton--text" style="width:6rem"></span></span>
8
+ <span class="sy-stat__value"><span class="sy-skeleton sy-skeleton--text" style="width:4.5ch"></span></span>
9
+ {delta && <span class="sy-stat__delta"><span class="sy-skeleton sy-skeleton--text" style="width:7rem"></span></span>}
10
+ </div>
@@ -0,0 +1,6 @@
1
+ ---
2
+ // A light and a word: is this thing well? `live` makes the light breathe (it is on now).
3
+ interface Props { tone?: 'info' | 'ok' | 'warn' | 'fail' | 'neutral' | 'lit'; live?: boolean; class?: string }
4
+ const { tone = 'neutral', live, class: className } = Astro.props;
5
+ ---
6
+ <span class:list={['sy-status', tone !== 'neutral' && `sy-status--${tone}`, live && 'sy-status--live', className]}><slot /></span>
@@ -0,0 +1,4 @@
1
+ ---
2
+ // A Status whose words are still loading.
3
+ ---
4
+ <span class="sy-status" data-skeleton aria-hidden="true"><span class="sy-skeleton sy-skeleton--text" style="width:5em;display:inline-block;vertical-align:middle"></span></span>
@@ -0,0 +1,5 @@
1
+ ---
2
+ interface Props { title?: string; id?: string }
3
+ const { title, id } = Astro.props;
4
+ ---
5
+ <li class="sy-step"><div class="sy-step__body">{title && <h3 class="sy-step__title" id={id}>{title}</h3>}<slot /></div></li>
@@ -0,0 +1,4 @@
1
+ ---
2
+ // A how-to, numbered. Each <Step> holds the exact command or code and, often, what the reader should see (<Expected>).
3
+ ---
4
+ <ol class="sy-steps" role="list"><slot /></ol>
@@ -0,0 +1,7 @@
1
+ ---
2
+ // Stays in view while the page scrolls.
3
+ import { styleOf } from './_gap';
4
+ interface Props { edge?: 'top' | 'bottom'; offset?: string; class?: string }
5
+ const { edge = 'top', offset, class: className } = Astro.props;
6
+ ---
7
+ <div class:list={['sy-sticky', edge === 'bottom' && 'sy-sticky--bottom', className]} style={styleOf(edge === 'top' ? { '--top': offset } : { '--bottom': offset })}><slot /></div>
@@ -0,0 +1,16 @@
1
+ ---
2
+ // «On this page»: the headings of the article. As a sticky column on wide screens (the light follows what is being read,
3
+ // through <sy-toc>), and with `inline`, folded into the article on narrower ones.
4
+ import Icon from './Icon.astro';
5
+ import { wordsOf } from './_locale';
6
+ export interface TocHeading { id: string; text: string; depth: number }
7
+ interface Props { headings: TocHeading[]; inline?: boolean; title?: string; locale?: string }
8
+ const { headings, inline } = Astro.props;
9
+ const { t } = wordsOf(Astro);
10
+ const title = Astro.props.title ?? t('onThisPage');
11
+ const top = Math.min(...headings.map((h) => h.depth), 6);
12
+ const shown = headings.filter((h) => h.depth <= top + 1);
13
+ ---
14
+ {shown.length > 1 && (inline
15
+ ? <details class="sy-toc-inline"><summary>{title}<Icon name="chevron-down" /></summary><ol>{shown.map((h) => <li><a class:list={[h.depth > top && 'is-sub']} href={`#${h.id}`}>{h.text}</a></li>)}</ol></details>
16
+ : <sy-toc class="sy-toc" role="navigation" aria-label={title}><p class="sy-toc__title" aria-hidden="true">{title}</p><ol>{shown.map((h) => <li><a class:list={[h.depth > top && 'is-sub']} href={`#${h.id}`}>{h.text}</a></li>)}</ol>{Astro.slots.has('default') && <div class="sy-toc__tools"><slot /></div>}</sy-toc>)}
@@ -0,0 +1,5 @@
1
+ ---
2
+ interface Props { items?: number }
3
+ const { items = 5 } = Astro.props;
4
+ ---
5
+ <div class="sy-toc" data-skeleton aria-hidden="true"><span class="sy-skeleton sy-skeleton--text" style="--w:6rem;margin-bottom:0.9rem"></span><ol>{Array.from({ length: items }, (_, i) => <li><span class="sy-skeleton sy-skeleton--text" style={`--w:${55 + ((i * 19) % 35)}%;margin:0.5rem 0 0.5rem 0.9rem`}></span></li>)}</ol></div>
@@ -0,0 +1,16 @@
1
+ ---
2
+ // A Table before its columns are known: the header, the rows and, with `pagination`, the bar under them. On phones
3
+ // it is cards, like the real one: the first cell of each row is its title.
4
+ import Skeleton from './Skeleton.astro';
5
+ import PaginationSkeleton from './PaginationSkeleton.astro';
6
+ interface Props { columns?: number; rows?: number; pagination?: boolean; dense?: boolean }
7
+ const { columns = 4, rows = 6, pagination, dense } = Astro.props;
8
+ const cols = Array.from({ length: columns }, (_, i) => i);
9
+ ---
10
+ <div class="sy-table-wrap" data-skeleton aria-hidden="true">
11
+ <table class:list={['sy-table sy-table--cards', dense && 'sy-table--dense']}>
12
+ <thead><tr>{cols.map((i) => <th scope="col"><Skeleton width={`${3.5 + ((i * 7) % 4)}rem`} /></th>)}</tr></thead>
13
+ <tbody>{Array.from({ length: rows }, (_, r) => <tr>{cols.map((i) => <td data-title={i === 0 ? '' : undefined}><Skeleton width={`${45 + ((r * 17 + i * 29) % 45)}%`} /></td>)}</tr>)}</tbody>
14
+ </table>
15
+ {pagination && <div class="sy-table-wrap__foot"><PaginationSkeleton /></div>}
16
+ </div>
@@ -0,0 +1,31 @@
1
+ ---
2
+ // Views of the same place, one at a time. Each item's content goes in the slot named by its id:
3
+ // <Tabs label="Install with" items={[{ id: 'npm', label: 'npm' }, { id: 'pnpm', label: 'pnpm' }]} sync="pm">
4
+ // <div slot="npm">…</div><div slot="pnpm">…</div>
5
+ // </Tabs>
6
+ // Behaviour comes from <sy-tabs>: arrow keys, Home and End; with `sync`, the choice is remembered and every tab set of
7
+ // the same group on the page follows. Without JavaScript every panel shows, each under its own name.
8
+ import Icon from './Icon.astro';
9
+ import type { IconName } from '../src/icons/data';
10
+ import { nextId } from './_id';
11
+ interface Item { id: string; label: string; icon?: IconName }
12
+ interface Props { items: Item[]; label: string; sync?: string; selected?: string; class?: string }
13
+ const { items, label, sync, selected = items[0]?.id, class: className } = Astro.props;
14
+ const uid = nextId('tabs');
15
+ const panels = await Promise.all(items.map(async (i) => (Astro.slots.has(i.id) ? Astro.slots.render(i.id) : '')));
16
+ ---
17
+ <sy-tabs sync={sync} class:list={['sy-tabset', className]}>
18
+ <div role="tablist" class="sy-tabs" aria-label={label}>
19
+ {items.map((i) => (
20
+ <button type="button" role="tab" class="sy-tab" id={`${uid}-t-${i.id}`} aria-controls={`${uid}-p-${i.id}`} aria-selected={i.id === selected ? 'true' : 'false'} tabindex={i.id === selected ? 0 : -1} data-value={i.id}>
21
+ {i.icon && <Icon name={i.icon} />}{i.label}
22
+ </button>
23
+ ))}
24
+ </div>
25
+ {items.map((i, n) => (
26
+ <div role="tabpanel" class="sy-tabpanel" id={`${uid}-p-${i.id}`} aria-labelledby={`${uid}-t-${i.id}`} tabindex="0" hidden={i.id !== selected}>
27
+ <p class="sy-tabpanel__label">{i.label}</p>
28
+ <Fragment set:html={panels[n]} />
29
+ </div>
30
+ ))}
31
+ </sy-tabs>
@@ -0,0 +1,6 @@
1
+ ---
2
+ // Tabs whose names are still loading: the same bar of tabs.
3
+ interface Props { items?: number }
4
+ const { items = 3 } = Astro.props;
5
+ ---
6
+ <div class="sy-tabs" data-skeleton aria-hidden="true">{Array.from({ length: items }, () => <span class="sy-tab"><span class="sy-skeleton sy-skeleton--text"></span></span>)}</div>
@@ -0,0 +1,8 @@
1
+ ---
2
+ // A word of the vocabulary: shows its definition on hover or focus (inside <Terms>) and links to the glossary entry.
3
+ interface Props { term: string; definition: string; href?: string }
4
+ const { term, definition, href } = Astro.props;
5
+ ---
6
+ {href
7
+ ? <a class="sy-term" href={href} data-term={term} data-def={definition}><slot>{term}</slot></a>
8
+ : <span class="sy-term" tabindex="0" data-term={term} data-def={definition}><slot>{term}</slot></span>}
@@ -0,0 +1,4 @@
1
+ ---
2
+ // Wrap an article (or the whole page) so its <Term>s show their definitions. Behaviour: <sy-terms>.
3
+ ---
4
+ <sy-terms style="display: contents"><slot /></sy-terms>
@@ -0,0 +1,6 @@
1
+ ---
2
+ // Interface text, in the sizes and tones of the tokens.
3
+ interface Props { as?: string; size?: 'lead' | 'md' | 'sm' | 'xs' | '2xs'; tone?: 'default' | 'soft' | 'muted'; strong?: boolean; truncate?: boolean; numeric?: boolean; class?: string }
4
+ const { as: Tag = 'p', size = 'md', tone = 'default', strong, truncate, numeric, class: className } = Astro.props;
5
+ ---
6
+ <Tag class:list={['sy-text', size === 'lead' ? 'sy-text--lead' : size !== 'md' && `sy-text--${size}`, tone !== 'default' && `sy-text--${tone}`, strong && 'sy-text--strong', truncate && 'sy-truncate', numeric && 'sy-num', className]}><slot /></Tag>
@@ -0,0 +1,9 @@
1
+ ---
2
+ // Text that is still loading: lines of the text's height, the last one shorter, and a title if it has one.
3
+ interface Props { lines?: number; title?: boolean }
4
+ const { lines = 3, title } = Astro.props;
5
+ ---
6
+ <div data-skeleton aria-hidden="true">
7
+ {title && <span class="sy-skeleton sy-skeleton--text" style="--w:40%;--h:1.2em"></span>}
8
+ {Array.from({ length: lines }, (_, i) => <span class="sy-skeleton sy-skeleton--text" style={`--w:${i === lines - 1 ? '60%' : '100%'}`}></span>)}
9
+ </div>
@@ -0,0 +1,7 @@
1
+ ---
2
+ // A row of controls that act on one thing: one tab stop, the arrow keys move between them (through <sy-toolbar>).
3
+ // Put the controls in <ToolbarGroup>s; <ToolbarSeparator /> between groups.
4
+ interface Props { label: string; bar?: boolean; icons?: boolean; start?: boolean; class?: string }
5
+ const { label, bar, icons, start, class: className } = Astro.props;
6
+ ---
7
+ <sy-toolbar style="display: contents"><div role="toolbar" aria-label={label} class:list={['sy-toolbar', bar && 'sy-toolbar--bar', icons && 'sy-toolbar--icons', start && 'sy-toolbar--start', className]}><slot /></div></sy-toolbar>
@@ -0,0 +1,5 @@
1
+ ---
2
+ interface Props { label?: string; icons?: boolean }
3
+ const { label, icons } = Astro.props;
4
+ ---
5
+ <div role="group" aria-label={label} class:list={['sy-toolbar__group', icons && 'sy-toolbar__group--icons']}><slot /></div>
@@ -0,0 +1 @@
1
+ <div role="separator" aria-orientation="vertical" class="sy-toolbar__sep"></div>
@@ -0,0 +1,6 @@
1
+ ---
2
+ // The toolbar while what it acts on is loading.
3
+ interface Props { items?: number; bar?: boolean }
4
+ const { items = 3, bar } = Astro.props;
5
+ ---
6
+ <div class:list={['sy-toolbar', bar && 'sy-toolbar--bar']} data-skeleton aria-hidden="true"><div class="sy-toolbar__group">{Array.from({ length: items }, () => <span class="sy-skeleton" style="--w:6.5rem;--h:var(--ctl-h-sm);--r:var(--r-2)"></span>)}</div></div>
@@ -0,0 +1,8 @@
1
+ ---
2
+ // Since which version a thing exists, or that it is not here yet. `status`: new (lit), stable, planned (an empty ring),
3
+ // deprecated.
4
+ interface Props { version?: string; status?: 'new' | 'stable' | 'planned' | 'deprecated'; label?: string }
5
+ const { version, status = 'stable', label } = Astro.props;
6
+ const tone = status === 'new' ? 'sy-badge--light sy-badge--dot' : status === 'deprecated' ? 'sy-badge--warn' : status === 'planned' ? 'sy-badge--outline' : 'sy-badge--outline';
7
+ ---
8
+ <span class:list={['sy-badge', tone]} title={label}>{label ?? (version ? `v${version.replace(/^v/, '')}` : status)}</span>
package/astro/_gap.ts ADDED
@@ -0,0 +1,5 @@
1
+ // A step of the spacing scale (0–10) or any CSS length, as the value of --gap; and a style string from CSS variables.
2
+ export type Gap = number | string;
3
+ export const gapVar = (gap?: Gap) => (gap === undefined ? undefined : typeof gap === 'number' ? `var(--s-${gap})` : gap);
4
+ export const styleOf = (vars: Record<string, string | number | undefined>, extra?: string) =>
5
+ [...Object.entries(vars).filter(([, v]) => v !== undefined).map(([k, v]) => `${k}:${v}`), extra].filter(Boolean).join(';') || undefined;
package/astro/_id.ts ADDED
@@ -0,0 +1,3 @@
1
+ // Ids that are unique within one render of a page.
2
+ let n = 0;
3
+ export const nextId = (prefix: string) => `${prefix}-${(++n).toString(36)}`;
@@ -0,0 +1,9 @@
1
+ // The language of an Astro component: its own `locale` prop, else the page's (Astro i18n routing, or an /es/ prefix).
2
+ import { translate, type StringKey } from '../src/i18n/index';
3
+ type Page = { props: { locale?: string }; currentLocale?: string; url: URL };
4
+ export const localeOf = (a: Page): string =>
5
+ a.props.locale ?? a.currentLocale ?? (/^\/es(\/|$)/.test(a.url.pathname) ? 'es' : 'en');
6
+ export const wordsOf = (a: Page) => {
7
+ const locale = localeOf(a);
8
+ return { locale, t: (key: StringKey, vars?: Record<string, string | number>) => translate(locale, key, vars) };
9
+ };
package/css/base.css ADDED
@@ -0,0 +1,92 @@
1
+ /* Sypnia base: reset, the three voices, focus, icons and layout helpers. Tokens live in tokens.css. */
2
+ @layer sypnia.base {
3
+ *, *::before, *::after { box-sizing: border-box; }
4
+ html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
5
+ body {
6
+ margin: 0; background: var(--bg); color: var(--fg);
7
+ font-family: var(--font-ui); font-size: var(--text-md); line-height: var(--leading-body); letter-spacing: var(--track-ui); word-spacing: var(--word-ui);
8
+ font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
9
+ overflow-x: clip;
10
+ }
11
+ img, svg, video, canvas { display: block; max-width: 100%; }
12
+ h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd, pre { margin: 0; }
13
+ h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: 600; line-height: var(--leading-ui); }
14
+ ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
15
+ button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; word-spacing: inherit; }
16
+ button { -webkit-tap-highlight-color: transparent; }
17
+ a { color: inherit; }
18
+ p { text-wrap: pretty; }
19
+ ::selection { background: var(--glow); color: var(--night-950); }
20
+ [hidden] { display: none !important; }
21
+ [data-surface] { background: var(--bg); color: var(--fg); }
22
+
23
+ /* ---- focus: a ring of light, always visible, never removed ---- */
24
+ :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-1); }
25
+
26
+ /* ---- the three voices ---- */
27
+ .sy-voice, .sy-display, .sy-machine, code, kbd, pre, samp { word-spacing: 0; }
28
+ /* Voice: what Sypnia says, in plain language. */
29
+ .sy-voice { font-family: var(--font-voice); font-optical-sizing: auto; font-weight: 400; letter-spacing: var(--track-voice); line-height: var(--leading-voice); font-variant-numeric: oldstyle-nums proportional-nums; text-wrap: balance; }
30
+ .sy-display { font-family: var(--font-voice); font-optical-sizing: auto; font-weight: 380; letter-spacing: var(--track-display); line-height: var(--leading-display); text-wrap: balance; font-variant-numeric: lining-nums; }
31
+ .sy-display--lg { font-size: var(--display-lg); }
32
+ .sy-display--md { font-size: var(--display-md); line-height: 1.05; }
33
+ .sy-display--sm { font-size: var(--display-sm); line-height: 1.1; letter-spacing: -0.018em; }
34
+ .sy-display--xs { font-size: var(--display-xs); line-height: 1.16; letter-spacing: -0.014em; }
35
+ /* Machine: what the machine said. */
36
+ .sy-machine { font-family: var(--font-machine); font-size: 0.8125em; letter-spacing: var(--track-machine); font-feature-settings: 'zero' 1; }
37
+ code, kbd, pre, samp { font-family: var(--font-machine); letter-spacing: var(--track-machine); }
38
+ :not(pre) > code { font-size: 0.84em; padding: 0.12em 0.4em; border-radius: var(--r-1); background: color-mix(in oklab, var(--fg) 9%, transparent); }
39
+ /* Interface text */
40
+ .sy-text { font-size: var(--text-md); line-height: var(--leading-body); }
41
+ .sy-text--lead { font-size: var(--text-lg); line-height: 1.5; color: var(--fg-soft); }
42
+ .sy-text--sm { font-size: var(--text-sm); } .sy-text--xs { font-size: var(--text-xs); } .sy-text--2xs { font-size: var(--text-2xs); }
43
+ .sy-text--soft { color: var(--fg-soft); } .sy-text--muted { color: var(--fg-muted); }
44
+ .sy-text--strong { font-weight: 600; }
45
+ .sy-num { font-variant-numeric: tabular-nums lining-nums; }
46
+ .sy-heading { font-weight: 600; line-height: var(--leading-ui); letter-spacing: -0.01em; text-wrap: balance; }
47
+ .sy-heading--1 { font-size: var(--text-xl); } .sy-heading--2 { font-size: var(--text-lg); } .sy-heading--3 { font-size: var(--text-md); } .sy-heading--4 { font-size: var(--text-sm); }
48
+ .sy-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
49
+
50
+ /* The highlighter: on paper a stroke of glow behind ink; on night a wash of light. */
51
+ mark, .sy-mark { background: linear-gradient(transparent 12%, var(--mark) 12% 92%, transparent 92%); color: inherit; padding: 0 0.12em; margin: 0 -0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
52
+
53
+ /* ---- layout helpers: the only layout an app writes is which of these it uses ---- */
54
+ .sy-wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
55
+ .sy-stack { display: flex; flex-direction: column; gap: var(--gap, var(--gap-stack)); min-width: 0; }
56
+ .sy-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--s-3)); min-width: 0; }
57
+ .sy-row--between { justify-content: space-between; }
58
+ .sy-row--end { justify-content: flex-end; }
59
+ .sy-row--top { align-items: flex-start; }
60
+ .sy-row--nowrap { flex-wrap: nowrap; }
61
+ .sy-grid { display: grid; gap: var(--gap, var(--s-4)); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 16rem)), 1fr)); }
62
+ .sy-cols { display: grid; gap: var(--gap, var(--s-4)); grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
63
+ .sy-grow { flex: 1 1 0; min-width: 0; }
64
+ .sy-divider { border: 0; border-top: 1px solid var(--line); margin: 0; align-self: stretch; }
65
+ .sy-divider--v { border-top: 0; border-left: 1px solid var(--line); }
66
+ .sy-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
67
+ .sy-scroll-x { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
68
+ /* On phones, bars of options sit two by two: nothing scrolls sideways. */
69
+ @media (max-width: 40rem) {
70
+ .sy-cols { grid-template-columns: repeat(min(var(--cols, 2), 2), minmax(0, 1fr)); }
71
+ .sy-cols--stack { grid-template-columns: minmax(0, 1fr); }
72
+ .sy-row--pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
73
+ .sy-row--pairs > * { width: 100%; min-width: 0; }
74
+ }
75
+
76
+ /* ---- icons: the Sypnia set, «lid and light» ---- */
77
+ .sy-icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
78
+ .sy-icon .lit { fill: var(--icon-lit, currentColor); stroke: var(--icon-lit-ring, none); stroke-width: 1.2; }
79
+ .sy-icon .lit.fail { fill: var(--icon-fail, var(--icon-lit)); }
80
+ .sy-icon--plain .lit { fill: currentColor; stroke: none; }
81
+
82
+ /* ---- entering: things light up, they do not fly in. Opt in with data-enter. ---- */
83
+ @keyframes sy-enter { from { opacity: 0; translate: 0 var(--shift); } }
84
+ @keyframes sy-fade { from { opacity: 0; } }
85
+ @keyframes sy-shimmer { to { background-position: -200% 0; } }
86
+ [data-enter] { animation: sy-enter var(--dur-2) var(--ease-out) both; }
87
+
88
+ @media (prefers-reduced-motion: reduce) {
89
+ html { scroll-behavior: auto; }
90
+ *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
91
+ }
92
+ }
@@ -0,0 +1,36 @@
1
+ /* More actions: SplitButton, ToggleButton and ToggleGroup, CopyButton, Link variants, Shortcut. They are built on
2
+ .sy-btn and .sy-kbd, so they read as the same family as Button and Kbd. */
3
+ @layer sypnia.components {
4
+ /* SplitButton: the main button and its arrow share one box; a thin seam separates them. */
5
+ .sy-splitbtn { display: inline-flex; align-items: stretch; min-width: 0; }
6
+ .sy-splitbtn > .sy-btn:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
7
+ .sy-splitbtn > .sy-splitbtn__menu { border-start-start-radius: 0; border-end-start-radius: 0; margin-inline-start: 1px; width: auto; padding-inline: 0.55rem; }
8
+ .sy-splitbtn--secondary > .sy-splitbtn__menu { margin-inline-start: -1.5px; }
9
+ .sy-splitbtn__menu .sy-icon { width: 1rem; height: 1rem; }
10
+ @media (max-width: 40rem) { .sy-splitbtn { display: flex; } .sy-splitbtn > .sy-btn:first-child { flex: 1 1 auto; } }
11
+
12
+ /* ToggleButton: pressed is lit, like a selected tab on phones: the light's tint and its ring. */
13
+ .sy-toggle[data-selected] { background: var(--state-selected); border-color: var(--light); color: var(--fg); }
14
+ .sy-toggle[data-selected] .sy-icon { color: var(--fg); }
15
+ .sy-togglegroup { display: inline-flex; min-width: 0; }
16
+ .sy-togglegroup > .sy-toggle:not(:first-child) { margin-inline-start: -1.5px; border-start-start-radius: 0; border-end-start-radius: 0; }
17
+ .sy-togglegroup > .sy-toggle:not(:last-child) { border-start-end-radius: 0; border-end-end-radius: 0; }
18
+ .sy-togglegroup > .sy-toggle[data-selected], .sy-togglegroup > .sy-toggle[data-focus-visible] { z-index: 1; }
19
+ @media (max-width: 40rem) {
20
+ .sy-togglegroup:has(> :nth-child(5)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
21
+ .sy-togglegroup:has(> :nth-child(5)) > .sy-toggle { margin: 0; border-radius: var(--r-2); }
22
+ }
23
+
24
+ /* CopyButton: the check stays for a moment in the colour of success. */
25
+ .sy-copybtn--done .sy-icon { color: var(--ok-text); }
26
+
27
+ /* Links: muted reads as secondary text; external carries a small arrow. */
28
+
29
+ /* BackButton sits at the start of a page header, aligned with the text under it. */
30
+ .sy-backbtn { margin-inline-start: calc(var(--ctl-px-sm, 0.6rem) * -1); }
31
+
32
+ /* Shortcut: keys in a row; «then» between keys pressed one after another. */
33
+ .sy-shortcut { display: inline-flex; align-items: center; gap: 0.2rem; vertical-align: middle; }
34
+ .sy-shortcut__then { color: var(--fg-muted); font-size: var(--text-2xs); padding-inline: 0.1rem; }
35
+ .sy-shortcut[data-skeleton] .sy-kbd { width: 1.6em; border-color: transparent; }
36
+ }
@@ -0,0 +1,28 @@
1
+ /* Brand pieces: Nia and Nio (Character) and the night field (Fireflies). The Logo lives in shell.css. */
2
+ @layer sypnia.components {
3
+ .sy-character { display: inline-block; width: var(--size, 7.5rem); height: auto; flex: none; overflow: visible; vertical-align: middle; }
4
+ .sy-character svg { display: block; width: 100%; height: auto; overflow: visible; }
5
+
6
+ /* Fireflies: scattered at build time, they drift and twinkle; the ones that would touch text are dropped (see
7
+ <sy-fireflies>). Place it as the first child of a section with `position: relative; isolation: isolate`.
8
+ With reduced motion they stay still (the motion tokens stop the loop). */
9
+ .sy-flies { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
10
+ .sy-flies i { visibility: hidden; position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: var(--fly); opacity: var(--o); box-shadow: 0 0 calc(var(--s) * 2.2) color-mix(in oklab, var(--fly) 50%, transparent);
11
+ animation: sy-fly-drift var(--t) var(--ease-in-out) var(--d) infinite alternate, sy-fly-twinkle calc(var(--t) * 0.63) ease-in-out var(--d) infinite alternate; animation-play-state: var(--loop, running); }
12
+ .sy-flies[data-ready] i, sy-fireflies:not(:defined) .sy-flies i { visibility: visible; }
13
+ .sy-flies i[hidden] { display: none; }
14
+ @keyframes sy-fly-drift { to { translate: var(--dx) var(--dy); } }
15
+ @keyframes sy-fly-twinkle { from { opacity: calc(var(--o) * 0.35); } to { opacity: var(--o); } }
16
+ }
17
+
18
+ /* Says: Sypnia speaking to the person, in the voice, opened by the lit dot. ProductMark: a product's icon and name. */
19
+ @layer sypnia.components {
20
+ .sy-says { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.75em; align-items: baseline; font-family: var(--font-voice); font-optical-sizing: auto; font-size: var(--says-size, var(--text-xl)); line-height: 1.35; letter-spacing: var(--track-voice); word-spacing: 0.02em; color: var(--fg); text-wrap: pretty; max-width: var(--measure); }
21
+ .sy-says::before { content: ''; width: 0.42em; height: 0.42em; border-radius: 50%; translate: 0 -0.12em; background: var(--light-fill); box-shadow: 0 0 0 1.5px var(--light-ring), 0 0 0.8em 0.1em color-mix(in oklab, var(--glow) 40%, transparent); }
22
+ .sy-says--sm { --says-size: var(--text-lg); }
23
+ .sy-says--lg { --says-size: var(--display-xs); }
24
+ .sy-product { display: inline-flex; align-items: center; gap: 0.55em; color: var(--fg); font-weight: 600; font-size: var(--text-sm); white-space: nowrap; }
25
+ .sy-product > .sy-icon { width: 1.6em; height: 1.6em; }
26
+ .sy-product--lg { font-family: var(--font-voice); font-weight: 400; font-size: var(--text-xl); letter-spacing: var(--track-voice); }
27
+ .sy-product--tile > .sy-icon { width: 2.25rem; height: 2.25rem; padding: 0.45rem; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-raised); }
28
+ }
@@ -0,0 +1,84 @@
1
+ /* Button, IconButton, ButtonGroup.
2
+ primary: the one main action on a surface (it carries the light). secondary: the alternative. quiet: tertiary.
3
+ danger: something that cannot be undone. Labels are verbs in sentence case. */
4
+ @layer sypnia.components {
5
+ .sy-btn {
6
+ --_h: var(--ctl-h); --_px: var(--ctl-px);
7
+ position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
8
+ min-height: var(--_h); min-width: var(--_h); padding: 0 var(--_px);
9
+ border: 1.5px solid transparent; border-radius: var(--r-2); background: transparent; color: var(--fg);
10
+ font-weight: 600; font-size: var(--text-sm); line-height: 1; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
11
+ cursor: pointer; user-select: none; overflow: hidden;
12
+ transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1), box-shadow var(--dur-2) var(--ease-out), scale var(--dur-0);
13
+ }
14
+ .sy-btn:active:not(:disabled, [aria-disabled='true']) { scale: 0.98; }
15
+ .sy-btn--sm { --_h: var(--ctl-h-sm); --_px: var(--ctl-px-sm); font-size: var(--text-xs); border-radius: 7px; }
16
+ .sy-btn--lg { --_h: var(--ctl-h-lg); --_px: var(--ctl-px-lg); font-size: var(--text-md); }
17
+ .sy-btn--block { display: flex; width: 100%; }
18
+ .sy-btn .sy-icon { width: 1.2em; height: 1.2em; }
19
+
20
+ .sy-btn--primary { background: var(--light-fill); color: var(--on-light); border-color: var(--light-ring); }
21
+ .sy-btn--primary:hover { background: var(--glow-core); box-shadow: 0 0 0 4px color-mix(in oklab, var(--glow) 22%, transparent), 0 0 28px 2px color-mix(in oklab, var(--glow) 26%, transparent); }
22
+ .sy-btn--primary:active { background: var(--glow-600); box-shadow: none; }
23
+
24
+ .sy-btn--secondary { border-color: var(--line-strong); }
25
+ .sy-btn--secondary:hover { border-color: var(--fg); background: var(--state-hover); }
26
+ .sy-btn--secondary:active { background: var(--state-press); }
27
+
28
+ .sy-btn--quiet { color: var(--fg-soft); }
29
+ .sy-btn--quiet:hover { background: var(--state-hover); color: var(--fg); }
30
+ .sy-btn--quiet:active { background: var(--state-press); }
31
+ .sy-btn--quiet[aria-pressed='true'], .sy-btn--quiet[aria-expanded='true'] { background: var(--state-press); color: var(--fg); }
32
+
33
+ .sy-btn--danger { background: var(--danger-fill); color: var(--on-danger); }
34
+ .sy-btn--danger:hover { box-shadow: 0 0 0 4px color-mix(in oklab, var(--fail) 24%, transparent); }
35
+ .sy-btn--danger-quiet { color: var(--fail-text); }
36
+ .sy-btn--danger-quiet:hover { background: var(--fail-bg); }
37
+
38
+ .sy-btn:disabled, .sy-btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
39
+
40
+ /* Busy: the label stays (and may change to «Saving…»); a band of light crosses the button. Never a spinner. */
41
+ .sy-btn:is([aria-busy='true'], [data-pending]) { cursor: progress; }
42
+ .sy-btn:is([aria-busy='true'], [data-pending])::after {
43
+ content: ''; position: absolute; inset: 0; pointer-events: none;
44
+ background: linear-gradient(100deg, transparent 30%, color-mix(in oklab, currentColor 22%, transparent) 50%, transparent 70%) 0 0 / 200% 100%;
45
+ animation: sy-shimmer 1.2s linear infinite; animation-play-state: var(--loop, running);
46
+ }
47
+
48
+ /* IconButton: a square button with a name for screen readers (aria-label) and a tooltip. */
49
+ .sy-btn--icon { padding: 0; width: var(--_h); }
50
+ .sy-btn--icon .sy-icon { width: 1.25rem; height: 1.25rem; }
51
+ .sy-btn--icon.sy-btn--sm .sy-icon { width: 1.05rem; height: 1.05rem; }
52
+
53
+ /* ButtonGroup: related actions as one object. On phones a group of more than two wraps two by two. */
54
+ .sy-btn-group { display: inline-flex; }
55
+ .sy-btn-group > .sy-btn { border-radius: 0; margin-inline-start: -1.5px; }
56
+ .sy-btn-group > .sy-btn:first-child { border-start-start-radius: var(--r-2); border-end-start-radius: var(--r-2); margin-inline-start: 0; }
57
+ .sy-btn-group > .sy-btn:last-child { border-start-end-radius: var(--r-2); border-end-end-radius: var(--r-2); }
58
+ .sy-btn-group > .sy-btn:is(:hover, :focus-visible) { z-index: 1; }
59
+ /* Filled buttons have no visible border between them: a hairline of the surface separates them. */
60
+ .sy-btn-group > :is(.sy-btn--primary, .sy-btn--danger) + :is(.sy-btn--primary, .sy-btn--danger) { margin-inline-start: 1.5px; }
61
+
62
+ /* Actions: the row of buttons that closes a form or a dialog. Main action last; on phones two by two, main one full width. */
63
+ .sy-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: flex-end; align-items: center; }
64
+ .sy-actions--start { justify-content: flex-start; }
65
+ @media (max-width: 40rem) {
66
+ .sy-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
67
+ .sy-actions > :only-child, .sy-actions > .sy-btn--primary:last-child:nth-child(odd), .sy-actions > .sy-btn--danger:last-child:nth-child(odd) { grid-column: 1 / -1; }
68
+ .sy-actions > .sy-btn { width: 100%; }
69
+ }
70
+
71
+ /* Link */
72
+ .sy-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: text-decoration-color var(--dur-1); cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
73
+ .sy-link:hover { text-decoration-color: var(--light); text-decoration-thickness: 2px; }
74
+
75
+ /* Kbd: a key the person presses. */
76
+ .sy-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6em; height: 1.6em; padding: 0 0.4em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--r-1); background: var(--bg-raised); color: var(--fg-soft); font-family: var(--font-ui); font-size: var(--text-2xs); font-weight: 600; line-height: 1; letter-spacing: 0; word-spacing: 0; }
77
+ }
78
+
79
+ @layer sypnia.components {
80
+ /* Link variants (Link piece). */
81
+ .sy-link--muted { color: var(--fg-muted); }
82
+ .sy-link--muted:hover { color: var(--fg); }
83
+ .sy-link--external .sy-icon { width: 0.85em; height: 0.85em; margin-inline-start: 0.15em; vertical-align: -0.05em; }
84
+ }
@@ -0,0 +1,89 @@
1
+ /* More charts: HorizontalBar, Histogram, Heatmap, Scatter, Funnel, Waterfall, SparkBar and Gauge. Same method as
2
+ charts.css: thin marks, the five series colours, text in text colours. */
3
+ @layer sypnia.components {
4
+ /* Rows of a bar each: HorizontalBar and its skeleton. */
5
+ .sy-hbar { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
6
+ .sy-hbar__row { display: grid; grid-template-columns: minmax(6rem, 14rem) minmax(0, 1fr) minmax(3.5rem, auto); align-items: center; gap: var(--s-3); min-height: 30px; padding-inline: 0.25rem; border-radius: var(--r-1); font-size: var(--text-xs); outline: none; }
7
+ .sy-hbar__row:hover, .sy-hbar__row:focus-visible { background: var(--state-hover); }
8
+ .sy-hbar__row:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
9
+ .sy-hbar__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-soft); }
10
+ .sy-hbar__track { display: block; height: 0.65rem; }
11
+ .sy-hbar__bar { display: block; height: 100%; min-inline-size: 2px; border-radius: 0 3px 3px 0; background: var(--_c); }
12
+ .sy-hbar__value { text-align: end; font-weight: 600; }
13
+ .sy-hbar[data-skeleton] .sy-hbar__bar { inline-size: 60%; } .sy-hbar[data-skeleton] .sy-hbar__row:nth-child(2n) .sy-hbar__bar { inline-size: 35%; }
14
+ @media (max-width: 40rem) { .sy-hbar__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.25rem; padding-block: 0.3rem; } .sy-hbar__track { grid-column: 1 / -1; grid-row: 2; } }
15
+
16
+ /* Heatmap: a grid of cells shaded from the line colour to the first series colour. */
17
+ .sy-heat { display: grid; gap: var(--s-2); min-width: 0; }
18
+ .sy-heat__grid { display: grid; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
19
+ .sy-heat__row { display: grid; grid-template-columns: minmax(2.5rem, max-content) repeat(var(--cols), minmax(0.9rem, 1fr)); gap: 2px; align-items: center; }
20
+ .sy-heat__col { font-size: var(--text-2xs); color: var(--fg-muted); text-align: center; white-space: nowrap; overflow: visible; }
21
+ .sy-heat__row--head:has(> :nth-child(14)) .sy-heat__col:not(:nth-child(3n + 2)) { visibility: hidden; }
22
+ @media (min-width: 74rem) { .sy-heat__row--head:has(> :nth-child(14)) .sy-heat__col:not(:nth-child(3n + 2)) { visibility: visible; } }
23
+ .sy-heat__rowhead { font-size: var(--text-2xs); color: var(--fg-muted); padding-inline-end: var(--s-2); white-space: nowrap; }
24
+ .sy-heat__cell { aspect-ratio: 1.6; min-height: 0.9rem; border-radius: 2px; background: color-mix(in oklab, var(--viz-1) var(--_s, 0%), var(--bg-inset)); outline: none; }
25
+ .sy-heat__cell--none { background: none; box-shadow: inset 0 0 0 1px var(--line); }
26
+ .sy-heat__cell--at, .sy-heat__cell:focus-visible { box-shadow: 0 0 0 2px var(--focus); position: relative; z-index: 1; }
27
+ .sy-heat__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); font-size: var(--text-xs); color: var(--fg-soft); }
28
+ .sy-heat__scale { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--fg-muted); }
29
+ .sy-heat__scale i { width: 5rem; height: 0.5rem; border-radius: 2px; background: linear-gradient(90deg, color-mix(in oklab, var(--viz-1) 12%, var(--bg-inset)), var(--viz-1)); }
30
+
31
+ /* Scatter. */
32
+ .sy-scatter__dot { fill: var(--_c); fill-opacity: 0.75; stroke: var(--bg-raised); stroke-width: 1.5; outline: none; transition: r var(--dur-1); }
33
+ .sy-scatter__dot:focus-visible { stroke: var(--focus); stroke-width: 2.5; }
34
+
35
+ /* Funnel. */
36
+ .sy-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
37
+ .sy-funnel__step { display: grid; grid-template-columns: minmax(6rem, 12rem) minmax(0, 1fr) minmax(4.5rem, auto); align-items: center; gap: var(--s-3); padding: 0.2rem 0.25rem; border-radius: var(--r-1); font-size: var(--text-sm); outline: none; }
38
+ .sy-funnel__step:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
39
+ .sy-funnel__label { color: var(--fg-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
40
+ .sy-funnel__track { display: block; height: 1.5rem; background: var(--bg-inset); border-radius: 3px; }
41
+ .sy-funnel__bar { display: block; height: 100%; min-inline-size: 2px; border-radius: 3px; background: var(--_c); }
42
+ .sy-funnel__value { display: grid; justify-items: end; line-height: 1.2; }
43
+ .sy-funnel__value small { color: var(--fg-muted); font-size: var(--text-2xs); }
44
+ @media (max-width: 40rem) { .sy-funnel__step { grid-template-columns: minmax(0, 1fr) auto; } .sy-funnel__track { grid-column: 1 / -1; grid-row: 2; } }
45
+
46
+ /* Waterfall: names on the left, bars on a shared time line. */
47
+ .sy-waterfall { display: grid; gap: var(--s-1); min-width: 0; }
48
+ .sy-waterfall__axis { display: grid; grid-template-columns: minmax(7rem, 14rem) minmax(0, 1fr); gap: var(--s-3); padding-inline: 0.25rem; height: 1.1rem; font-size: var(--text-2xs); color: var(--fg-muted); }
49
+ .sy-waterfall__ticks { position: relative; display: block; }
50
+ .sy-waterfall__ticks > span { position: absolute; top: 0; translate: -50% 0; white-space: nowrap; }
51
+ .sy-waterfall__ticks > span:first-child { translate: 0 0; }
52
+ .sy-waterfall__ticks > span:last-child { translate: -100% 0; }
53
+ .sy-waterfall__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
54
+ .sy-waterfall__span { display: grid; grid-template-columns: minmax(7rem, 14rem) minmax(0, 1fr); align-items: center; gap: var(--s-3); min-height: 26px; padding-inline: 0.25rem; border-radius: var(--r-1); font-size: var(--text-xs); outline: none; }
55
+ .sy-waterfall__span:hover, .sy-waterfall__span:focus-visible { background: var(--state-hover); }
56
+ .sy-waterfall__span:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
57
+ .sy-waterfall__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-machine); font-size: 0.75rem; color: var(--fg-soft); }
58
+ .sy-waterfall__track { position: relative; display: block; height: 1rem; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); }
59
+ .sy-waterfall__bar { position: absolute; top: 0.2rem; bottom: 0.2rem; border-radius: 2px; background: var(--_c); }
60
+ .sy-waterfall__span--failed .sy-waterfall__bar { background: var(--fail); }
61
+ .sy-waterfall__span--failed .sy-waterfall__name { color: var(--fail-text); font-weight: 600; }
62
+ .sy-waterfall__time { position: absolute; top: 50%; translate: 0 -50%; font-size: var(--text-2xs); color: var(--fg-muted); white-space: nowrap; }
63
+ @media (max-width: 40rem) {
64
+ .sy-waterfall__span, .sy-waterfall__axis { grid-template-columns: minmax(0, 1fr); }
65
+ .sy-waterfall__axis > span:first-child { display: none; }
66
+ .sy-waterfall__span { row-gap: 0.15rem; padding-block: 0.25rem; }
67
+ }
68
+
69
+ /* SparkBar and Gauge. */
70
+ .sy-sparkbar { display: inline-block; vertical-align: middle; }
71
+ .sy-sparkbar rect { fill: var(--fg-muted); opacity: 0.55; }
72
+ .sy-sparkbar .sy-sparkbar__last { fill: var(--light-fill); opacity: 1; }
73
+ .sy-gauge { display: inline-grid; justify-items: center; gap: 0; --_c: var(--ok); }
74
+ .sy-gauge--warn { --_c: var(--warn); } .sy-gauge--fail { --_c: var(--fail); }
75
+ .sy-gauge__track { fill: none; stroke: var(--bg-inset); stroke-width: 12; stroke-linecap: round; }
76
+ .sy-gauge__fill { fill: none; stroke: var(--_c); stroke-width: 12; stroke-linecap: round; }
77
+ .sy-gauge figcaption { display: grid; justify-items: center; margin-top: -2.2rem; }
78
+ .sy-gauge figcaption b { font-size: var(--text-xl); font-weight: 600; }
79
+ .sy-gauge figcaption span { font-size: var(--text-xs); color: var(--fg-muted); }
80
+ .sy-gauge__ghost { display: block; border-radius: 999px 999px 0 0; }
81
+ .sy-gauge[data-skeleton] figcaption { margin-top: var(--s-2); } .sy-gauge[data-skeleton] figcaption .sy-skeleton { width: 5rem; }
82
+ }
83
+ @layer sypnia.components {
84
+ /* On phones the heatmap fits the width: thinner cells instead of a sideways scroll. */
85
+ @media (max-width: 40rem) {
86
+ .sy-heat__row { grid-template-columns: minmax(1.8rem, max-content) repeat(var(--cols), minmax(0, 1fr)); gap: 1px; }
87
+ .sy-heat__cell { aspect-ratio: 0.8; min-height: 0.7rem; }
88
+ }
89
+ }