@livenetworks/ashlar 1.6.1 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (559) hide show
  1. package/LICENSE +641 -0
  2. package/README.md +190 -86
  3. package/{js → components}/COMPONENTS.md +1116 -1108
  4. package/{js → components}/index.js +81 -58
  5. package/{js → components}/ln-accordion/README.md +7 -6
  6. package/components/ln-accordion/ln-accordion-dev.scss +8 -0
  7. package/components/ln-accordion/ln-accordion.js +1 -0
  8. package/components/ln-accordion/ln-accordion.schema.json +30 -0
  9. package/components/ln-accordion/ln-accordion.scss +8 -0
  10. package/{js → components}/ln-accordion/src/ln-accordion.js +8 -2
  11. package/{js → components}/ln-ajax/README.md +171 -160
  12. package/components/ln-ajax/ln-ajax-dev.scss +8 -0
  13. package/components/ln-ajax/ln-ajax.js +1 -0
  14. package/components/ln-ajax/ln-ajax.schema.json +30 -0
  15. package/{js → components}/ln-ajax/src/ln-ajax.js +65 -30
  16. package/{js → components}/ln-api-connector/README.md +27 -5
  17. package/components/ln-api-connector/ln-api-connector.js +1 -0
  18. package/components/ln-api-connector/ln-api-connector.schema.json +96 -0
  19. package/components/ln-api-connector/src/connector-core.js +97 -0
  20. package/components/ln-api-connector/src/ln-api-connector.js +447 -0
  21. package/{js → components}/ln-api-queue/README.md +12 -9
  22. package/components/ln-api-queue/ln-api-queue.js +1 -0
  23. package/components/ln-api-queue/ln-api-queue.schema.json +34 -0
  24. package/{js → components}/ln-api-queue/src/ln-api-queue.js +33 -14
  25. package/{js → components}/ln-api-queue/src/queue-storage.js +7 -3
  26. package/{js → components}/ln-autoresize/README.md +129 -127
  27. package/components/ln-autoresize/ln-autoresize-dev.scss +8 -0
  28. package/components/ln-autoresize/ln-autoresize.js +1 -0
  29. package/components/ln-autoresize/ln-autoresize.schema.json +22 -0
  30. package/{js → components}/ln-autoresize/src/ln-autoresize.js +8 -1
  31. package/{js → components}/ln-autosave/README.md +127 -124
  32. package/components/ln-autosave/ln-autosave-dev.scss +13 -0
  33. package/components/ln-autosave/ln-autosave.js +1 -0
  34. package/components/ln-autosave/ln-autosave.schema.json +48 -0
  35. package/components/ln-autosave/src/autosave-model.js +34 -0
  36. package/{js → components}/ln-autosave/src/ln-autosave.js +65 -58
  37. package/components/ln-chart/README.md +145 -0
  38. package/components/ln-chart/ln-chart-dev.scss +20 -0
  39. package/components/ln-chart/ln-chart.js +1 -0
  40. package/components/ln-chart/ln-chart.schema.json +146 -0
  41. package/components/ln-chart/ln-chart.scss +8 -0
  42. package/components/ln-chart/src/chart-model.js +154 -0
  43. package/components/ln-chart/src/ln-chart.js +176 -0
  44. package/{js → components}/ln-circular-progress/README.md +15 -14
  45. package/components/ln-circular-progress/ln-circular-progress-dev.scss +8 -0
  46. package/components/ln-circular-progress/ln-circular-progress.js +1 -0
  47. package/components/ln-circular-progress/ln-circular-progress.schema.json +42 -0
  48. package/{js → components}/ln-circular-progress/src/ln-circular-progress.js +32 -50
  49. package/{js → components}/ln-confirm/README.md +69 -18
  50. package/components/ln-confirm/ln-confirm-dev.scss +24 -0
  51. package/components/ln-confirm/ln-confirm.js +1 -0
  52. package/components/ln-confirm/ln-confirm.schema.json +66 -0
  53. package/components/ln-confirm/ln-confirm.scss +24 -0
  54. package/{js → components}/ln-confirm/src/ln-confirm.js +180 -171
  55. package/{js → components}/ln-core/README.md +374 -149
  56. package/components/ln-core/attrs.js +273 -0
  57. package/components/ln-core/compare.js +40 -0
  58. package/components/ln-core/crypto.js +265 -0
  59. package/components/ln-core/date.js +50 -0
  60. package/components/ln-core/dom.js +115 -0
  61. package/components/ln-core/events.js +122 -0
  62. package/components/ln-core/form.js +136 -0
  63. package/{js → components}/ln-core/hash.js +149 -92
  64. package/components/ln-core/helpers.js +33 -0
  65. package/components/ln-core/http.js +48 -0
  66. package/components/ln-core/index.js +11 -0
  67. package/components/ln-core/lifecycle.js +403 -0
  68. package/components/ln-core/ln-core.schema.json +109 -0
  69. package/components/ln-core/locale.js +55 -0
  70. package/components/ln-core/matching.js +78 -0
  71. package/components/ln-core/number.js +125 -0
  72. package/components/ln-core/progress.js +30 -0
  73. package/components/ln-core/template.js +206 -0
  74. package/{js → components}/ln-core/window-cache.js +247 -213
  75. package/{js → components}/ln-couchdb-connector/README.md +7 -5
  76. package/components/ln-couchdb-connector/ln-couchdb-connector.js +1 -0
  77. package/components/ln-couchdb-connector/ln-couchdb-connector.schema.json +50 -0
  78. package/{js → components}/ln-couchdb-connector/src/ln-couchdb-connector.js +29 -43
  79. package/{js → components}/ln-data-coordinator/README.md +109 -73
  80. package/components/ln-data-coordinator/ln-data-coordinator-dev.scss +8 -0
  81. package/components/ln-data-coordinator/ln-data-coordinator.js +1 -0
  82. package/components/ln-data-coordinator/ln-data-coordinator.schema.json +196 -0
  83. package/components/ln-data-coordinator/src/data-read-policy.js +41 -0
  84. package/{js → components}/ln-data-coordinator/src/ln-data-coordinator.js +411 -154
  85. package/{js → components}/ln-data-coordinator/src/mutation-receipts.js +0 -5
  86. package/{js → components}/ln-data-store/README.md +42 -17
  87. package/components/ln-data-store/ln-data-store-dev.scss +13 -0
  88. package/components/ln-data-store/ln-data-store.js +1 -0
  89. package/components/ln-data-store/ln-data-store.schema.json +84 -0
  90. package/components/ln-data-store/src/data-store-model.js +155 -0
  91. package/{js → components}/ln-data-store/src/ln-data-store.js +407 -105
  92. package/components/ln-data-store/src/window-index.js +119 -0
  93. package/{js → components}/ln-date/README.md +17 -7
  94. package/{js → components}/ln-date/ln-date-dev.scss +14 -14
  95. package/components/ln-date/ln-date.js +1 -0
  96. package/components/ln-date/ln-date.schema.json +92 -0
  97. package/components/ln-date/src/date-model.js +186 -0
  98. package/components/ln-date/src/ln-date.js +486 -0
  99. package/components/ln-debug/README.md +132 -0
  100. package/components/ln-debug/ln-debug.js +1 -0
  101. package/components/ln-debug/ln-debug.schema.json +28 -0
  102. package/components/ln-debug/src/console-sink.js +19 -0
  103. package/components/ln-debug/src/debug-verifier.js +331 -0
  104. package/components/ln-debug/src/gate.js +95 -0
  105. package/components/ln-debug/src/generated-attributes.js +299 -0
  106. package/components/ln-debug/src/ln-debug.js +60 -0
  107. package/{js → components}/ln-dropdown/README.md +150 -140
  108. package/components/ln-dropdown/ln-dropdown-dev.scss +13 -0
  109. package/components/ln-dropdown/ln-dropdown.js +1 -0
  110. package/components/ln-dropdown/ln-dropdown.schema.json +90 -0
  111. package/components/ln-dropdown/ln-dropdown.scss +18 -0
  112. package/{js → components}/ln-dropdown/src/ln-dropdown.js +114 -11
  113. package/{js → components}/ln-editor/README.md +11 -9
  114. package/components/ln-editor/ln-editor-dev.scss +18 -0
  115. package/components/ln-editor/ln-editor.js +1 -0
  116. package/components/ln-editor/ln-editor.schema.json +58 -0
  117. package/components/ln-editor/ln-editor.scss +13 -0
  118. package/{js → components}/ln-editor/src/ln-editor.js +59 -11
  119. package/{js → components}/ln-external-links/README.md +10 -8
  120. package/components/ln-external-links/ln-external-links.js +1 -0
  121. package/components/ln-external-links/ln-external-links.schema.json +18 -0
  122. package/{js → components}/ln-external-links/src/ln-external-links.js +13 -11
  123. package/{js → components}/ln-fill/README.md +6 -8
  124. package/components/ln-fill/ln-fill.js +1 -0
  125. package/components/ln-fill/ln-fill.schema.json +23 -0
  126. package/{js → components}/ln-fill/src/ln-fill.js +7 -1
  127. package/components/ln-filter/README.md +131 -0
  128. package/components/ln-filter/ln-filter-dev.scss +13 -0
  129. package/components/ln-filter/ln-filter.js +1 -0
  130. package/components/ln-filter/ln-filter.schema.json +153 -0
  131. package/components/ln-filter/src/filter-model.js +185 -0
  132. package/components/ln-filter/src/ln-filter.js +435 -0
  133. package/{js → components}/ln-form/README.md +260 -264
  134. package/components/ln-form/ln-form-dev.scss +8 -0
  135. package/components/ln-form/ln-form.js +1 -0
  136. package/components/ln-form/ln-form.schema.json +45 -0
  137. package/{js → components}/ln-form/src/ln-form.js +107 -99
  138. package/{js → components}/ln-http/README.md +11 -6
  139. package/components/ln-http/ln-http.js +1 -0
  140. package/components/ln-http/ln-http.schema.json +6 -0
  141. package/components/ln-http/src/http-core.js +51 -0
  142. package/{js → components}/ln-http/src/ln-http.js +28 -33
  143. package/{js → components}/ln-icon/README.md +16 -9
  144. package/components/ln-icon/ln-icon.schema.json +6 -0
  145. package/components/ln-include/README.md +75 -0
  146. package/components/ln-include/ln-include-dev.scss +13 -0
  147. package/components/ln-include/ln-include.js +1 -0
  148. package/components/ln-include/ln-include.schema.json +23 -0
  149. package/components/ln-include/src/ln-include.js +111 -0
  150. package/components/ln-key/README.md +130 -0
  151. package/components/ln-key/ln-key-dev.scss +18 -0
  152. package/components/ln-key/ln-key.js +1 -0
  153. package/components/ln-key/ln-key.schema.json +56 -0
  154. package/components/ln-key/src/key-model.js +146 -0
  155. package/components/ln-key/src/ln-key.js +201 -0
  156. package/{js → components}/ln-link/README.md +7 -9
  157. package/components/ln-link/ln-link-dev.scss +8 -0
  158. package/components/ln-link/ln-link.js +1 -0
  159. package/components/ln-link/ln-link.schema.json +22 -0
  160. package/{js → components}/ln-link/src/ln-link.js +16 -11
  161. package/components/ln-list/README.md +152 -0
  162. package/components/ln-list/ln-list-dev.scss +8 -0
  163. package/components/ln-list/ln-list.js +1 -0
  164. package/components/ln-list/ln-list.schema.json +166 -0
  165. package/components/ln-list/ln-list.scss +25 -0
  166. package/{js → components}/ln-list/src/ln-list.js +1301 -1216
  167. package/{js → components}/ln-modal/README.md +13 -10
  168. package/components/ln-modal/ln-modal-dev.scss +18 -0
  169. package/components/ln-modal/ln-modal.js +1 -0
  170. package/components/ln-modal/ln-modal.schema.json +54 -0
  171. package/components/ln-modal/ln-modal.scss +51 -0
  172. package/{js → components}/ln-modal/src/ln-modal.js +164 -137
  173. package/{js → components}/ln-nav/README.md +11 -11
  174. package/components/ln-nav/ln-nav.js +1 -0
  175. package/components/ln-nav/ln-nav.schema.json +25 -0
  176. package/{js → components}/ln-nav/src/ln-nav.js +25 -14
  177. package/components/ln-number/README.md +205 -0
  178. package/{js → components}/ln-number/ln-number-dev.scss +13 -13
  179. package/components/ln-number/ln-number.js +1 -0
  180. package/components/ln-number/ln-number.schema.json +63 -0
  181. package/components/ln-number/src/ln-number.js +400 -0
  182. package/components/ln-number/src/number-model.js +31 -0
  183. package/components/ln-obfuscator/README.md +60 -0
  184. package/components/ln-obfuscator/ln-obfuscator.js +1 -0
  185. package/components/ln-obfuscator/ln-obfuscator.schema.json +49 -0
  186. package/components/ln-obfuscator/src/ln-obfuscator.js +159 -0
  187. package/components/ln-obfuscator/src/obfuscator-model.js +250 -0
  188. package/{js → components}/ln-options/README.md +3 -1
  189. package/components/ln-options/ln-options-dev.scss +13 -0
  190. package/components/ln-options/ln-options.js +1 -0
  191. package/components/ln-options/ln-options.schema.json +41 -0
  192. package/{js → components}/ln-options/src/ln-options.js +13 -5
  193. package/components/ln-persist/README.md +151 -0
  194. package/components/ln-persist/ln-persist.js +1 -0
  195. package/components/ln-persist/ln-persist.schema.json +28 -0
  196. package/components/ln-persist/src/ln-persist.js +83 -0
  197. package/components/ln-picklist/README.md +230 -0
  198. package/components/ln-picklist/ln-picklist-dev.scss +22 -0
  199. package/components/ln-picklist/ln-picklist.js +1 -0
  200. package/components/ln-picklist/ln-picklist.schema.json +49 -0
  201. package/components/ln-picklist/src/ln-picklist.js +228 -0
  202. package/{js → components}/ln-popover/README.md +164 -162
  203. package/components/ln-popover/ln-popover-dev.scss +13 -0
  204. package/components/ln-popover/ln-popover.js +1 -0
  205. package/components/ln-popover/ln-popover.schema.json +82 -0
  206. package/components/ln-popover/ln-popover.scss +18 -0
  207. package/{js → components}/ln-popover/src/ln-popover.js +42 -36
  208. package/{js → components}/ln-progress/README.md +410 -413
  209. package/components/ln-progress/ln-progress-dev.scss +8 -0
  210. package/components/ln-progress/ln-progress.js +1 -0
  211. package/components/ln-progress/ln-progress.schema.json +40 -0
  212. package/components/ln-progress/src/ln-progress.js +91 -0
  213. package/components/ln-progress/src/progress-model.js +20 -0
  214. package/{js → components}/ln-router/README.md +443 -432
  215. package/components/ln-router/ln-router-dev.scss +13 -0
  216. package/components/ln-router/ln-router.js +1 -0
  217. package/components/ln-router/ln-router.schema.json +68 -0
  218. package/{js → components}/ln-router/src/ln-router.js +585 -539
  219. package/components/ln-router/src/router-model.js +50 -0
  220. package/components/ln-scroll/README.md +45 -0
  221. package/components/ln-scroll/ln-scroll.js +1 -0
  222. package/components/ln-scroll/ln-scroll.schema.json +85 -0
  223. package/components/ln-scroll/src/ln-scroll.js +150 -0
  224. package/components/ln-search/README.md +188 -0
  225. package/components/ln-search/ln-search-dev.scss +13 -0
  226. package/components/ln-search/ln-search.js +1 -0
  227. package/components/ln-search/ln-search.schema.json +103 -0
  228. package/components/ln-search/src/ln-search.js +330 -0
  229. package/{js → components}/ln-slug/README.md +6 -3
  230. package/components/ln-slug/ln-slug-dev.scss +18 -0
  231. package/components/ln-slug/ln-slug.js +1 -0
  232. package/components/ln-slug/ln-slug.schema.json +23 -0
  233. package/{js → components}/ln-slug/src/ln-slug.js +20 -13
  234. package/components/ln-slug/src/slug-model.js +21 -0
  235. package/{js → components}/ln-sort/README.md +178 -170
  236. package/{js → components}/ln-sort/ln-sort-dev.scss +8 -8
  237. package/components/ln-sort/ln-sort.js +1 -0
  238. package/components/ln-sort/ln-sort.schema.json +104 -0
  239. package/components/ln-sort/src/ln-sort.js +321 -0
  240. package/components/ln-sort/src/sort-model.js +117 -0
  241. package/{js → components}/ln-sortable/README.md +7 -11
  242. package/components/ln-sortable/ln-sortable-dev.scss +13 -0
  243. package/components/ln-sortable/ln-sortable.js +1 -0
  244. package/components/ln-sortable/ln-sortable.schema.json +36 -0
  245. package/{js → components}/ln-sortable/src/ln-sortable.js +8 -13
  246. package/{js → components}/ln-stat/README.md +3 -1
  247. package/components/ln-stat/ln-stat-dev.scss +8 -0
  248. package/components/ln-stat/ln-stat.js +1 -0
  249. package/components/ln-stat/ln-stat.schema.json +32 -0
  250. package/{js → components}/ln-stat/src/ln-stat.js +14 -18
  251. package/components/ln-stat/src/stat-model.js +28 -0
  252. package/{js → components}/ln-table/README.md +37 -24
  253. package/{js → components}/ln-table/ln-table-dev.scss +17 -17
  254. package/components/ln-table/ln-table.js +1 -0
  255. package/components/ln-table/ln-table.schema.json +211 -0
  256. package/components/ln-table/ln-table.scss +15 -0
  257. package/{js → components}/ln-table/src/ln-table.js +1365 -1493
  258. package/components/ln-table/src/table-model.js +98 -0
  259. package/components/ln-table-coordinator/README.md +61 -0
  260. package/components/ln-table-coordinator/ln-table-coordinator.js +1 -0
  261. package/components/ln-table-coordinator/ln-table-coordinator.schema.json +93 -0
  262. package/components/ln-table-coordinator/src/ln-table-coordinator.js +193 -0
  263. package/{js → components}/ln-tabs/README.md +32 -14
  264. package/components/ln-tabs/ln-tabs-dev.scss +24 -0
  265. package/components/ln-tabs/ln-tabs.js +1 -0
  266. package/components/ln-tabs/ln-tabs.schema.json +75 -0
  267. package/components/ln-tabs/ln-tabs.scss +8 -0
  268. package/components/ln-tabs/src/ln-tabs.js +207 -0
  269. package/components/ln-tabs/src/tabs-model.js +82 -0
  270. package/{js → components}/ln-time/README.md +96 -95
  271. package/components/ln-time/ln-time-dev.scss +13 -0
  272. package/components/ln-time/ln-time.js +1 -0
  273. package/components/ln-time/ln-time.schema.json +38 -0
  274. package/{js → components}/ln-time/src/ln-time.js +206 -223
  275. package/components/ln-time/src/time-model.js +64 -0
  276. package/{js → components}/ln-toast/README.md +23 -5
  277. package/components/ln-toast/ln-toast-dev.scss +8 -0
  278. package/components/ln-toast/ln-toast.js +1 -0
  279. package/components/ln-toast/ln-toast.schema.json +65 -0
  280. package/components/ln-toast/ln-toast.scss +59 -0
  281. package/{js → components}/ln-toast/src/ln-toast.js +233 -232
  282. package/{js → components}/ln-toggle/README.md +198 -196
  283. package/{js → components}/ln-toggle/ln-toggle-dev.scss +13 -13
  284. package/components/ln-toggle/ln-toggle.js +1 -0
  285. package/components/ln-toggle/ln-toggle.schema.json +52 -0
  286. package/components/ln-toggle/ln-toggle.scss +37 -0
  287. package/{js → components}/ln-toggle/src/ln-toggle.js +61 -46
  288. package/{js → components}/ln-tooltip/README.md +6 -6
  289. package/{js → components}/ln-tooltip/ln-tooltip-dev.scss +9 -9
  290. package/components/ln-tooltip/ln-tooltip.js +1 -0
  291. package/components/ln-tooltip/ln-tooltip.schema.json +86 -0
  292. package/components/ln-tooltip/ln-tooltip.scss +9 -0
  293. package/{js → components}/ln-tooltip/src/ln-tooltip.js +14 -3
  294. package/{js → components}/ln-translations/README.md +3 -1
  295. package/components/ln-translations/ln-translations-dev.scss +13 -0
  296. package/components/ln-translations/ln-translations.js +1 -0
  297. package/components/ln-translations/ln-translations.schema.json +120 -0
  298. package/{js → components}/ln-translations/src/ln-translations.js +25 -10
  299. package/components/ln-ui-coordinator/README.md +101 -0
  300. package/components/ln-ui-coordinator/ln-ui-coordinator-dev.scss +8 -0
  301. package/components/ln-ui-coordinator/ln-ui-coordinator.js +1 -0
  302. package/components/ln-ui-coordinator/ln-ui-coordinator.schema.json +60 -0
  303. package/{js/ln-modal-coordinator/src/ln-modal-coordinator.js → components/ln-ui-coordinator/src/ln-ui-coordinator.js} +403 -345
  304. package/components/ln-upload/README.md +133 -0
  305. package/components/ln-upload/ln-upload-dev.scss +18 -0
  306. package/components/ln-upload/ln-upload.js +1 -0
  307. package/components/ln-upload/ln-upload.schema.json +193 -0
  308. package/components/ln-upload/ln-upload.scss +20 -0
  309. package/components/ln-upload/src/ln-upload.js +652 -0
  310. package/components/ln-upload/src/upload-model.js +78 -0
  311. package/{js → components}/ln-validate/README.md +182 -180
  312. package/{js → components}/ln-validate/ln-validate-dev.scss +15 -15
  313. package/components/ln-validate/ln-validate.js +1 -0
  314. package/components/ln-validate/ln-validate.schema.json +50 -0
  315. package/components/ln-validate/ln-validate.scss +7 -0
  316. package/{js → components}/ln-validate/src/ln-validate.js +23 -45
  317. package/components/ln-validate/src/validate-model.js +64 -0
  318. package/components/ln-websocket-connector/README.md +166 -0
  319. package/components/ln-websocket-connector/ln-websocket-connector.js +1 -0
  320. package/components/ln-websocket-connector/ln-websocket-connector.schema.json +29 -0
  321. package/components/ln-websocket-connector/src/ln-websocket-connector.js +279 -0
  322. package/ln-ashlar.html-data.json +1796 -0
  323. package/package.json +84 -61
  324. package/{scss → theme}/base/_global.scss +1 -2
  325. package/{scss → theme}/base/_reset.scss +1 -1
  326. package/{scss → theme}/base/_typography.scss +2 -0
  327. package/theme/brand.css +73 -0
  328. package/{scss → theme}/components/_app-shell.scss +8 -0
  329. package/theme/components/_button.scss +24 -0
  330. package/theme/components/_chart.scss +5 -0
  331. package/theme/components/_confirm.scss +6 -0
  332. package/{scss → theme}/components/_date.scss +30 -22
  333. package/{scss → theme}/components/_dropdown.scss +6 -1
  334. package/theme/components/_form.scss +140 -0
  335. package/{scss → theme}/components/_layout.scss +6 -0
  336. package/{scss → theme}/components/_ln-table.scss +1 -6
  337. package/theme/components/_picklist.scss +3 -0
  338. package/{scss → theme}/components/_sort.scss +10 -10
  339. package/theme/components/_status-badge.scss +6 -0
  340. package/{scss → theme}/components/_table.scss +16 -0
  341. package/{scss → theme}/components/_tabs.scss +0 -4
  342. package/theme/components/_toast.scss +48 -0
  343. package/{scss → theme}/components/_toggle.scss +1 -1
  344. package/theme/components/_upload.scss +45 -0
  345. package/{scss → theme}/config/_breakpoints.scss +1 -1
  346. package/theme/config/_contrast.scss +128 -0
  347. package/{scss → theme}/config/_density.scss +191 -205
  348. package/theme/config/_palette.scss +274 -0
  349. package/theme/config/_theme.scss +293 -0
  350. package/{scss → theme}/config/_tokens.scss +285 -441
  351. package/{scss → theme}/config/mixins/_accordion.scss +1 -1
  352. package/{scss → theme}/config/mixins/_alert.scss +1 -0
  353. package/{scss → theme}/config/mixins/_app-shell.scss +4 -2
  354. package/{scss → theme}/config/mixins/_borders.scss +2 -0
  355. package/theme/config/mixins/_btn.scss +175 -0
  356. package/{scss → theme}/config/mixins/_card.scss +55 -46
  357. package/theme/config/mixins/_chart.scss +82 -0
  358. package/{scss → theme}/config/mixins/_collapsible.scss +2 -1
  359. package/{scss → theme}/config/mixins/_colors.scss +8 -14
  360. package/{scss → theme}/config/mixins/_diagnostics.scss +48 -48
  361. package/theme/config/mixins/_dropdown.scss +169 -0
  362. package/{scss → theme}/config/mixins/_editor.scss +0 -7
  363. package/{scss → theme}/config/mixins/_filter.scss +47 -47
  364. package/{scss → theme}/config/mixins/_footer.scss +1 -1
  365. package/{scss → theme}/config/mixins/_form.scss +49 -18
  366. package/{scss → theme}/config/mixins/_index.scss +62 -61
  367. package/{scss → theme}/config/mixins/_layout.scss +6 -2
  368. package/{scss → theme}/config/mixins/_ln-table.scss +31 -10
  369. package/{scss → theme}/config/mixins/_loader.scss +1 -1
  370. package/{scss → theme}/config/mixins/_modal.scss +145 -149
  371. package/{scss → theme}/config/mixins/_motion.scss +13 -0
  372. package/{scss → theme}/config/mixins/_nav.scss +7 -7
  373. package/theme/config/mixins/_picklist.scss +66 -0
  374. package/theme/config/mixins/_popover.scss +96 -0
  375. package/{scss → theme}/config/mixins/_sidebar.scss +7 -4
  376. package/{scss → theme}/config/mixins/_sort.scss +43 -42
  377. package/{scss → theme}/config/mixins/_status-badge.scss +15 -2
  378. package/{scss → theme}/config/mixins/_table.scss +25 -14
  379. package/{scss → theme}/config/mixins/_tabs.scss +1 -1
  380. package/{scss → theme}/config/mixins/_toast.scss +174 -179
  381. package/{scss → theme}/config/mixins/_tooltip.scss +2 -2
  382. package/{scss → theme}/config/mixins/_typography.scss +16 -5
  383. package/{scss → theme}/config/mixins/_upload.scss +8 -6
  384. package/theme/ln-ashlar-core.scss +24 -0
  385. package/theme/ln-ashlar-dev.scss +66 -0
  386. package/theme/ln-ashlar-landing.scss +56 -0
  387. package/{scss/ln-ashlar.scss → theme/ln-ashlar-theme.scss} +63 -69
  388. package/theme/ln-ashlar.scss +8 -0
  389. package/theme/presentation/_bento.scss +151 -0
  390. package/theme/presentation/_cta.scss +111 -0
  391. package/theme/presentation/_effects.scss +216 -0
  392. package/theme/presentation/_features.scss +108 -0
  393. package/theme/presentation/_footer.scss +129 -0
  394. package/theme/presentation/_hero.scss +158 -0
  395. package/theme/presentation/_layout.scss +170 -0
  396. package/theme/presentation/_navbar.scss +140 -0
  397. package/theme/presentation/_pricing.scss +262 -0
  398. package/theme/presentation/_stats.scss +87 -0
  399. package/theme/presentation/_testimonials.scss +124 -0
  400. package/theme/presentation/_tokens.scss +39 -0
  401. package/theme/presentation/_typography.scss +163 -0
  402. package/{scss → theme}/utilities/_animations.scss +38 -0
  403. package/{scss → theme}/utilities/_utilities.scss +6 -0
  404. package/web-types.json +2312 -0
  405. package/js/ln-accordion/ln-accordion.js +0 -1
  406. package/js/ln-ajax/ln-ajax.js +0 -1
  407. package/js/ln-api-connector/ln-api-connector.js +0 -1
  408. package/js/ln-api-connector/src/ln-api-connector.js +0 -368
  409. package/js/ln-api-queue/ln-api-queue.js +0 -1
  410. package/js/ln-autoresize/ln-autoresize.js +0 -1
  411. package/js/ln-autosave/ln-autosave.js +0 -1
  412. package/js/ln-circular-progress/ln-circular-progress.js +0 -1
  413. package/js/ln-confirm/_ln-confirm.scss +0 -24
  414. package/js/ln-confirm/ln-confirm.js +0 -1
  415. package/js/ln-core/crypto.js +0 -83
  416. package/js/ln-core/helpers.js +0 -788
  417. package/js/ln-core/index.js +0 -7
  418. package/js/ln-core/persist.js +0 -97
  419. package/js/ln-couchdb-connector/ln-couchdb-connector.js +0 -1
  420. package/js/ln-data-coordinator/ln-data-coordinator.js +0 -1
  421. package/js/ln-data-coordinator/src/data-read-policy.js +0 -18
  422. package/js/ln-data-store/ln-data-store.js +0 -1
  423. package/js/ln-date/ln-date.js +0 -1
  424. package/js/ln-date/src/ln-date.js +0 -603
  425. package/js/ln-debug/README.md +0 -58
  426. package/js/ln-debug/ln-debug.js +0 -1
  427. package/js/ln-debug/src/ln-debug.js +0 -19
  428. package/js/ln-dropdown/ln-dropdown.js +0 -1
  429. package/js/ln-dropdown/ln-dropdown.scss +0 -15
  430. package/js/ln-editor/ln-editor.js +0 -1
  431. package/js/ln-editor/ln-editor.scss +0 -43
  432. package/js/ln-external-links/ln-external-links.js +0 -1
  433. package/js/ln-fill/ln-fill.js +0 -1
  434. package/js/ln-filter/README.md +0 -189
  435. package/js/ln-filter/ln-filter-dev.scss +0 -8
  436. package/js/ln-filter/ln-filter.js +0 -1
  437. package/js/ln-filter/src/ln-filter.js +0 -419
  438. package/js/ln-form/ln-form.js +0 -1
  439. package/js/ln-http/ln-http.js +0 -1
  440. package/js/ln-link/ln-link.js +0 -1
  441. package/js/ln-list/README.md +0 -129
  442. package/js/ln-list/ln-list.js +0 -1
  443. package/js/ln-list/ln-list.scss +0 -28
  444. package/js/ln-modal/ln-modal-dev.scss +0 -13
  445. package/js/ln-modal/ln-modal.js +0 -1
  446. package/js/ln-modal/ln-modal.scss +0 -35
  447. package/js/ln-modal-coordinator/README.md +0 -99
  448. package/js/ln-modal-coordinator/ln-modal-coordinator-dev.scss +0 -8
  449. package/js/ln-modal-coordinator/ln-modal-coordinator.js +0 -1
  450. package/js/ln-nav/ln-nav.js +0 -1
  451. package/js/ln-number/README.md +0 -149
  452. package/js/ln-number/ln-number.js +0 -1
  453. package/js/ln-number/src/ln-number.js +0 -443
  454. package/js/ln-options/ln-options.js +0 -1
  455. package/js/ln-popover/ln-popover.js +0 -1
  456. package/js/ln-progress/ln-progress.js +0 -1
  457. package/js/ln-progress/src/ln-progress.js +0 -98
  458. package/js/ln-router/ln-router.js +0 -1
  459. package/js/ln-search/README.md +0 -158
  460. package/js/ln-search/ln-search-dev.scss +0 -8
  461. package/js/ln-search/ln-search.js +0 -1
  462. package/js/ln-search/src/ln-search.js +0 -117
  463. package/js/ln-slug/ln-slug.js +0 -1
  464. package/js/ln-sort/ln-sort.js +0 -1
  465. package/js/ln-sort/src/ln-sort.js +0 -178
  466. package/js/ln-sortable/ln-sortable.js +0 -1
  467. package/js/ln-stat/ln-stat.js +0 -1
  468. package/js/ln-table/ln-table.js +0 -1
  469. package/js/ln-table/ln-table.scss +0 -11
  470. package/js/ln-table-coordinator/README.md +0 -73
  471. package/js/ln-table-coordinator/ln-table-coordinator.js +0 -1
  472. package/js/ln-table-coordinator/src/ln-table-coordinator.js +0 -160
  473. package/js/ln-tabs/ln-tabs-dev.scss +0 -18
  474. package/js/ln-tabs/ln-tabs.js +0 -1
  475. package/js/ln-tabs/src/ln-tabs.js +0 -188
  476. package/js/ln-time/ln-time.js +0 -1
  477. package/js/ln-toast/ln-toast.js +0 -1
  478. package/js/ln-toggle/ln-toggle.js +0 -1
  479. package/js/ln-tooltip/ln-tooltip.js +0 -1
  480. package/js/ln-tooltip/ln-tooltip.scss +0 -9
  481. package/js/ln-translations/ln-translations.js +0 -1
  482. package/js/ln-upload/README.md +0 -255
  483. package/js/ln-upload/ln-upload.js +0 -1
  484. package/js/ln-upload/ln-upload.scss +0 -20
  485. package/js/ln-upload/src/ln-upload.js +0 -423
  486. package/js/ln-validate/ln-validate.js +0 -1
  487. package/scss/components/_button.scss +0 -20
  488. package/scss/components/_confirm.scss +0 -5
  489. package/scss/components/_form.scss +0 -107
  490. package/scss/components/_status-badge.scss +0 -4
  491. package/scss/components/_toast.scss +0 -68
  492. package/scss/components/_upload.scss +0 -51
  493. package/scss/config/_theme.scss +0 -216
  494. package/scss/config/mixins/_btn.scss +0 -179
  495. package/scss/config/mixins/_confirm.scss +0 -31
  496. package/scss/config/mixins/_dropdown.scss +0 -141
  497. package/scss/config/mixins/_popover.scss +0 -64
  498. package/scss/ln-ashlar-dev.scss +0 -39
  499. /package/{js → components}/ln-core/positioning.js +0 -0
  500. /package/{js → components}/ln-core/reactive.js +0 -0
  501. /package/{js → components}/ln-filter/ln-filter.scss +0 -0
  502. /package/{js → components}/ln-icon/ln-icon.js +0 -0
  503. /package/{js → components}/ln-icon/src/ln-icon.js +0 -0
  504. /package/{js → components}/ln-search/ln-search.scss +0 -0
  505. /package/{js → components}/ln-toast/template.html +0 -0
  506. /package/{scss → theme}/components/_accordion.scss +0 -0
  507. /package/{scss → theme}/components/_ajax.scss +0 -0
  508. /package/{scss → theme}/components/_alert.scss +0 -0
  509. /package/{scss → theme}/components/_avatar.scss +0 -0
  510. /package/{scss → theme}/components/_breadcrumbs.scss +0 -0
  511. /package/{scss → theme}/components/_card.scss +0 -0
  512. /package/{scss → theme}/components/_chip.scss +0 -0
  513. /package/{scss → theme}/components/_circular-progress.scss +0 -0
  514. /package/{scss → theme}/components/_editor.scss +0 -0
  515. /package/{scss → theme}/components/_empty-state.scss +0 -0
  516. /package/{scss → theme}/components/_filter.scss +0 -0
  517. /package/{scss → theme}/components/_link.scss +0 -0
  518. /package/{scss → theme}/components/_loader.scss +0 -0
  519. /package/{scss → theme}/components/_modal.scss +0 -0
  520. /package/{scss → theme}/components/_nav.scss +0 -0
  521. /package/{scss → theme}/components/_page-header.scss +0 -0
  522. /package/{scss → theme}/components/_popover.scss +0 -0
  523. /package/{scss → theme}/components/_progress.scss +0 -0
  524. /package/{scss → theme}/components/_prose.scss +0 -0
  525. /package/{scss → theme}/components/_scrollbar.scss +0 -0
  526. /package/{scss → theme}/components/_sections.scss +0 -0
  527. /package/{scss → theme}/components/_sidebar.scss +0 -0
  528. /package/{scss → theme}/components/_stat-card.scss +0 -0
  529. /package/{scss → theme}/components/_stepper.scss +0 -0
  530. /package/{scss → theme}/components/_timeline.scss +0 -0
  531. /package/{scss → theme}/components/_tooltip.scss +0 -0
  532. /package/{scss → theme}/components/_translations.scss +0 -0
  533. /package/{scss → theme}/config/_icons.scss +0 -0
  534. /package/{scss → theme}/config/_mixins.scss +0 -0
  535. /package/{scss → theme}/config/mixins/_ajax.scss +0 -0
  536. /package/{scss → theme}/config/mixins/_avatar.scss +0 -0
  537. /package/{scss → theme}/config/mixins/_breadcrumbs.scss +0 -0
  538. /package/{scss → theme}/config/mixins/_breakpoints.scss +0 -0
  539. /package/{scss → theme}/config/mixins/_chip.scss +0 -0
  540. /package/{scss → theme}/config/mixins/_circular-progress.scss +0 -0
  541. /package/{scss → theme}/config/mixins/_display.scss +0 -0
  542. /package/{scss → theme}/config/mixins/_empty-state.scss +0 -0
  543. /package/{scss → theme}/config/mixins/_focus.scss +0 -0
  544. /package/{scss → theme}/config/mixins/_interaction.scss +0 -0
  545. /package/{scss → theme}/config/mixins/_kbd.scss +0 -0
  546. /package/{scss → theme}/config/mixins/_link.scss +0 -0
  547. /package/{scss → theme}/config/mixins/_page-header.scss +0 -0
  548. /package/{scss → theme}/config/mixins/_position.scss +0 -0
  549. /package/{scss → theme}/config/mixins/_progress.scss +0 -0
  550. /package/{scss → theme}/config/mixins/_prose.scss +0 -0
  551. /package/{scss → theme}/config/mixins/_shadows.scss +0 -0
  552. /package/{scss → theme}/config/mixins/_sizing.scss +0 -0
  553. /package/{scss → theme}/config/mixins/_spacing.scss +0 -0
  554. /package/{scss → theme}/config/mixins/_stat-card.scss +0 -0
  555. /package/{scss → theme}/config/mixins/_stepper.scss +0 -0
  556. /package/{scss → theme}/config/mixins/_timeline.scss +0 -0
  557. /package/{scss → theme}/config/mixins/_transitions.scss +0 -0
  558. /package/{scss → theme}/config/mixins/_translations.scss +0 -0
  559. /package/{scss → theme}/tabler-icons.txt +0 -0
