@teseor/css 1.14.3 → 1.15.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 (295) hide show
  1. package/package.json +1 -1
  2. package/src/base/root.docs.html +20 -0
  3. package/src/base/typography/typography.docs.html +161 -0
  4. package/src/components/actions/button/button.docs.html +76 -0
  5. package/src/components/actions/button/button.visual.spec.ts +3 -3
  6. package/src/components/actions/button-group/button-group.docs.html +47 -0
  7. package/src/components/actions/button-group/button-group.visual.spec.ts +3 -3
  8. package/src/components/actions/close-button/close-button.docs.html +77 -0
  9. package/src/components/actions/close-button/close-button.visual.spec.ts +3 -3
  10. package/src/components/content/divider/divider.docs.html +27 -0
  11. package/src/components/content/divider/divider.visual.spec.ts +3 -3
  12. package/src/components/content/scroll-area/scroll-area-visual.png +0 -0
  13. package/src/components/content/scroll-area/scroll-area.docs.html +130 -0
  14. package/src/components/content/scroll-area/scroll-area.visual.spec.ts +3 -3
  15. package/src/components/content/spacer/spacer.docs.html +23 -0
  16. package/src/components/content/spacer/spacer.visual.spec.ts +3 -3
  17. package/src/components/data-display/avatar/avatar.docs.html +67 -0
  18. package/src/components/data-display/avatar/avatar.visual.spec.ts +3 -3
  19. package/src/components/data-display/badge/badge.docs.html +39 -0
  20. package/src/components/data-display/badge/badge.visual.spec.ts +3 -3
  21. package/src/components/data-display/card/card-visual.png +0 -0
  22. package/src/components/data-display/card/card.docs.html +36 -0
  23. package/src/components/data-display/card/card.visual.spec.ts +3 -3
  24. package/src/components/data-display/data-list/data-list-visual.png +0 -0
  25. package/src/components/data-display/data-list/data-list.docs.html +97 -0
  26. package/src/components/data-display/data-list/data-list.visual.spec.ts +3 -3
  27. package/src/components/data-display/icon/icon.docs.html +72 -0
  28. package/src/components/data-display/icon/icon.visual.spec.ts +3 -3
  29. package/src/components/data-display/image/image-visual.png +0 -0
  30. package/src/components/data-display/image/image.docs.html +67 -0
  31. package/src/components/data-display/image/image.visual.spec.ts +3 -3
  32. package/src/components/data-display/stat/stat.docs.html +35 -0
  33. package/src/components/data-display/stat/stat.visual.spec.ts +3 -3
  34. package/src/components/data-display/status/status.docs.html +67 -0
  35. package/src/components/data-display/status/status.visual.spec.ts +3 -3
  36. package/src/components/data-display/table/table.docs.html +73 -0
  37. package/src/components/data-display/table/table.visual.spec.ts +3 -3
  38. package/src/components/data-display/tag/tag.docs.html +42 -0
  39. package/src/components/data-display/tag/tag.visual.spec.ts +3 -3
  40. package/src/components/disclosure/accordion/accordion.docs.html +83 -0
  41. package/src/components/disclosure/accordion/accordion.visual.spec.ts +3 -3
  42. package/src/components/disclosure/disclosure/disclosure.docs.html +51 -0
  43. package/src/components/disclosure/disclosure/disclosure.visual.spec.ts +3 -3
  44. package/src/components/feedback/alert/alert.docs.html +90 -0
  45. package/src/components/feedback/alert/alert.visual.spec.ts +3 -3
  46. package/src/components/feedback/progress/progress.docs.html +65 -0
  47. package/src/components/feedback/progress/progress.visual.spec.ts +3 -3
  48. package/src/components/feedback/progress-circle/progress-circle.docs.html +65 -0
  49. package/src/components/feedback/progress-circle/progress-circle.visual.spec.ts +3 -3
  50. package/src/components/feedback/skeleton/skeleton.docs.html +40 -0
  51. package/src/components/feedback/skeleton/skeleton.visual.spec.ts +3 -3
  52. package/src/components/feedback/spinner/spinner.docs.html +28 -0
  53. package/src/components/feedback/spinner/spinner.visual.spec.ts +3 -3
  54. package/src/components/feedback/toast/toast-visual.png +0 -0
  55. package/src/components/feedback/toast/toast.docs.html +109 -0
  56. package/src/components/feedback/toast/toast.visual.spec.ts +3 -3
  57. package/src/components/forms/checkbox/checkbox.docs.html +33 -0
  58. package/src/components/forms/checkbox/checkbox.visual.spec.ts +3 -3
  59. package/src/components/forms/checkbox-group/checkbox-group.docs.html +104 -0
  60. package/src/components/forms/checkbox-group/checkbox-group.visual.spec.ts +3 -3
  61. package/src/components/forms/field/field.docs.html +63 -0
  62. package/src/components/forms/field/field.visual.spec.ts +3 -3
  63. package/src/components/forms/fieldset/fieldset.docs.html +122 -0
  64. package/src/components/forms/fieldset/fieldset.visual.spec.ts +3 -3
  65. package/src/components/forms/form/form.docs.html +132 -0
  66. package/src/components/forms/form/form.visual.spec.ts +3 -3
  67. package/src/components/forms/form-error/form-error.docs.html +18 -0
  68. package/src/components/forms/form-error/form-error.visual.spec.ts +3 -3
  69. package/src/components/forms/form-helper/form-helper.docs.html +42 -0
  70. package/src/components/forms/form-helper/form-helper.visual.spec.ts +3 -3
  71. package/src/components/forms/input/input-visual.png +0 -0
  72. package/src/components/forms/input/input.docs.html +69 -0
  73. package/src/components/forms/input/input.visual.spec.ts +3 -3
  74. package/src/components/forms/label/label-visual.png +0 -0
  75. package/src/components/forms/label/label.docs.html +29 -0
  76. package/src/components/forms/label/label.visual.spec.ts +3 -3
  77. package/src/components/forms/number-input/number-input-visual.png +0 -0
  78. package/src/components/forms/number-input/number-input.docs.html +100 -0
  79. package/src/components/forms/number-input/number-input.visual.spec.ts +3 -3
  80. package/src/components/forms/password-input/password-input-visual.png +0 -0
  81. package/src/components/forms/password-input/password-input.docs.html +88 -0
  82. package/src/components/forms/password-input/password-input.visual.spec.ts +3 -3
  83. package/src/components/forms/radio/radio.docs.html +52 -0
  84. package/src/components/forms/radio/radio.visual.spec.ts +3 -3
  85. package/src/components/forms/radio-group/radio-group.docs.html +100 -0
  86. package/src/components/forms/radio-group/radio-group.visual.spec.ts +3 -3
  87. package/src/components/forms/search-input/search-input-visual.png +0 -0
  88. package/src/components/forms/search-input/search-input.docs.html +87 -0
  89. package/src/components/forms/search-input/search-input.visual.spec.ts +3 -3
  90. package/src/components/forms/select/select-visual.png +0 -0
  91. package/src/components/forms/select/select.docs.html +70 -0
  92. package/src/components/forms/select/select.visual.spec.ts +3 -3
  93. package/src/components/forms/slider/slider-visual.png +0 -0
  94. package/src/components/forms/slider/slider.docs.html +25 -0
  95. package/src/components/forms/slider/slider.visual.spec.ts +3 -3
  96. package/src/components/forms/textarea/textarea-visual.png +0 -0
  97. package/src/components/forms/textarea/textarea.docs.html +39 -0
  98. package/src/components/forms/textarea/textarea.visual.spec.ts +3 -3
  99. package/src/components/forms/toggle/toggle.docs.html +64 -0
  100. package/src/components/forms/toggle/toggle.visual.spec.ts +3 -3
  101. package/src/components/navigation/breadcrumb/breadcrumb.docs.html +60 -0
  102. package/src/components/navigation/breadcrumb/breadcrumb.visual.spec.ts +3 -3
  103. package/src/components/navigation/dropdown-menu/dropdown-menu-visual.png +0 -0
  104. package/src/components/navigation/dropdown-menu/dropdown-menu.docs.html +106 -0
  105. package/src/components/navigation/dropdown-menu/dropdown-menu.visual.spec.ts +3 -3
  106. package/src/components/navigation/menu/menu.docs.html +122 -0
  107. package/src/components/navigation/menu/menu.visual.spec.ts +3 -3
  108. package/src/components/navigation/nav/nav.docs.html +74 -0
  109. package/src/components/navigation/nav/nav.visual.spec.ts +3 -3
  110. package/src/components/navigation/pagination/pagination-visual.png +0 -0
  111. package/src/components/navigation/pagination/pagination.docs.html +116 -0
  112. package/src/components/navigation/pagination/pagination.visual.spec.ts +3 -3
  113. package/src/components/navigation/tabs/tabs.docs.html +66 -0
  114. package/src/components/navigation/tabs/tabs.visual.spec.ts +3 -3
  115. package/src/components/overlays/dialog/dialog.docs.html +61 -0
  116. package/src/components/overlays/dialog/dialog.visual.spec.ts +3 -3
  117. package/src/components/overlays/drawer/drawer-visual.png +0 -0
  118. package/src/components/overlays/drawer/drawer.docs.html +90 -0
  119. package/src/components/overlays/drawer/drawer.visual.spec.ts +3 -3
  120. package/src/components/overlays/modal/modal.docs.html +69 -0
  121. package/src/components/overlays/modal/modal.visual.spec.ts +3 -3
  122. package/src/components/overlays/overlay/overlay.docs.html +30 -0
  123. package/src/components/overlays/overlay/overlay.visual.spec.ts +3 -3
  124. package/src/components/overlays/popover/popover.docs.html +41 -0
  125. package/src/components/overlays/popover/popover.visual.spec.ts +3 -3
  126. package/src/components/overlays/tooltip/tooltip.docs.html +33 -0
  127. package/src/components/overlays/tooltip/tooltip.visual.spec.ts +3 -3
  128. package/src/components/typography/blockquote/blockquote.docs.html +24 -0
  129. package/src/components/typography/blockquote/blockquote.visual.spec.ts +3 -3
  130. package/src/components/typography/code/code-visual.png +0 -0
  131. package/src/components/typography/code/code.docs.html +23 -0
  132. package/src/components/typography/code/code.visual.spec.ts +3 -3
  133. package/src/components/typography/code-block/code-block-visual.png +0 -0
  134. package/src/components/typography/code-block/code-block.docs.html +87 -0
  135. package/src/components/typography/code-block/code-block.visual.spec.ts +3 -3
  136. package/src/components/typography/heading/heading-visual.png +0 -0
  137. package/src/components/typography/heading/heading.docs.html +26 -0
  138. package/src/components/typography/heading/heading.visual.spec.ts +3 -3
  139. package/src/components/typography/kbd/kbd.docs.html +16 -0
  140. package/src/components/typography/kbd/kbd.visual.spec.ts +3 -3
  141. package/src/components/typography/link/link.docs.html +33 -0
  142. package/src/components/typography/link/link.visual.spec.ts +3 -3
  143. package/src/components/typography/list/list.docs.html +79 -0
  144. package/src/components/typography/list/list.visual.spec.ts +3 -3
  145. package/src/components/typography/mark/mark.docs.html +12 -0
  146. package/src/components/typography/mark/mark.visual.spec.ts +3 -3
  147. package/src/config/guides/accessibility.docs.html +108 -0
  148. package/src/config/guides/getting-started.docs.html +47 -0
  149. package/src/config/guides/theming.docs.html +71 -0
  150. package/src/config/tokens/colors/colors.docs.html +75 -0
  151. package/src/config/tokens/design-tokens.docs.html +116 -0
  152. package/src/config/tokens/grid/grid.docs.html +12 -0
  153. package/src/config/tokens/spacing/spacing.docs.html +33 -0
  154. package/src/debug/debug.docs.html +29 -0
  155. package/src/layout/app-shell/app-shell-visual.png +0 -0
  156. package/src/layout/app-shell/app-shell.docs.html +102 -0
  157. package/src/layout/app-shell/app-shell.visual.spec.ts +3 -3
  158. package/src/layout/aspect-ratio/aspect-ratio.docs.html +41 -0
  159. package/src/layout/aspect-ratio/aspect-ratio.visual.spec.ts +3 -3
  160. package/src/layout/box/box-visual.png +0 -0
  161. package/src/layout/box/box.docs.html +27 -0
  162. package/src/layout/box/box.visual.spec.ts +3 -3
  163. package/src/layout/center/center.docs.html +26 -0
  164. package/src/layout/center/center.visual.spec.ts +3 -3
  165. package/src/layout/column/column.docs.html +32 -0
  166. package/src/layout/column/column.visual.spec.ts +3 -3
  167. package/src/layout/container/container.docs.html +37 -0
  168. package/src/layout/content/content-visual.png +0 -0
  169. package/src/layout/content/content.docs.html +38 -0
  170. package/src/layout/content/content.visual.spec.ts +7 -3
  171. package/src/layout/footer/footer-visual.png +0 -0
  172. package/src/layout/footer/footer.docs.html +73 -0
  173. package/src/layout/footer/footer.visual.spec.ts +7 -3
  174. package/src/layout/grid/grid.docs.html +87 -0
  175. package/src/layout/grid/grid.visual.spec.ts +3 -3
  176. package/src/layout/main/main.docs.html +31 -0
  177. package/src/layout/nav-rail/nav-rail-visual.png +0 -0
  178. package/src/layout/nav-rail/nav-rail.docs.html +42 -0
  179. package/src/layout/nav-rail/nav-rail.visual.spec.ts +7 -3
  180. package/src/layout/page-header/page-header.docs.html +52 -0
  181. package/src/layout/page-header/page-header.visual.spec.ts +7 -3
  182. package/src/layout/row/row.docs.html +47 -0
  183. package/src/layout/row/row.visual.spec.ts +3 -3
  184. package/src/layout/sidebar/sidebar-visual.png +0 -0
  185. package/src/layout/sidebar/sidebar.docs.html +30 -0
  186. package/src/layout/sidebar/sidebar.visual.spec.ts +7 -3
  187. package/src/layout/sidebar-nav/sidebar-nav.docs.html +235 -0
  188. package/src/layout/sidebar-nav/sidebar-nav.visual.spec.ts +7 -3
  189. package/src/layout/topbar/topbar-visual.png +0 -0
  190. package/src/layout/topbar/topbar.docs.html +64 -0
  191. package/src/layout/topbar/topbar.visual.spec.ts +7 -3
  192. package/src/utilities/container/container.docs.html +34 -0
  193. package/src/utilities/display/display.docs.html +30 -0
  194. package/src/utilities/scroll-animation/scroll-animation.docs.html +32 -0
  195. package/src/utilities/scroll-snap/scroll-snap.docs.html +80 -0
  196. package/src/utilities/spacing/spacing.docs.html +29 -0
  197. package/src/utilities/text/text.docs.html +66 -0
  198. package/src/utilities/view-transition/view-transition.docs.html +52 -0
  199. package/src/utilities/visually-hidden/visually-hidden.docs.html +18 -0
  200. package/src/base/root.docs.json +0 -35
  201. package/src/base/typography/typography.docs.json +0 -328
  202. package/src/components/actions/button/button.docs.json +0 -264
  203. package/src/components/actions/button-group/button-group.docs.json +0 -151
  204. package/src/components/actions/close-button/close-button.docs.json +0 -265
  205. package/src/components/content/divider/divider.docs.json +0 -113
  206. package/src/components/content/scroll-area/scroll-area.docs.json +0 -273
  207. package/src/components/content/spacer/spacer.docs.json +0 -102
  208. package/src/components/data-display/avatar/avatar.docs.json +0 -245
  209. package/src/components/data-display/badge/badge.docs.json +0 -114
  210. package/src/components/data-display/card/card.docs.json +0 -229
  211. package/src/components/data-display/data-list/data-list.docs.json +0 -259
  212. package/src/components/data-display/icon/icon.docs.json +0 -307
  213. package/src/components/data-display/image/image.docs.json +0 -337
  214. package/src/components/data-display/stat/stat.docs.json +0 -114
  215. package/src/components/data-display/status/status.docs.json +0 -147
  216. package/src/components/data-display/table/table.docs.json +0 -184
  217. package/src/components/data-display/tag/tag.docs.json +0 -146
  218. package/src/components/disclosure/accordion/accordion.docs.json +0 -206
  219. package/src/components/disclosure/disclosure/disclosure.docs.json +0 -154
  220. package/src/components/feedback/alert/alert.docs.json +0 -325
  221. package/src/components/feedback/progress/progress.docs.json +0 -315
  222. package/src/components/feedback/progress-circle/progress-circle.docs.json +0 -378
  223. package/src/components/feedback/skeleton/skeleton.docs.json +0 -142
  224. package/src/components/feedback/spinner/spinner.docs.json +0 -121
  225. package/src/components/feedback/toast/toast.docs.json +0 -418
  226. package/src/components/forms/checkbox/checkbox.docs.json +0 -166
  227. package/src/components/forms/checkbox-group/checkbox-group.docs.json +0 -339
  228. package/src/components/forms/field/field.docs.json +0 -276
  229. package/src/components/forms/fieldset/fieldset.docs.json +0 -520
  230. package/src/components/forms/form/form.docs.json +0 -482
  231. package/src/components/forms/form-error/form-error.docs.json +0 -61
  232. package/src/components/forms/form-helper/form-helper.docs.json +0 -151
  233. package/src/components/forms/input/input.docs.json +0 -306
  234. package/src/components/forms/label/label.docs.json +0 -110
  235. package/src/components/forms/number-input/number-input.docs.json +0 -311
  236. package/src/components/forms/password-input/password-input.docs.json +0 -316
  237. package/src/components/forms/radio/radio.docs.json +0 -236
  238. package/src/components/forms/radio-group/radio-group.docs.json +0 -351
  239. package/src/components/forms/search-input/search-input.docs.json +0 -293
  240. package/src/components/forms/select/select.docs.json +0 -231
  241. package/src/components/forms/slider/slider.docs.json +0 -144
  242. package/src/components/forms/textarea/textarea.docs.json +0 -229
  243. package/src/components/forms/toggle/toggle.docs.json +0 -229
  244. package/src/components/navigation/breadcrumb/breadcrumb.docs.json +0 -240
  245. package/src/components/navigation/dropdown-menu/dropdown-menu.docs.json +0 -290
  246. package/src/components/navigation/menu/menu.docs.json +0 -326
  247. package/src/components/navigation/nav/nav.docs.json +0 -304
  248. package/src/components/navigation/pagination/pagination.docs.json +0 -483
  249. package/src/components/navigation/tabs/tabs.docs.json +0 -243
  250. package/src/components/overlays/dialog/dialog.docs.json +0 -200
  251. package/src/components/overlays/drawer/drawer.docs.json +0 -307
  252. package/src/components/overlays/modal/modal.docs.json +0 -252
  253. package/src/components/overlays/overlay/overlay.docs.json +0 -138
  254. package/src/components/overlays/popover/popover.docs.json +0 -154
  255. package/src/components/overlays/tooltip/tooltip.docs.json +0 -133
  256. package/src/components/typography/blockquote/blockquote.docs.json +0 -89
  257. package/src/components/typography/code/code.docs.json +0 -104
  258. package/src/components/typography/code-block/code-block.docs.json +0 -308
  259. package/src/components/typography/heading/heading.docs.json +0 -120
  260. package/src/components/typography/kbd/kbd.docs.json +0 -61
  261. package/src/components/typography/link/link.docs.json +0 -149
  262. package/src/components/typography/list/list.docs.json +0 -296
  263. package/src/components/typography/mark/mark.docs.json +0 -60
  264. package/src/config/guides/accessibility.docs.json +0 -126
  265. package/src/config/guides/getting-started.docs.json +0 -106
  266. package/src/config/guides/theming.docs.json +0 -289
  267. package/src/config/tokens/colors/colors.docs.json +0 -316
  268. package/src/config/tokens/design-tokens.docs.json +0 -239
  269. package/src/config/tokens/grid/grid.docs.json +0 -54
  270. package/src/config/tokens/spacing/spacing.docs.json +0 -114
  271. package/src/debug/debug.docs.json +0 -96
  272. package/src/layout/app-shell/app-shell.docs.json +0 -155
  273. package/src/layout/aspect-ratio/aspect-ratio.docs.json +0 -193
  274. package/src/layout/box/box.docs.json +0 -93
  275. package/src/layout/center/center.docs.json +0 -63
  276. package/src/layout/column/column.docs.json +0 -157
  277. package/src/layout/container/container.docs.json +0 -85
  278. package/src/layout/content/content.docs.json +0 -82
  279. package/src/layout/footer/footer.docs.json +0 -119
  280. package/src/layout/grid/grid.docs.json +0 -493
  281. package/src/layout/main/main.docs.json +0 -87
  282. package/src/layout/nav-rail/nav-rail.docs.json +0 -76
  283. package/src/layout/page-header/page-header.docs.json +0 -124
  284. package/src/layout/row/row.docs.json +0 -237
  285. package/src/layout/sidebar/sidebar.docs.json +0 -63
  286. package/src/layout/sidebar-nav/sidebar-nav.docs.json +0 -833
  287. package/src/layout/topbar/topbar.docs.json +0 -110
  288. package/src/utilities/container/container.docs.json +0 -121
  289. package/src/utilities/display/display.docs.json +0 -83
  290. package/src/utilities/scroll-animation/scroll-animation.docs.json +0 -100
  291. package/src/utilities/scroll-snap/scroll-snap.docs.json +0 -333
  292. package/src/utilities/spacing/spacing.docs.json +0 -133
  293. package/src/utilities/text/text.docs.json +0 -191
  294. package/src/utilities/view-transition/view-transition.docs.json +0 -63
  295. package/src/utilities/visually-hidden/visually-hidden.docs.json +0 -44