@@ -1,441 +1,285 @@
1
- @use 'mixins/breakpoints' as *;
2
-
3
- // ==========================================================================
4
- // Design Tokens — ln-ashlar
5
- // ==========================================================================
6
- // Single source of truth for all design values.
7
- // All components reference these CSS variables.
8
- // For theming: override at :root or scope to an element.
9
- //
10
- // Colors are stored as bare HSL triplets to enable alpha transparency:
11
- // hsl(var(--color-primary)) → solid color
12
- // hsl(var(--color-primary) / 0.5) → 50% transparent
13
- //
14
- // Theming example:
15
- // .dark-theme { --color-bg: ...; }
16
- // ==========================================================================
17
-
18
- :root {
19
-
20
- // -----------------------------------------------------------------------
21
- // Colors — Primary
22
- // -----------------------------------------------------------------------
23
- --color-primary: 232 75% 52%;
24
- --color-primary-light: 232 75% 93%;
25
- --color-primary-lighter: 232 75% 97%;
26
-
27
- // -----------------------------------------------------------------------
28
- // Colors — Secondary (brand accent — surface/element color, NOT text)
29
- // For subdued text color, see --fg-muted in the logical token section.
30
- // -----------------------------------------------------------------------
31
- --color-secondary: 160 76% 40%;
32
- --color-secondary-light: 160 76% 93%;
33
- --color-secondary-lighter: 160 76% 97%;
34
-
35
- // -----------------------------------------------------------------------
36
- // Colors — Status
37
- // -----------------------------------------------------------------------
38
- --color-success: 142 76% 36%;
39
- --color-success-light: 142 76% 93%;
40
- --color-success-lighter: 142 76% 97%;
41
-
42
- --color-error: 0 84% 50%;
43
- --color-error-light: 0 84% 93%;
44
- --color-error-lighter: 0 84% 97%;
45
-
46
- --color-warning: 32 95% 44%;
47
- --color-warning-light: 32 95% 93%;
48
- --color-warning-lighter: 32 95% 97%;
49
-
50
- --color-info: 217 91% 60%;
51
- --color-info-light: 217 91% 93%;
52
- --color-info-lighter: 217 91% 97%;
53
-
54
- // -----------------------------------------------------------------------
55
- // Colors — Neutral scale (canonical greys)
56
- // -----------------------------------------------------------------------
57
- // Mixins may reach into the neutral scale directly when no semantic
58
- // token matches the intent. Every such reference must be verified
59
- // during dark-mode audits -- semantic tokens inherit dark adjustments
60
- // automatically, direct-neutral references do not.
61
- //
62
- --color-neutral-50: 220 20% 98%;
63
- --color-neutral-100: 220 16% 96%;
64
- --color-neutral-150: 220 14% 93%;
65
- --color-neutral-200: 220 13% 91%;
66
- --color-neutral-300: 220 13% 83%;
67
- --color-neutral-400: 218 11% 65%;
68
- --color-neutral-500: 220 9% 46%;
69
- --color-neutral-600: 220 11% 34%;
70
- --color-neutral-700: 220 14% 24%;
71
- --color-neutral-800: 220 20% 15%;
72
- --color-neutral-900: 221 39% 11%;
73
-
74
- // -----------------------------------------------------------------------
75
- // Colors — Backgrounds
76
- // -----------------------------------------------------------------------
77
- --color-white: 0 0% 100%;
78
-
79
- // -----------------------------------------------------------------------
80
- // Size scale — canonical spacing primitives
81
- // -----------------------------------------------------------------------
82
- // Public API surface — full scale exposed. All padding, margin, gap,
83
- // inset, and positional-offset spacing references one of these steps.
84
- // Intermediate steps use t-shirt + `-up` suffix.
85
- //
86
- // Mixin bodies read --size-* only when a logical token (--padding-x,
87
- // --padding-y, --gap) is not semantically appropriate. Otherwise they
88
- // read the logical token, which is re-bound under density / theme /
89
- // region scopes (see Logical tokens block below).
90
- // -----------------------------------------------------------------------
91
- --size-0: 0;
92
- --size-2xs: 0.125rem; // 2px
93
- --size-xs: 0.25rem; // 4px
94
- --size-xs-up: 0.375rem; // 6px
95
- --size-sm: 0.5rem; // 8px
96
- --size-sm-up: 0.75rem; // 12px
97
- --size-md: 1rem; // 16px
98
- --size-md-up: 1.25rem; // 20px
99
- --size-lg: 1.5rem; // 24px
100
- --size-xl: 2rem; // 32px
101
- --size-2xl: 3rem; // 48px
102
- --size-3xl: 4rem; // 64px
103
- --size-4xl: 6rem;
104
- --size-5xl: 8rem;
105
-
106
- // -----------------------------------------------------------------------
107
- // Border Width
108
- // -----------------------------------------------------------------------
109
- // Public API surface — full scale exposed; internal usage may skip levels.
110
- --border-width: 1px;
111
- --border-width-strong: 2px;
112
-
113
- // -----------------------------------------------------------------------
114
- // Content widths
115
- // -----------------------------------------------------------------------
116
- // Public API surface — full scale exposed; internal usage may skip levels.
117
- --max-w-prose: 65ch;
118
- --max-w-form: 32rem;
119
- --max-w-content: 48rem;
120
- --max-w-container: 80rem;
121
-
122
- // -----------------------------------------------------------------------
123
- // Border Radius
124
- // -----------------------------------------------------------------------
125
- --radius-none: 0;
126
- --radius-sm: 0.25rem; // 4px
127
- --radius-md: 0.5rem; // 8px
128
- --radius-lg: 0.75rem; // 12px
129
- --radius-xl: 1rem; // 16px
130
- --radius-full: 9999px;
131
-
132
- // -----------------------------------------------------------------------
133
- // Shadows — cool-tinted, dual-layer (v1.1)
134
- // -----------------------------------------------------------------------
135
- // Public API surface — full scale exposed; internal usage may skip levels.
136
- --shadow-none: none;
137
-
138
- --shadow-xs:
139
- 0 1px 2px 0 hsl(220 40% 15% / 0.04);
140
-
141
- --shadow-sm:
142
- 0 1px 3px 0 hsl(220 40% 15% / 0.08),
143
- 0 1px 2px -1px hsl(220 40% 15% / 0.04);
144
-
145
- --shadow-md:
146
- 0 4px 12px -2px hsl(220 40% 15% / 0.10),
147
- 0 2px 4px -2px hsl(220 40% 15% / 0.06);
148
-
149
- --shadow-lg:
150
- 0 12px 24px -6px hsl(220 40% 15% / 0.12),
151
- 0 8px 12px -4px hsl(220 40% 15% / 0.08);
152
-
153
- --shadow-xl:
154
- 0 24px 48px -12px hsl(220 40% 15% / 0.16),
155
- 0 12px 24px -6px hsl(220 40% 15% / 0.10);
156
-
157
- --shadow-2xl:
158
- 0 36px 72px -18px hsl(220 40% 15% / 0.20),
159
- 0 18px 36px -9px hsl(220 40% 15% / 0.12);
160
-
161
- --shadow-inner:
162
- inset 0 2px 4px 0 hsl(220 40% 15% / 0.06);
163
-
164
- // Color-aware shadows (for focus halos and coloured CTAs)
165
- --shadow-primary: 0 8px 24px -6px hsl(var(--color-primary) / 0.28);
166
- --shadow-success: 0 8px 24px -6px hsl(var(--color-success) / 0.28);
167
- --shadow-error: 0 8px 24px -6px hsl(var(--color-error) / 0.28);
168
-
169
- // -----------------------------------------------------------------------
170
- // Transitions — durations
171
- // -----------------------------------------------------------------------
172
- --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
173
- --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
174
- --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
175
-
176
- // -----------------------------------------------------------------------
177
- // Easings — curves only (no duration)
178
- // -----------------------------------------------------------------------
179
- // Public API surface — full scale exposed; internal usage may skip levels.
180
- --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
181
- --easing-decelerate: cubic-bezier(0, 0, 0.2, 1);
182
- --easing-accelerate: cubic-bezier(0.4, 0, 1, 1);
183
- --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
184
-
185
- // -----------------------------------------------------------------------
186
- // Typography
187
- // -----------------------------------------------------------------------
188
- --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
189
- --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
190
-
191
- --text-xs: 0.75rem; // 12px
192
- --text-sm: 0.875rem; // 14px
193
- --text-base: 1rem; // 16px
194
- --text-lg: 1.125rem; // 18px
195
- --text-xl: 1.25rem; // 20px
196
- --text-2xl: 1.5rem; // 24px
197
-
198
- // -----------------------------------------------------------------------
199
- // Typography — semantic role tokens (v1.1) — VOCABULARY
200
- // -----------------------------------------------------------------------
201
- // Public API surface — full scale exposed; internal usage may skip levels.
202
- // Vocabulary: density + themes rebind these; mixins read the
203
- // --font-size/--line-height primitives via @include typography(role),
204
- // never these tokens directly.
205
- --text-display-lg: 3.75rem; --lh-display-lg: 1.1;
206
- --text-display-md: 3rem; --lh-display-md: 1.1;
207
- --text-display-sm: 1.875rem; --lh-display-sm: 1.1;
208
-
209
- --text-heading-lg: 1.75rem; --lh-heading-lg: 1.15;
210
- --text-heading-md: 1.25rem; --lh-heading-md: 1.2;
211
- --text-heading-sm: 1.125rem; --lh-heading-sm: 1.25;
212
-
213
- --text-title-md: 1rem; --lh-title-md: 1.3;
214
- --text-title-sm: 0.875rem; --lh-title-sm: 1.3;
215
-
216
- --text-body-lg: 1.125rem; --lh-body-lg: 1.6;
217
- --text-body-md: 0.875rem; --lh-body-md: 1.5; // 14px / 1.5 — DocuFlow body
218
- --text-body-sm: 0.8125rem; --lh-body-sm: 1.45; // 13px
219
-
220
- --text-label-md: 0.8125rem; --lh-label-md: 1.4; // 13px
221
- --text-label-sm: 0.75rem; --lh-label-sm: 1.4;
222
-
223
- --text-caption: 0.75rem; --lh-caption: 1.4;
224
-
225
- // -----------------------------------------------------------------------
226
- // Letter spacing
227
- // -----------------------------------------------------------------------
228
- --tracking-tight: -0.025em;
229
- --tracking-normal: 0;
230
- --tracking-wide: 0.025em;
231
-
232
- --font-normal: 400;
233
- --font-medium: 500;
234
- --font-semibold: 600;
235
- --font-bold: 700;
236
-
237
- // -----------------------------------------------------------------------
238
- // Z-Index Scale
239
- // -----------------------------------------------------------------------
240
- --z-sticky: 10;
241
- --z-dropdown: 20;
242
- --z-overlay: 30;
243
- --z-modal: 40;
244
- --z-toast: 50;
245
-
246
- // -----------------------------------------------------------------------
247
- // App shell — intrinsic dimensions (not spacing rhythm)
248
- // -----------------------------------------------------------------------
249
- --app-header-height: 3.25rem; // 52px — DocuFlow topbar height
250
- --app-sidebar-width: 14.5rem; // 232px — DocuFlow sidebar width
251
- --app-scrim-bg: hsl(var(--color-neutral-900) / 0.4);
252
-
253
- // -----------------------------------------------------------------------
254
- // Logical tokens — the public contract mixins read
255
- // -----------------------------------------------------------------------
256
- // Rule: mixin bodies reference ONLY these tokens. Typography mixins read
257
- // --font-size/--line-height ONLY (via @include typography(role), which
258
- // rebinds the primitive per role on the consuming element's scope).
259
- // --text-*/--lh-* role scale is VOCABULARY: density + themes rebind it,
260
- // mixins never read it directly. --radius-*/--shadow-*/--transition-*/
261
- // --easing-* role scales remain directly readable (not yet primitived).
262
- // Back-end scales (--size-*, --color-neutral-*) are re-bound here and in
263
- // context scopes (density, theme, region overrides) — never read directly
264
- // inside a component mixin.
265
- //
266
- // See .claude/plans/refactor-logical-tokens-architecture.md for the
267
- // full contract.
268
- // -----------------------------------------------------------------------
269
-
270
- // -- Structure & rhythm -----------------------------------------------
271
- --padding-x: var(--size-sm-up);
272
- --padding-y: var(--size-xs-up); // 6px — dense base (DocuFlow 7px rounds to 6px)
273
- --gap: var(--size-xs-up); // 6px — dense base
274
- --radius: var(--radius-md);
275
-
276
- // -----------------------------------------------------------------------
277
- // Value vocabulary — what bg/fg/border/shadow values exist
278
- // -----------------------------------------------------------------------
279
- // Mixins read primitives (--color-bg, --color-fg, --color-border,
280
- // --shadow). Vocabulary provides the value choices. Components rebind
281
- // the primitive on their own scope to pick a different vocabulary
282
- // value. Themes override vocabulary at theme :root.
283
- // -----------------------------------------------------------------------
284
-
285
- --bg-base: hsl(var(--color-white));
286
- --bg-elevated: var(--bg-base);
287
- --bg-sunken: hsl(var(--color-neutral-100));
288
- --bg-recessed: hsl(var(--color-neutral-50));
289
-
290
- --fg-default: hsl(var(--color-neutral-900));
291
- --fg-muted: hsl(var(--color-neutral-500));
292
- --fg-subtle: hsl(var(--color-neutral-400));
293
-
294
- --border-subtle: hsl(var(--color-neutral-200));
295
- --border-strong: hsl(var(--color-neutral-300));
296
- --border-strong-hover: hsl(var(--color-neutral-400));
297
-
298
- --shadow-resting: var(--shadow-sm);
299
- --shadow-floating: var(--shadow-md);
300
- --shadow-overlay: var(--shadow-xl);
301
-
302
- // -- Surface colors — primitives -------------------------------------
303
- // Mixins read these four primitives. Vocabulary provides the value
304
- // choices (--bg-*, --fg-*, --border-*, --shadow-*). Components rebind
305
- // a primitive on their own scope to pick a different vocabulary entry.
306
- --color-bg: var(--bg-base);
307
- --color-fg: var(--fg-default);
308
- --color-border: var(--border-subtle);
309
- --shadow: var(--shadow-resting);
310
- --color-scrim: hsl(var(--color-neutral-900) / 0.5);
311
-
312
- // -- Accent -----------------------------------------------------------
313
- --color-accent: hsl(var(--color-primary));
314
- --color-accent-fg: hsl(var(--color-white));
315
- --color-accent-tint: hsl(var(--color-primary-lighter));
316
- --color-accent-tint-strong: hsl(var(--color-primary-light));
317
-
318
- // Translucent accent surface — companions for themes that opt in to a
319
- // non-solid accent button. NO defaults — `@mixin btn` reads these via
320
- // fallback to `--color-accent` / `--color-accent-fg`, so the default
321
- // theme stays solid + white.
322
- //
323
- // IMPORTANT — declare at theme :root ONLY when the value is a literal
324
- // (no nested var(--color-primary)). If a theme needs the translucent
325
- // fill computed FROM --color-primary, the rebind must happen at
326
- // consumer scope (e.g. `[data-theme="..."] button[type="submit"], .btn
327
- // { --btn-bg: ...; }`) so the nested var() resolves at the button —
328
- // otherwise --color-primary freezes at theme :root and the
329
- // .success/.error/.warning/.info status cascade breaks. Glass uses
330
- // the consumer-scope pattern; see scss/config/_theme.scss.
331
- // --color-accent-bg
332
- // --color-accent-bg-hover
333
- // --color-accent-bg-fg
334
-
335
- // Nav surface — companions for themes that opt in to a bordered/inset
336
- // nav appearance (e.g. Glass). NO defaults — `@mixin nav` reads these
337
- // via fallback to no-op values (transparent border, zero bleed), so
338
- // the default theme renders unchanged. Themes rebind at theme :root.
339
- // --nav-link-border-color
340
- // --nav-link-border-color-hover
341
- // --nav-link-border-color-active
342
- // --nav-list-bleed
343
-
344
- // -- Button surface (neutral default) --------------------------------
345
- // Read by @mixin button-base across idle + hover + active. The
346
- // neutral default wires here. Accent variants (submit + @mixin btn)
347
- // REBIND --btn-* on the consumer element (not at :root) — this
348
- // preserves the .success/.error/.warning/.info semantic-color
349
- // cascade because var() resolves at the declaration site. A
350
- // companion --btn-accent-* surface AT :ROOT would freeze
351
- // --color-accent at :root and break that cascade; the fix is
352
- // consumer-scoped rebinding, not a parallel :root surface. See
353
- // scss/config/mixins/_btn.scss header for the full rationale.
354
- --btn-bg: var(--color-bg);
355
- --btn-fg: var(--color-fg);
356
- --btn-border: var(--border-strong);
357
- --btn-bg-hover: var(--bg-sunken);
358
- --btn-fg-hover: var(--color-fg);
359
- --btn-border-hover: var(--border-strong-hover);
360
-
361
- // Button padding tokens
362
- --btn-padding-x: var(--size-sm-up);
363
- --btn-padding-y: var(--size-xs-up);
364
-
365
- // Card padding tokens — roomier than base rhythm; density-reactive via _density.scss
366
- --card-padding-y: var(--size-sm-up); // 12px dense base
367
- --card-padding-x: var(--size-md); // 16px dense base
368
-
369
- // Table cell padding tokens — roomier than base rhythm; density-reactive via _density.scss
370
- --table-cell-padding-y: var(--size-sm); // 8px dense base (DocuFlow th: 9px / td: 10px)
371
- --table-cell-padding-x: var(--size-md); // 16px dense base
372
-
373
- // -- Typography — primitives -----------------------------------------
374
- // Mixins read these two primitives ONLY (via @include typography(role),
375
- // which rebinds them per role on the consuming element's scope — mirror
376
- // of how @mixin card rebinds --color-bg). The --text-{role}/--lh-{role}
377
- // role scale (lines ~202-220) is VOCABULARY: density + themes rebind it,
378
- // mixins never read it directly. These :root values are the default for
379
- // text that does not pass through a typography mixin.
380
- --font-size: var(--text-body-md);
381
- --line-height: var(--lh-body-md);
382
-
383
- // -- Motion & depth --------------------------------------------------
384
- --transition: var(--transition-base);
385
-
386
- // -- Per-side borders (SOFT — no default) ----------------------------
387
- // --border-block-start, --border-block-end,
388
- // --border-inline-start, --border-inline-end
389
- //
390
- // Read by structural mixins (card, section-card, floating-panel,
391
- // stat-card, app-header, app-footer, accordion items, table cells,
392
- // tab-nav, sidebar edges, page-header, etc.) with a per-mixin
393
- // fallback. NOT defined here — that is intentional. A scope that
394
- // re-binds e.g. `--border-block-start: none` flattens the top edge
395
- // of the matched element so siblings can join with a shared rule.
396
- //
397
- // Joining example:
398
- // .joined-stack > * + * { --border-block-start: none; }
399
-
400
- // -- Margin (SOFT — no default) --------------------------------
401
- // --margin-block, --margin-inline
402
- //
403
- // Read by structural rhythm rules (label-to-input gap, section
404
- // margin, header→body separation, sibling stacking,
405
- // element-pushing horizontal offsets) with a per-mixin rebind.
406
- // NOT defined here — the value varies too widely across
407
- // consumers for a single :root default to be useful. Each
408
- // consumer rebinds locally:
409
- //
410
- // @mixin section {
411
- // --margin-block: var(--size-xl);
412
- // margin-bottom: var(--margin-block);
413
- // }
414
- //
415
- // NOTE: [data-density] scopes rebind type roles, logical
416
- // --padding-y/--gap, and control sizing — NOT the --size-* scale.
417
- // So --margin-block (reading --size-*) is constant across density
418
- // tiers for now; making structural margins reactive is a Phase 3 item.
419
- //
420
- // --margin-inline is the horizontal companion. Used for
421
- // element-pushing structural offsets (icon→text gap inside a
422
- // row, sibling element offsets). NOT for flex/grid sibling
423
- // spacing — that is --gap.
424
- }
425
-
426
- // ---------------------------------------------------------------------------
427
- // Mobile rhythm — logical tokens tighten at ≤ md viewport.
428
- // Not the same as `[data-density]` (that's a user opt-in).
429
- // This is viewport-driven structural compression: content dominates chrome
430
- // at narrow widths. Components reading --padding-x/--padding-y/--gap
431
- // react via the cascade.
432
- //
433
- // Interaction with [data-density]: stacks. Compact density + mobile viewport =
434
- // both apply; the underlying --padding-y tightens further from the mobile rebind.
435
- // ---------------------------------------------------------------------------
436
- @include mq-down(md) {
437
- :root {
438
- --padding-y: var(--size-xs); // 6px → 4px
439
- --gap: var(--size-xs-up); // 6px → 6px (already tight)
440
- }
441
- }
1
+ @use 'mixins/breakpoints' as *;
2
+
3
+ // ==========================================================================
4
+ // Design Tokens — ln-ashlar
5
+ // ==========================================================================
6
+ // Single source of truth for theme-invariant design values (sizes, spacing,
7
+ // radii, typography scales, transitions, and z-index).
8
+ //
9
+ // Color and shadow values reside in `_palette.scss` and `_theme.scss`.
10
+ // ==========================================================================
11
+
12
+ :root {
13
+
14
+ // -----------------------------------------------------------------------
15
+ // Size scale — canonical spacing primitives
16
+ // -----------------------------------------------------------------------
17
+ // Public API surface — full scale exposed. All padding, margin, gap,
18
+ // inset, and positional-offset spacing references one of these steps.
19
+ // Intermediate steps use t-shirt + `-up` suffix.
20
+ //
21
+ // Mixin bodies read --size-* only when a logical token (--padding-x,
22
+ // --padding-y, --gap) is not semantically appropriate. Otherwise they
23
+ // read the logical token, which is re-bound under density / theme /
24
+ // region scopes (see Logical tokens block below).
25
+ // -----------------------------------------------------------------------
26
+ --size-0: 0;
27
+ --size-2xs: 0.125rem; // 2px
28
+ --size-xs: 0.25rem; // 4px
29
+ --size-xs-up: 0.375rem; // 6px
30
+ --size-sm: 0.5rem; // 8px
31
+ --size-sm-up: 0.75rem; // 12px
32
+ --size-md: 1rem; // 16px
33
+ --size-md-up: 1.25rem; // 20px
34
+ --size-lg: 1.5rem; // 24px
35
+ --size-xl: 2rem; // 32px
36
+ --size-2xl: 3rem; // 48px
37
+ --size-3xl: 4rem; // 64px
38
+ --size-4xl: 6rem;
39
+ --size-5xl: 8rem;
40
+
41
+ // -----------------------------------------------------------------------
42
+ // Border Width
43
+ // -----------------------------------------------------------------------
44
+ // Public API surface — full scale exposed; internal usage may skip levels.
45
+ --border-width: 1px;
46
+ --border-width-strong: 2px;
47
+
48
+ // -----------------------------------------------------------------------
49
+ // Content widths
50
+ // -----------------------------------------------------------------------
51
+ // Public API surface — full scale exposed; internal usage may skip levels.
52
+ --max-w-prose: 65ch;
53
+ --max-w-form: 32rem;
54
+ --max-w-content: 48rem;
55
+ --max-w-container: 80rem;
56
+
57
+ // -----------------------------------------------------------------------
58
+ // Border Radius
59
+ // -----------------------------------------------------------------------
60
+ --radius-none: 0;
61
+ --radius-xs: 0.125rem; // 2px
62
+ --radius-sm: 0.25rem; // 4px
63
+ --radius-md: 0.375rem; // 6px
64
+ --radius-lg: 0.5rem; // 8px
65
+ --radius-xl: 0.75rem; // 12px
66
+ --radius-2xl: 1rem; // 16px
67
+ --radius-full: 9999px;
68
+
69
+ // -----------------------------------------------------------------------
70
+ // Transitions — durations
71
+ // -----------------------------------------------------------------------
72
+ --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
73
+ --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
74
+ --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
75
+
76
+ // -----------------------------------------------------------------------
77
+ // Easings — curves only (no duration)
78
+ // -----------------------------------------------------------------------
79
+ // Public API surface — full scale exposed; internal usage may skip levels.
80
+ --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
81
+ --easing-decelerate: cubic-bezier(0, 0, 0.2, 1);
82
+ --easing-accelerate: cubic-bezier(0.4, 0, 1, 1);
83
+ --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
84
+
85
+ // -----------------------------------------------------------------------
86
+ // Typography
87
+ // -----------------------------------------------------------------------
88
+ --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
89
+ --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
90
+ --font-features: "cv02", "cv03", "cv04", "cv11", "tnum";
91
+
92
+ --text-xs: 0.75rem; // 12px
93
+ --text-sm: 0.875rem; // 14px
94
+ --text-base: 1rem; // 16px
95
+ --text-lg: 1.125rem; // 18px
96
+ --text-xl: 1.25rem; // 20px
97
+ --text-2xl: 1.5rem; // 24px
98
+
99
+ // -----------------------------------------------------------------------
100
+ // Typography — semantic role tokens (v1.1) — VOCABULARY
101
+ // -----------------------------------------------------------------------
102
+ // Public API surface — full scale exposed; internal usage may skip levels.
103
+ // Vocabulary: density + themes rebind these; mixins read the
104
+ // --font-size/--line-height primitives via @include typography(role),
105
+ // never these tokens directly.
106
+ --text-display-lg: 3.75rem; --lh-display-lg: 1.1;
107
+ --text-display-md: 3rem; --lh-display-md: 1.1;
108
+ --text-display-sm: 1.875rem; --lh-display-sm: 1.1;
109
+
110
+ --text-heading-lg: 1.75rem; --lh-heading-lg: 1.15;
111
+ --text-heading-md: 1.25rem; --lh-heading-md: 1.2;
112
+ --text-heading-sm: 1.125rem; --lh-heading-sm: 1.25;
113
+
114
+ --text-title-md: 1rem; --lh-title-md: 1.3;
115
+ --text-title-sm: 0.875rem; --lh-title-sm: 1.3;
116
+
117
+ --text-body-lg: 1.125rem; --lh-body-lg: 1.6;
118
+ --text-body-md: 0.875rem; --lh-body-md: 1.5; // 14px / 1.5 — DocuFlow body
119
+ --text-body-sm: 0.8125rem; --lh-body-sm: 1.45; // 13px
120
+
121
+ --text-label-md: 0.8125rem; --lh-label-md: 1.4; // 13px
122
+ --text-label-sm: 0.75rem; --lh-label-sm: 1.4;
123
+
124
+ --text-caption: 0.75rem; --lh-caption: 1.4;
125
+
126
+ // -----------------------------------------------------------------------
127
+ // Letter spacing (optical tracking scale)
128
+ // -----------------------------------------------------------------------
129
+ --tracking-tighter: -0.035em;
130
+ --tracking-tight: -0.02em;
131
+ --tracking-normal: 0;
132
+ --tracking-wide: 0.025em;
133
+ --tracking-wider: 0.05em;
134
+
135
+ --font-normal: 400;
136
+ --font-medium: 500;
137
+ --font-semibold: 600;
138
+ --font-bold: 700;
139
+
140
+ // -----------------------------------------------------------------------
141
+ // Z-Index Scale
142
+ // -----------------------------------------------------------------------
143
+ --z-sticky: 10;
144
+ --z-dropdown: 20;
145
+ --z-overlay: 30;
146
+ --z-modal: 40;
147
+ --z-toast: 50;
148
+
149
+ // -----------------------------------------------------------------------
150
+ // App shell — intrinsic dimensions (not spacing rhythm)
151
+ // -----------------------------------------------------------------------
152
+ --app-header-height: 3.25rem; // 52px — DocuFlow topbar height
153
+ --app-sidebar-width: 14.5rem; // 232px — DocuFlow sidebar width
154
+
155
+ // -----------------------------------------------------------------------
156
+ // Logical tokens — the public contract mixins read
157
+ // -----------------------------------------------------------------------
158
+ // Rule: mixin bodies reference ONLY these tokens. Typography mixins read
159
+ // --font-size/--line-height ONLY (via @include typography(role), which
160
+ // rebinds the primitive per role on the consuming element's scope).
161
+ // --text-*/--lh-* role scale is VOCABULARY: density + themes rebind it,
162
+ // mixins never read it directly. --radius-*/--shadow-*/--transition-*/
163
+ // --easing-* role scales remain directly readable (not yet primitived).
164
+ // Back-end scales (--size-*, --color-neutral-*) are re-bound here and in
165
+ // context scopes (density, theme, region overrides) — never read directly
166
+ // inside a component mixin.
167
+ //
168
+ // See .claude/plans/refactor-logical-tokens-architecture.md for the
169
+ // full contract.
170
+ // -----------------------------------------------------------------------
171
+
172
+ // -- Structure & rhythm -----------------------------------------------
173
+ --padding-x: var(--size-sm-up);
174
+ --padding-y: var(--size-xs-up); // 6px — dense base (DocuFlow 7px rounds to 6px)
175
+ --gap: var(--size-xs-up); // 6px — dense base
176
+ // --radius sits with the other primitives in _palette.scss. Declared here it
177
+ // would resolve once at <html> and inherit frozen through every theme island.
178
+
179
+ // Accent-wash strengths. Ratios, not colors — color-mix() stays at the
180
+ // declaration site so --color-accent / --color-bg resolve locally and the
181
+ // semantic-color cascade keeps working. Ladder taken from _dropdown.scss,
182
+ // the only component that had all three states.
183
+ --tint-hover: 7%;
184
+ --tint-selected: 12%;
185
+ --tint-active: 14%;
186
+
187
+ // Translucent accent surface — companions for themes that opt in to a
188
+ // non-solid accent button. NO defaults — `@mixin btn` reads these via
189
+ // fallback to `--color-accent` / `--color-accent-fg`, so the default
190
+ // theme stays solid + white.
191
+ //
192
+ // IMPORTANT — declare at theme :root ONLY when the value is a literal
193
+ // (no nested var(--color-primary)). If a theme needs the translucent
194
+ // fill computed FROM --color-primary, the rebind must happen at
195
+ // consumer scope (e.g. `[data-skin="..."] button[type="submit"], .btn
196
+ // { --btn-bg: ...; }`) so the nested var() resolves at the button —
197
+ // otherwise the .success/.error/.warning/.info status cascade breaks on
198
+ // elements using semantic-color overrides. Glass uses the consumer-scope
199
+ // pattern; see theme/config/_theme.scss.
200
+ // --color-accent-bg
201
+ // --color-accent-bg-hover
202
+ // --color-accent-bg-fg
203
+
204
+ // Nav surface — companions for themes that opt in to a bordered/inset
205
+ // nav appearance (e.g. Glass). NO defaults — `@mixin nav` reads these
206
+ // via fallback to no-op values (transparent border, zero bleed), so
207
+ // the default theme renders unchanged. Themes rebind at theme :root.
208
+ // --nav-link-border-color
209
+ // --nav-link-border-color-hover
210
+ // --nav-link-border-color-active
211
+ // --nav-list-bleed
212
+
213
+ // Button padding tokens
214
+ --btn-padding-x: var(--size-sm-up);
215
+ --btn-padding-y: var(--size-xs-up);
216
+
217
+ // -- Typography — primitives -----------------------------------------
218
+ // Mixins read these two primitives ONLY (via @include typography(role),
219
+ // which rebinds them per role on the consuming element's scope — mirror
220
+ // of how @mixin card rebinds --color-bg). The --text-{role}/--lh-{role}
221
+ // role scale (lines ~202-220) is VOCABULARY: density + themes rebind it,
222
+ // mixins never read it directly. These :root values are the default for
223
+ // text that does not pass through a typography mixin.
224
+ --font-size: var(--text-body-md);
225
+ --line-height: var(--lh-body-md);
226
+
227
+ // -- Motion & depth --------------------------------------------------
228
+ --transition: var(--transition-base);
229
+
230
+ // -- Per-side borders (SOFT — no default) ----------------------------
231
+ // --border-block-start, --border-block-end,
232
+ // --border-inline-start, --border-inline-end
233
+ //
234
+ // Read by structural mixins (card, section-card, floating-panel,
235
+ // stat-card, app-header, app-footer, accordion items, table cells,
236
+ // tab-nav, sidebar edges, page-header, etc.) with a per-mixin
237
+ // fallback. NOT defined here — that is intentional. A scope that
238
+ // re-binds e.g. `--border-block-start: none` flattens the top edge
239
+ // of the matched element so siblings can join with a shared rule.
240
+ //
241
+ // Joining example:
242
+ // .joined-stack > * + * { --border-block-start: none; }
243
+
244
+ // -- Margin (SOFT — no default) --------------------------------
245
+ // --margin-block, --margin-inline
246
+ //
247
+ // Read by structural rhythm rules (label-to-input gap, section
248
+ // margin, header→body separation, sibling stacking,
249
+ // element-pushing horizontal offsets) with a per-mixin rebind.
250
+ // NOT defined here — the value varies too widely across
251
+ // consumers for a single :root default to be useful. Each
252
+ // consumer rebinds locally:
253
+ //
254
+ // @mixin section {
255
+ // --margin-block: var(--size-xl);
256
+ // margin-bottom: var(--margin-block);
257
+ // }
258
+ //
259
+ // NOTE: [data-density] scopes rebind type roles, logical
260
+ // --padding-y/--gap, and control sizing — NOT the --size-* scale.
261
+ // So --margin-block (reading --size-*) is constant across density
262
+ // tiers for now; making structural margins reactive is a Phase 3 item.
263
+ //
264
+ // --margin-inline is the horizontal companion. Used for
265
+ // element-pushing structural offsets (icon→text gap inside a
266
+ // row, sibling element offsets). NOT for flex/grid sibling
267
+ // spacing — that is --gap.
268
+ }
269
+
270
+ // ---------------------------------------------------------------------------
271
+ // Mobile rhythm — logical tokens tighten at ≤ md viewport.
272
+ // Not the same as `[data-density]` (that's a user opt-in).
273
+ // This is viewport-driven structural compression: content dominates chrome
274
+ // at narrow widths. Components reading --padding-x/--padding-y/--gap
275
+ // react via the cascade.
276
+ //
277
+ // Interaction with [data-density]: stacks. Compact density + mobile viewport =
278
+ // both apply; the underlying --padding-y tightens further from the mobile rebind.
279
+ // ---------------------------------------------------------------------------
280
+ @include mq-down(md) {
281
+ :root {
282
+ --padding-y: var(--size-xs); // 6px → 4px
283
+ --gap: var(--size-xs-up); // 6px → 6px (already tight)
284
+ }
285
+ }