@@ -1,239 +0,0 @@
1
- {
2
- "id": "design-tokens",
3
- "type": "token",
4
- "title": "Design Tokens",
5
- "description": "Borders, radius, shadows, motion, z-index, and semantic tokens that form the visual foundation",
6
- "skipValidation": true,
7
- "sections": [
8
- {
9
- "title": "Borders",
10
- "description": "Border width tokens derived from the 8px unit.",
11
- "examples": [
12
- {
13
- "layout": "row",
14
- "items": [
15
- {
16
- "tag": "div",
17
- "style": {
18
- "width": "var(--ui-space-8)",
19
- "height": "var(--ui-row-2)",
20
- "border": "var(--ui-border-width-sm) solid var(--ui-color-border-strong)"
21
- }
22
- },
23
- {
24
- "tag": "div",
25
- "style": {
26
- "width": "var(--ui-space-8)",
27
- "height": "var(--ui-row-2)",
28
- "border": "var(--ui-border-width-md) solid var(--ui-color-border-strong)"
29
- }
30
- },
31
- {
32
- "tag": "div",
33
- "style": {
34
- "width": "var(--ui-space-8)",
35
- "height": "var(--ui-row-2)",
36
- "border": "var(--ui-border-width-lg) solid var(--ui-color-border-strong)"
37
- }
38
- }
39
- ],
40
- "code": ":root {\n --ui-border-width-sm: calc(var(--ui-unit) * 0.125); /* 1px */\n --ui-border-width-md: calc(var(--ui-unit) * 0.25); /* 2px */\n --ui-border-width-lg: calc(var(--ui-unit) * 0.5); /* 4px */\n}"
41
- }
42
- ]
43
- },
44
- {
45
- "title": "Radius",
46
- "description": "Border radius tokens derived from the 8px unit.",
47
- "examples": [
48
- {
49
- "layout": "row",
50
- "items": [
51
- {
52
- "tag": "div",
53
- "class": "ui-column ui-column--xs",
54
- "style": { "align-items": "center" },
55
- "children": [
56
- {
57
- "tag": "div",
58
- "style": {
59
- "width": "var(--ui-row-3)",
60
- "height": "var(--ui-row-3)",
61
- "background": "var(--ui-color-primary)",
62
- "border-radius": "var(--ui-radius-sm)"
63
- }
64
- },
65
- { "tag": "small", "text": "sm (4px)" }
66
- ]
67
- },
68
- {
69
- "tag": "div",
70
- "class": "ui-column ui-column--xs",
71
- "style": { "align-items": "center" },
72
- "children": [
73
- {
74
- "tag": "div",
75
- "style": {
76
- "width": "var(--ui-row-3)",
77
- "height": "var(--ui-row-3)",
78
- "background": "var(--ui-color-primary)",
79
- "border-radius": "var(--ui-radius-md)"
80
- }
81
- },
82
- { "tag": "small", "text": "md (8px)" }
83
- ]
84
- },
85
- {
86
- "tag": "div",
87
- "class": "ui-column ui-column--xs",
88
- "style": { "align-items": "center" },
89
- "children": [
90
- {
91
- "tag": "div",
92
- "style": {
93
- "width": "var(--ui-row-3)",
94
- "height": "var(--ui-row-3)",
95
- "background": "var(--ui-color-primary)",
96
- "border-radius": "var(--ui-radius-lg)"
97
- }
98
- },
99
- { "tag": "small", "text": "lg (16px)" }
100
- ]
101
- },
102
- {
103
- "tag": "div",
104
- "class": "ui-column ui-column--xs",
105
- "style": { "align-items": "center" },
106
- "children": [
107
- {
108
- "tag": "div",
109
- "style": {
110
- "width": "var(--ui-row-3)",
111
- "height": "var(--ui-row-3)",
112
- "background": "var(--ui-color-primary)",
113
- "border-radius": "var(--ui-radius-full)"
114
- }
115
- },
116
- { "tag": "small", "text": "full" }
117
- ]
118
- }
119
- ],
120
- "code": ":root {\n --ui-radius-sm: calc(var(--ui-unit) * 0.5); /* 4px */\n --ui-radius-md: var(--ui-unit); /* 8px */\n --ui-radius-lg: calc(var(--ui-unit) * 2); /* 16px */\n --ui-radius-full: 9999px;\n}"
121
- }
122
- ]
123
- },
124
- {
125
- "title": "Shadows",
126
- "description": "Elevation shadows using the primary hue for tinted depth.",
127
- "examples": [
128
- {
129
- "layout": "row",
130
- "items": [
131
- {
132
- "tag": "div",
133
- "class": "ui-column ui-column--xs",
134
- "style": { "align-items": "center" },
135
- "children": [
136
- {
137
- "tag": "div",
138
- "style": {
139
- "width": "var(--ui-space-8)",
140
- "height": "var(--ui-row-3)",
141
- "background": "var(--ui-color-bg)",
142
- "border-radius": "var(--ui-radius-md)",
143
- "box-shadow": "var(--ui-shadow-sm)"
144
- }
145
- },
146
- { "tag": "small", "text": "sm" }
147
- ]
148
- },
149
- {
150
- "tag": "div",
151
- "class": "ui-column ui-column--xs",
152
- "style": { "align-items": "center" },
153
- "children": [
154
- {
155
- "tag": "div",
156
- "style": {
157
- "width": "var(--ui-space-8)",
158
- "height": "var(--ui-row-3)",
159
- "background": "var(--ui-color-bg)",
160
- "border-radius": "var(--ui-radius-md)",
161
- "box-shadow": "var(--ui-shadow-md)"
162
- }
163
- },
164
- { "tag": "small", "text": "md" }
165
- ]
166
- },
167
- {
168
- "tag": "div",
169
- "class": "ui-column ui-column--xs",
170
- "style": { "align-items": "center" },
171
- "children": [
172
- {
173
- "tag": "div",
174
- "style": {
175
- "width": "var(--ui-space-8)",
176
- "height": "var(--ui-row-3)",
177
- "background": "var(--ui-color-bg)",
178
- "border-radius": "var(--ui-radius-md)",
179
- "box-shadow": "var(--ui-shadow-lg)"
180
- }
181
- },
182
- { "tag": "small", "text": "lg" }
183
- ]
184
- }
185
- ],
186
- "code": ":root {\n --ui-shadow-sm: 0 1px 2px hsl(var(--ui-hue-primary) 10% 20% / 0.05);\n --ui-shadow-md: 0 4px 6px hsl(var(--ui-hue-primary) 10% 20% / 0.1);\n --ui-shadow-lg: 0 10px 15px hsl(var(--ui-hue-primary) 10% 20% / 0.15);\n}"
187
- }
188
- ]
189
- },
190
- {
191
- "title": "Motion",
192
- "description": "Duration and easing tokens. All durations drop to 0ms when prefers-reduced-motion is active.",
193
- "examples": [
194
- {
195
- "title": "Duration scale",
196
- "code": ":root {\n --ui-duration-instant: 50ms;\n --ui-duration-fast: 100ms;\n --ui-duration-base: 150ms;\n --ui-duration-normal: 200ms;\n --ui-duration-slow: 250ms;\n --ui-duration-slower: 400ms;\n}\n\n@media (prefers-reduced-motion: reduce) {\n :root {\n --ui-duration-instant: 0ms;\n --ui-duration-fast: 0ms;\n /* ...all set to 0ms */\n }\n}"
197
- },
198
- {
199
- "title": "Easing functions",
200
- "code": ":root {\n --ui-ease-default: cubic-bezier(0.4, 0, 0.2, 1);\n --ui-ease-in: cubic-bezier(0.4, 0, 1, 1);\n --ui-ease-out: cubic-bezier(0, 0, 0.2, 1);\n --ui-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);\n}"
201
- }
202
- ]
203
- },
204
- {
205
- "title": "Z-index",
206
- "description": "Layering scale with gaps to allow insertion without renumbering.",
207
- "examples": [
208
- {
209
- "title": "Z-index tokens",
210
- "code": ":root {\n --ui-z-base: 0;\n --ui-z-sticky: 100;\n --ui-z-dropdown: 200;\n --ui-z-overlay: 300;\n --ui-z-modal: 400;\n --ui-z-popover: 500;\n --ui-z-tooltip: 600;\n --ui-z-toast: 700;\n --ui-z-drawer: 800;\n --ui-z-debug: 9999;\n}"
211
- }
212
- ]
213
- },
214
- {
215
- "title": "Semantic Colors",
216
- "description": "Context-aware color tokens that resolve automatically in light and dark mode via light-dark().",
217
- "examples": [
218
- {
219
- "title": "Text and background",
220
- "code": ":root {\n color-scheme: light dark;\n --ui-color-text: light-dark(var(--ui-color-neutral-900), var(--ui-color-neutral-100));\n --ui-color-text-muted: light-dark(var(--ui-color-neutral-500), var(--ui-color-neutral-400));\n --ui-color-bg: light-dark(var(--ui-color-neutral-50), var(--ui-color-neutral-900));\n --ui-color-bg-subtle: light-dark(var(--ui-color-neutral-100), var(--ui-color-neutral-800));\n}"
221
- },
222
- {
223
- "title": "Borders and interactive",
224
- "code": ":root {\n --ui-color-border: light-dark(var(--ui-color-neutral-200), var(--ui-color-neutral-700));\n --ui-color-border-strong: light-dark(var(--ui-color-neutral-300), var(--ui-color-neutral-600));\n --ui-color-interactive: var(--ui-color-primary);\n --ui-color-interactive-hover: var(--ui-color-primary-dark);\n --ui-color-focus: var(--ui-color-primary-light);\n}"
225
- }
226
- ]
227
- },
228
- {
229
- "title": "Semantic Spacing",
230
- "description": "Named spacing aliases that map to the numeric spacing scale for consistent layout patterns.",
231
- "examples": [
232
- {
233
- "title": "Semantic spacing tokens",
234
- "code": ":root {\n --ui-spacing-xs: var(--ui-space-1); /* 8px */\n --ui-spacing-sm: var(--ui-space-2); /* 16px */\n --ui-spacing-md: var(--ui-space-4); /* 32px */\n --ui-spacing-lg: var(--ui-space-6); /* 48px */\n --ui-spacing-xl: var(--ui-space-8); /* 64px */\n --ui-spacing-gutter: var(--ui-space-4); /* 32px */\n --ui-spacing-section: var(--ui-space-8);/* 64px */\n}"
235
- }
236
- ]
237
- }
238
- ]
239
- }
@@ -1,54 +0,0 @@
1
- {
2
- "id": "grid",
3
- "type": "token",
4
- "title": "Grid System",
5
- "description": "All spacing and heights align to the 8px grid.",
6
- "skipValidation": true,
7
- "sections": [
8
- {
9
- "examples": [
10
- {
11
- "layout": "column",
12
- "items": [
13
- {
14
- "tag": "div",
15
- "text": "row-1 (16px)",
16
- "style": {
17
- "background": "var(--ui-color-primary)",
18
- "color": "var(--ui-color-text-inverse)",
19
- "height": "var(--ui-row-1)",
20
- "display": "flex",
21
- "align-items": "center",
22
- "padding": "0 var(--ui-space-2)"
23
- }
24
- },
25
- {
26
- "tag": "div",
27
- "text": "row-2 (32px)",
28
- "style": {
29
- "background": "var(--ui-color-primary)",
30
- "color": "var(--ui-color-text-inverse)",
31
- "height": "var(--ui-row-2)",
32
- "display": "flex",
33
- "align-items": "center",
34
- "padding": "0 var(--ui-space-2)"
35
- }
36
- },
37
- {
38
- "tag": "div",
39
- "text": "row-3 (48px)",
40
- "style": {
41
- "background": "var(--ui-color-primary)",
42
- "color": "var(--ui-color-text-inverse)",
43
- "height": "var(--ui-row-3)",
44
- "display": "flex",
45
- "align-items": "center",
46
- "padding": "0 var(--ui-space-2)"
47
- }
48
- }
49
- ]
50
- }
51
- ]
52
- }
53
- ]
54
- }
@@ -1,114 +0,0 @@
1
- {
2
- "id": "spacing",
3
- "type": "token",
4
- "title": "Spacing",
5
- "description": "Spacing tokens based on the 8px unit.",
6
- "skipValidation": true,
7
- "sections": [
8
- {
9
- "examples": [
10
- {
11
- "layout": "row",
12
- "items": [
13
- {
14
- "tag": "div",
15
- "class": "ui-column ui-column--xs",
16
- "style": { "align-items": "center" },
17
- "children": [
18
- {
19
- "tag": "div",
20
- "style": {
21
- "width": "var(--ui-space-1)",
22
- "height": "var(--ui-space-4)",
23
- "background": "var(--ui-color-primary)"
24
- }
25
- },
26
- { "tag": "small", "text": "space-1" }
27
- ]
28
- },
29
- {
30
- "tag": "div",
31
- "class": "ui-column ui-column--xs",
32
- "style": { "align-items": "center" },
33
- "children": [
34
- {
35
- "tag": "div",
36
- "style": {
37
- "width": "var(--ui-space-2)",
38
- "height": "var(--ui-space-4)",
39
- "background": "var(--ui-color-primary)"
40
- }
41
- },
42
- { "tag": "small", "text": "space-2" }
43
- ]
44
- },
45
- {
46
- "tag": "div",
47
- "class": "ui-column ui-column--xs",
48
- "style": { "align-items": "center" },
49
- "children": [
50
- {
51
- "tag": "div",
52
- "style": {
53
- "width": "var(--ui-space-3)",
54
- "height": "var(--ui-space-4)",
55
- "background": "var(--ui-color-primary)"
56
- }
57
- },
58
- { "tag": "small", "text": "space-3" }
59
- ]
60
- },
61
- {
62
- "tag": "div",
63
- "class": "ui-column ui-column--xs",
64
- "style": { "align-items": "center" },
65
- "children": [
66
- {
67
- "tag": "div",
68
- "style": {
69
- "width": "var(--ui-space-4)",
70
- "height": "var(--ui-space-4)",
71
- "background": "var(--ui-color-primary)"
72
- }
73
- },
74
- { "tag": "small", "text": "space-4" }
75
- ]
76
- },
77
- {
78
- "tag": "div",
79
- "class": "ui-column ui-column--xs",
80
- "style": { "align-items": "center" },
81
- "children": [
82
- {
83
- "tag": "div",
84
- "style": {
85
- "width": "var(--ui-space-6)",
86
- "height": "var(--ui-space-4)",
87
- "background": "var(--ui-color-primary)"
88
- }
89
- },
90
- { "tag": "small", "text": "space-6" }
91
- ]
92
- },
93
- {
94
- "tag": "div",
95
- "class": "ui-column ui-column--xs",
96
- "style": { "align-items": "center" },
97
- "children": [
98
- {
99
- "tag": "div",
100
- "style": {
101
- "width": "var(--ui-space-8)",
102
- "height": "var(--ui-space-4)",
103
- "background": "var(--ui-color-primary)"
104
- }
105
- },
106
- { "tag": "small", "text": "space-8" }
107
- ]
108
- }
109
- ]
110
- }
111
- ]
112
- }
113
- ]
114
- }
@@ -1,96 +0,0 @@
1
- {
2
- "id": "debug",
3
- "type": "utility",
4
- "title": "Debug",
5
- "description": "Visual debugging overlays for grid alignment, baseline rhythm, and element boundaries",
6
- "skipValidation": true,
7
- "sections": [
8
- {
9
- "title": "Grid Overlay",
10
- "description": "Shows the 8px unit grid. Add the class to any container.",
11
- "examples": [
12
- {
13
- "title": "Unit grid",
14
- "items": [
15
- {
16
- "tag": "div",
17
- "class": "ui-debug-grid",
18
- "style": {
19
- "height": "var(--ui-row-6)",
20
- "position": "relative"
21
- }
22
- }
23
- ],
24
- "code": "<div class=\"ui-debug-grid\">\n <!-- 8px grid lines appear -->\n</div>"
25
- }
26
- ]
27
- },
28
- {
29
- "title": "Row Grid",
30
- "description": "Shows both 8px unit lines and stronger row (16px) lines.",
31
- "examples": [
32
- {
33
- "title": "Unit + row grid",
34
- "items": [
35
- {
36
- "tag": "div",
37
- "class": "ui-debug-grid-rows",
38
- "style": {
39
- "height": "var(--ui-row-6)",
40
- "position": "relative"
41
- }
42
- }
43
- ],
44
- "code": "<div class=\"ui-debug-grid-rows\">\n <!-- 8px + 16px grid lines -->\n</div>"
45
- }
46
- ]
47
- },
48
- {
49
- "title": "Baseline",
50
- "description": "Horizontal baseline grid for verifying text alignment.",
51
- "examples": [
52
- {
53
- "title": "Baseline grid",
54
- "items": [
55
- {
56
- "tag": "div",
57
- "class": "ui-debug-baseline",
58
- "style": {
59
- "height": "var(--ui-row-6)",
60
- "position": "relative"
61
- }
62
- }
63
- ],
64
- "code": "<div class=\"ui-debug-baseline\">\n <!-- Horizontal 8px baseline lines -->\n</div>"
65
- }
66
- ]
67
- },
68
- {
69
- "title": "Outline",
70
- "description": "Outlines all child elements to reveal layout boundaries.",
71
- "examples": [
72
- {
73
- "title": "Element outlines",
74
- "items": [
75
- {
76
- "tag": "div",
77
- "class": "ui-debug-outline",
78
- "children": [
79
- {
80
- "tag": "div",
81
- "class": "ui-row ui-row--sm",
82
- "children": [
83
- { "tag": "div", "text": "A", "style": { "padding": "var(--ui-space-1)" } },
84
- { "tag": "div", "text": "B", "style": { "padding": "var(--ui-space-1)" } },
85
- { "tag": "div", "text": "C", "style": { "padding": "var(--ui-space-1)" } }
86
- ]
87
- }
88
- ]
89
- }
90
- ],
91
- "code": "<div class=\"ui-debug-outline\">\n <!-- All children get red outlines -->\n</div>"
92
- }
93
- ]
94
- }
95
- ]
96
- }
@@ -1,155 +0,0 @@
1
- {
2
- "id": "layout",
3
- "type": "primitive",
4
- "title": "Layout",
5
- "description": "Layout primitives for app shells with sidebars and content containers.",
6
- "api": "app-shell.api.json",
7
- "sections": [
8
- {
9
- "title": "App Shell + Sidebar + Main",
10
- "description": "This page uses the layout primitives:",
11
- "examples": [
12
- {
13
- "code": "<body class=\"ui-app-shell\">\n <aside class=\"ui-sidebar\">\n <!-- sidebar content -->\n </aside>\n <main class=\"ui-main\">\n <div class=\"ui-container\">\n <!-- page content -->\n </div>\n </main>\n</body>"
14
- }
15
- ]
16
- },
17
- {
18
- "title": "With Topbar",
19
- "description": "Add a fixed topbar by setting --topbar-height on app-shell. Sidebar and main offset automatically.",
20
- "examples": [
21
- {
22
- "code": "<body class=\"ui-app-shell\" style=\"--topbar-height: var(--ui-row-3)\">\n <header class=\"ui-topbar ui-topbar--fixed ui-topbar--bordered\">\n <div class=\"ui-topbar__start\"><strong>App</strong></div>\n <div class=\"ui-topbar__end\">User</div>\n </header>\n <aside class=\"ui-sidebar\">Sidebar</aside>\n <main class=\"ui-main\">\n <div class=\"ui-container\">Content</div>\n </main>\n</body>"
23
- }
24
- ]
25
- },
26
- {
27
- "title": "Sidebar Widths",
28
- "examples": [
29
- {
30
- "layout": "column",
31
- "items": [
32
- {
33
- "tag": "div",
34
- "class": "ui-row ui-row--sm",
35
- "children": [
36
- { "tag": "code", "text": ".ui-sidebar--sm" },
37
- { "tag": "span", "text": "192px (24 units)" }
38
- ]
39
- },
40
- {
41
- "tag": "div",
42
- "class": "ui-row ui-row--sm",
43
- "children": [
44
- { "tag": "code", "text": ".ui-sidebar--md" },
45
- { "tag": "span", "text": "240px (30 units) - default" }
46
- ]
47
- },
48
- {
49
- "tag": "div",
50
- "class": "ui-row ui-row--sm",
51
- "children": [
52
- { "tag": "code", "text": ".ui-sidebar--lg" },
53
- { "tag": "span", "text": "320px (40 units)" }
54
- ]
55
- }
56
- ]
57
- }
58
- ]
59
- },
60
- {
61
- "title": "Sidebar Position",
62
- "description": "By default, sidebar is on the start (left in LTR). Use .ui-sidebar--end for right-side:",
63
- "examples": [
64
- {
65
- "code": "<aside class=\"ui-sidebar ui-sidebar--end\">...</aside>\n<main class=\"ui-main ui-main--sidebar-end\">...</main>"
66
- }
67
- ]
68
- },
69
- {
70
- "title": "Container Widths",
71
- "examples": [
72
- {
73
- "layout": "column",
74
- "items": [
75
- {
76
- "tag": "div",
77
- "class": "ui-row ui-row--sm",
78
- "children": [
79
- { "tag": "code", "text": ".ui-container--sm" },
80
- { "tag": "span", "text": "640px (80 units)" }
81
- ]
82
- },
83
- {
84
- "tag": "div",
85
- "class": "ui-row ui-row--sm",
86
- "children": [
87
- { "tag": "code", "text": ".ui-container--md" },
88
- { "tag": "span", "text": "800px (100 units)" }
89
- ]
90
- },
91
- {
92
- "tag": "div",
93
- "class": "ui-row ui-row--sm",
94
- "children": [
95
- { "tag": "code", "text": ".ui-container--lg" },
96
- { "tag": "span", "text": "960px (120 units) - default" }
97
- ]
98
- },
99
- {
100
- "tag": "div",
101
- "class": "ui-row ui-row--sm",
102
- "children": [
103
- { "tag": "code", "text": ".ui-container--xl" },
104
- { "tag": "span", "text": "1280px (160 units)" }
105
- ]
106
- },
107
- {
108
- "tag": "div",
109
- "class": "ui-row ui-row--sm",
110
- "children": [
111
- { "tag": "code", "text": ".ui-container--full" },
112
- { "tag": "span", "text": "No max width" }
113
- ]
114
- }
115
- ]
116
- }
117
- ]
118
- },
119
- {
120
- "title": "With Footer",
121
- "description": "Place footer inside the content area, after the container.",
122
- "examples": [
123
- {
124
- "code": "<body class=\"ui-app-shell\">\n <main class=\"ui-main ui-main--full\">\n <div class=\"ui-container\">Content</div>\n <footer class=\"ui-footer ui-footer--bordered\">\n <div class=\"ui-footer__start\"><small>Brand</small></div>\n <div class=\"ui-footer__end\"><small>v1.0.0</small></div>\n </footer>\n </main>\n</body>"
125
- }
126
- ]
127
- },
128
- {
129
- "title": "Topbar Variants",
130
- "description": "Sticky stays in flow, raised adds shadow.",
131
- "examples": [
132
- {
133
- "code": "<header class=\"ui-topbar ui-topbar--sticky ui-topbar--bordered\">...</header>\n<header class=\"ui-topbar ui-topbar--raised\">...</header>"
134
- }
135
- ]
136
- },
137
- {
138
- "title": "Footer Variants",
139
- "description": "Sticky, fixed, and raised options.",
140
- "examples": [
141
- {
142
- "code": "<footer class=\"ui-footer ui-footer--sticky ui-footer--bordered\">...</footer>\n<footer class=\"ui-footer ui-footer--fixed\">...</footer>\n<footer class=\"ui-footer ui-footer--raised\">...</footer>"
143
- }
144
- ]
145
- },
146
- {
147
- "title": "Centered Container",
148
- "examples": [
149
- {
150
- "code": "<div class=\"ui-container ui-container--center\">\n <!-- centered content with max-width -->\n</div>"
151
- }
152
- ]
153
- }
154
- ]
155
- }