@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,296 +0,0 @@
1
- {
2
- "id": "list",
3
- "type": "component",
4
- "title": "List",
5
- "description": "Ordered and unordered lists with spacing control, inline layout, and marker customization.",
6
- "api": "./list.api.json",
7
- "sections": [
8
- {
9
- "title": "Default",
10
- "description": "Unordered list with default bullet markers.",
11
- "examples": [
12
- {
13
- "items": [
14
- {
15
- "tag": "ul",
16
- "class": "ui-list",
17
- "children": [
18
- {
19
- "tag": "li",
20
- "class": "ui-list__item",
21
- "text": "First item in the list"
22
- },
23
- {
24
- "tag": "li",
25
- "class": "ui-list__item",
26
- "text": "Second item in the list"
27
- },
28
- {
29
- "tag": "li",
30
- "class": "ui-list__item",
31
- "text": "Third item in the list"
32
- }
33
- ]
34
- }
35
- ],
36
- "code": "<ul class=\"ui-list\">\n <li>First item</li>\n <li>Second item</li>\n <li>Third item</li>\n</ul>"
37
- }
38
- ]
39
- },
40
- {
41
- "title": "Ordered",
42
- "description": "Use on ol for numbered markers.",
43
- "examples": [
44
- {
45
- "items": [
46
- {
47
- "tag": "ol",
48
- "class": "ui-list",
49
- "children": [
50
- {
51
- "tag": "li",
52
- "text": "Create the branch"
53
- },
54
- {
55
- "tag": "li",
56
- "text": "Implement the feature"
57
- },
58
- {
59
- "tag": "li",
60
- "text": "Open a pull request"
61
- },
62
- {
63
- "tag": "li",
64
- "text": "Merge after review"
65
- }
66
- ]
67
- }
68
- ],
69
- "code": "<ol class=\"ui-list\">\n <li>Create the branch</li>\n <li>Implement the feature</li>\n <li>Open a pull request</li>\n <li>Merge after review</li>\n</ol>"
70
- }
71
- ]
72
- },
73
- {
74
- "title": "Unstyled",
75
- "description": "Removes markers and indent for nav or custom lists.",
76
- "examples": [
77
- {
78
- "items": [
79
- {
80
- "tag": "ul",
81
- "class": "ui-list ui-list--unstyled",
82
- "children": [
83
- {
84
- "tag": "li",
85
- "text": "No bullet markers"
86
- },
87
- {
88
- "tag": "li",
89
- "text": "No inline padding"
90
- },
91
- {
92
- "tag": "li",
93
- "text": "Clean vertical stack"
94
- }
95
- ]
96
- }
97
- ],
98
- "code": "<ul class=\"ui-list ui-list--unstyled\">\n <li>No bullet markers</li>\n <li>No inline padding</li>\n</ul>"
99
- }
100
- ]
101
- },
102
- {
103
- "title": "Inline",
104
- "description": "Horizontal flow with wrapping. Markers removed.",
105
- "examples": [
106
- {
107
- "items": [
108
- {
109
- "tag": "ul",
110
- "class": "ui-list ui-list--inline",
111
- "children": [
112
- {
113
- "tag": "li",
114
- "text": "HTML"
115
- },
116
- {
117
- "tag": "li",
118
- "text": "CSS"
119
- },
120
- {
121
- "tag": "li",
122
- "text": "JavaScript"
123
- },
124
- {
125
- "tag": "li",
126
- "text": "TypeScript"
127
- },
128
- {
129
- "tag": "li",
130
- "text": "React"
131
- }
132
- ]
133
- }
134
- ],
135
- "code": "<ul class=\"ui-list ui-list--inline\">\n <li>HTML</li>\n <li>CSS</li>\n <li>JavaScript</li>\n</ul>"
136
- }
137
- ]
138
- },
139
- {
140
- "title": "Spacing",
141
- "description": "Control gap between items with compact or loose variants.",
142
- "examples": [
143
- {
144
- "items": [
145
- {
146
- "tag": "div",
147
- "class": "ui-column",
148
- "style": {
149
- "gap": "var(--ui-space-2)"
150
- },
151
- "children": [
152
- {
153
- "tag": "p",
154
- "text": "Compact"
155
- },
156
- {
157
- "tag": "ul",
158
- "class": "ui-list ui-list--compact",
159
- "children": [
160
- {
161
- "tag": "li",
162
- "text": "Tight spacing"
163
- },
164
- {
165
- "tag": "li",
166
- "text": "No gap between items"
167
- },
168
- {
169
- "tag": "li",
170
- "text": "Dense content"
171
- }
172
- ]
173
- },
174
- {
175
- "tag": "p",
176
- "text": "Default"
177
- },
178
- {
179
- "tag": "ul",
180
- "class": "ui-list",
181
- "children": [
182
- {
183
- "tag": "li",
184
- "text": "Standard spacing"
185
- },
186
- {
187
- "tag": "li",
188
- "text": "One grid unit gap"
189
- },
190
- {
191
- "tag": "li",
192
- "text": "Balanced readability"
193
- }
194
- ]
195
- },
196
- {
197
- "tag": "p",
198
- "text": "Loose"
199
- },
200
- {
201
- "tag": "ul",
202
- "class": "ui-list ui-list--loose",
203
- "children": [
204
- {
205
- "tag": "li",
206
- "text": "Extra breathing room"
207
- },
208
- {
209
- "tag": "li",
210
- "text": "Two grid units gap"
211
- },
212
- {
213
- "tag": "li",
214
- "text": "Prominent separation"
215
- }
216
- ]
217
- }
218
- ]
219
- }
220
- ],
221
- "code": "<ul class=\"ui-list ui-list--compact\">...</ul>\n<ul class=\"ui-list\">...</ul>\n<ul class=\"ui-list ui-list--loose\">...</ul>"
222
- }
223
- ]
224
- },
225
- {
226
- "title": "Nested",
227
- "description": "Lists inside lists inherit spacing and show sub-level markers.",
228
- "examples": [
229
- {
230
- "items": [
231
- {
232
- "tag": "ul",
233
- "class": "ui-list",
234
- "children": [
235
- {
236
- "tag": "li",
237
- "text": "Top-level item"
238
- },
239
- {
240
- "tag": "li",
241
- "children": [
242
- {
243
- "tag": "span",
244
- "text": "Parent with children"
245
- },
246
- {
247
- "tag": "ul",
248
- "class": "ui-list",
249
- "children": [
250
- {
251
- "tag": "li",
252
- "text": "Nested child"
253
- },
254
- {
255
- "tag": "li",
256
- "text": "Another nested child"
257
- }
258
- ]
259
- }
260
- ]
261
- },
262
- {
263
- "tag": "li",
264
- "text": "Back to top level"
265
- }
266
- ]
267
- }
268
- ],
269
- "code": "<ul class=\"ui-list\">\n <li>Top-level item</li>\n <li>\n Parent with children\n <ul class=\"ui-list\">\n <li>Nested child</li>\n </ul>\n </li>\n</ul>"
270
- }
271
- ]
272
- }
273
- ],
274
- "customization": [
275
- {
276
- "token": "--ui-list-spacing",
277
- "default": "var(--ui-unit)",
278
- "description": "Gap between items"
279
- },
280
- {
281
- "token": "--ui-list-marker-color",
282
- "default": "var(--ui-color-text-muted)",
283
- "description": "Bullet or number color"
284
- },
285
- {
286
- "token": "--ui-list-indent",
287
- "default": "var(--ui-space-3)",
288
- "description": "Inline-start padding for markers"
289
- },
290
- {
291
- "token": "--ui-list-line-height",
292
- "default": "var(--ui-leading-md)",
293
- "description": "Item line height"
294
- }
295
- ]
296
- }
@@ -1,60 +0,0 @@
1
- {
2
- "id": "mark",
3
- "type": "component",
4
- "title": "Mark",
5
- "description": "Highlighted text for search results, emphasis, or annotations.",
6
- "api": "./mark.api.json",
7
- "sections": [
8
- {
9
- "title": "Default",
10
- "examples": [
11
- {
12
- "items": [
13
- {
14
- "tag": "p",
15
- "children": [
16
- { "tag": "span", "text": "The " },
17
- { "tag": "mark", "class": "ui-mark", "text": "highlighted" },
18
- { "tag": "span", "text": " text stands out from surrounding content." }
19
- ]
20
- }
21
- ]
22
- }
23
- ]
24
- },
25
- {
26
- "title": "Search results",
27
- "examples": [
28
- {
29
- "items": [
30
- {
31
- "tag": "p",
32
- "children": [
33
- { "tag": "span", "text": "Results for " },
34
- { "tag": "mark", "class": "ui-mark", "text": "design tokens" },
35
- { "tag": "span", "text": ": CSS custom properties that store " },
36
- { "tag": "mark", "class": "ui-mark", "text": "design" },
37
- { "tag": "span", "text": " decisions as reusable " },
38
- { "tag": "mark", "class": "ui-mark", "text": "tokens" },
39
- { "tag": "span", "text": "." }
40
- ]
41
- }
42
- ]
43
- }
44
- ]
45
- }
46
- ],
47
- "customization": [
48
- {
49
- "token": "--ui-mark-bg",
50
- "default": "var(--ui-color-warning)",
51
- "description": "Highlight color"
52
- },
53
- { "token": "--ui-mark-color", "default": "var(--ui-color-text)", "description": "Text color" },
54
- {
55
- "token": "--ui-mark-radius",
56
- "default": "var(--ui-radius-sm)",
57
- "description": "Border radius"
58
- }
59
- ]
60
- }
@@ -1,126 +0,0 @@
1
- {
2
- "id": "accessibility",
3
- "type": "guide",
4
- "title": "Accessibility",
5
- "description": "Built-in accessibility features: reduced motion, system theme detection, high contrast, and keyboard focus indicators",
6
- "weight": 3,
7
- "skipValidation": true,
8
- "sections": [
9
- {
10
- "title": "Reduced Motion",
11
- "description": "All animations and transitions respect prefers-reduced-motion. Duration tokens are set to 0ms, and component animations are disabled with animation: none.",
12
- "examples": [
13
- {
14
- "title": "Duration tokens",
15
- "code": "// Motion tokens (config/tokens/motion)\n:root {\n --ui-duration-fast: 100ms;\n --ui-duration-base: 150ms;\n --ui-duration-slow: 250ms;\n}\n\n@media (prefers-reduced-motion: reduce) {\n :root {\n --ui-duration-fast: 0ms;\n --ui-duration-base: 0ms;\n --ui-duration-slow: 0ms;\n }\n}"
16
- },
17
- {
18
- "title": "Component animations",
19
- "description": "Components with keyframe animations add explicit animation: none. Affected: spinner, skeleton, progress, progress-circle, toast, drawer, disclosure, button (loading), icon (spin), status (pulse).",
20
- "code": "// Example: spinner\n@media (prefers-reduced-motion: reduce) {\n .spinner {\n animation: none;\n }\n}"
21
- }
22
- ]
23
- },
24
- {
25
- "title": "System Theme Detection",
26
- "description": "Dark mode activates automatically when the OS is set to dark and no explicit data-theme attribute is present. Set data-theme to override.",
27
- "examples": [
28
- {
29
- "title": "Automatic (default)",
30
- "items": [
31
- {
32
- "tag": "div",
33
- "class": "ui-card",
34
- "children": [
35
- { "tag": "p", "text": "Follows system preference when no data-theme is set" }
36
- ]
37
- }
38
- ],
39
- "code": "<!-- Auto-detects system preference -->\n<html>\n ...\n</html>"
40
- },
41
- {
42
- "title": "Explicit override",
43
- "items": [
44
- {
45
- "tag": "div",
46
- "class": "ui-card",
47
- "attrs": { "data-theme": "dark" },
48
- "children": [{ "tag": "p", "text": "Forced dark regardless of system preference" }]
49
- }
50
- ],
51
- "code": "<!-- Always dark, ignores system preference -->\n<html data-theme=\"dark\">\n ...\n</html>"
52
- },
53
- {
54
- "title": "How it works",
55
- "code": "// Explicit toggle (highest priority)\n[data-theme=\"dark\"] {\n --ui-color-bg: var(--ui-color-neutral-900);\n ...\n}\n\n// Auto-detect (only when no data-theme is set)\n@media (prefers-color-scheme: dark) {\n :root:not([data-theme]) {\n --ui-color-bg: var(--ui-color-neutral-900);\n ...\n }\n}"
56
- }
57
- ]
58
- },
59
- {
60
- "title": "Focus Indicators",
61
- "description": "All interactive elements use :focus-visible for keyboard-only focus rings. Mouse clicks do not show focus outlines.",
62
- "examples": [
63
- {
64
- "title": "Keyboard focus",
65
- "items": [
66
- {
67
- "tag": "div",
68
- "class": "ui-row ui-row--sm",
69
- "children": [
70
- { "tag": "button", "class": "ui-button ui-button--focus", "text": "Button" },
71
- {
72
- "tag": "input",
73
- "class": "ui-input ui-input--focus",
74
- "attrs": { "placeholder": "Input" }
75
- },
76
- {
77
- "tag": "select",
78
- "class": "ui-select ui-select--focus",
79
- "children": [{ "tag": "option", "text": "Select" }]
80
- }
81
- ]
82
- }
83
- ],
84
- "code": "// :focus-visible only triggers on keyboard navigation\n.input:focus-visible {\n border-color: var(--_border-color-focus);\n box-shadow: 0 0 0 var(--ui-border-width-md)\n var(--ui-color-focus);\n}"
85
- }
86
- ]
87
- },
88
- {
89
- "title": "Contrast Preference",
90
- "description": "Adapts border visibility, muted text, and subtle backgrounds when users request more or less contrast via OS settings.",
91
- "examples": [
92
- {
93
- "title": "High contrast",
94
- "description": "When prefers-contrast: more is active, borders become stronger, muted text becomes more readable, and subtle backgrounds become more distinct.",
95
- "code": "@media (prefers-contrast: more) {\n :root {\n --ui-color-border: var(--ui-color-neutral-400);\n --ui-color-border-strong: var(--ui-color-neutral-600);\n --ui-color-text-muted: var(--ui-color-neutral-600);\n --ui-color-bg-subtle: var(--ui-color-neutral-200);\n }\n}"
96
- },
97
- {
98
- "title": "Low contrast",
99
- "description": "When prefers-contrast: less is active, borders become softer.",
100
- "code": "@media (prefers-contrast: less) {\n :root {\n --ui-color-border: var(--ui-color-neutral-150);\n --ui-color-border-strong: var(--ui-color-neutral-200);\n }\n}"
101
- },
102
- {
103
- "title": "Affected tokens",
104
- "description": "Overrides apply to semantic color tokens. All components using these tokens automatically adapt: cards, inputs, buttons, dividers, and any element with borders or muted text.",
105
- "code": "// Tokens affected by prefers-contrast:\n// --ui-color-border (default: neutral-200 -> more: neutral-400)\n// --ui-color-border-strong (default: neutral-300 -> more: neutral-600)\n// --ui-color-text-muted (default: neutral-500 -> more: neutral-600)\n// --ui-color-bg-subtle (default: neutral-100 -> more: neutral-200)"
106
- }
107
- ]
108
- },
109
- {
110
- "title": "Forced Colors (High Contrast)",
111
- "description": "Windows High Contrast Mode support. Focus rings use transparent outlines that become visible in forced-colors mode, and the focus color maps to the system Highlight color.",
112
- "examples": [
113
- {
114
- "title": "Focus ring technique",
115
- "description": "Components use box-shadow for focus rings in normal mode. A transparent outline provides the visible focus indicator in forced-colors mode (where box-shadow is removed by the browser).",
116
- "code": "// Normal mode: box-shadow visible, outline transparent\n.input:focus-visible {\n outline: var(--ui-border-width-md) solid transparent;\n outline-offset: var(--ui-border-width-sm);\n box-shadow: 0 0 0 var(--ui-border-width-md)\n var(--ui-color-focus);\n}\n\n// Forced colors: browser removes box-shadow,\n// transparent outline becomes system-colored\n@media (forced-colors: active) {\n :root {\n --ui-color-focus: Highlight;\n }\n}"
117
- },
118
- {
119
- "title": "Affected components",
120
- "description": "All form controls (input, select, checkbox, radio, slider) and interactive components (button, link, tabs) use this pattern.",
121
- "code": "// Components with forced-colors support:\n// Forms: input, select, checkbox, radio, slider\n// Actions: button, close-button\n// Navigation: tabs, breadcrumb, pagination\n// Overlays: modal, drawer, dialog"
122
- }
123
- ]
124
- }
125
- ]
126
- }
@@ -1,106 +0,0 @@
1
- {
2
- "id": "getting-started",
3
- "type": "guide",
4
- "title": "Getting Started",
5
- "description": "Install, import, and start using the CSS library in your project",
6
- "weight": 1,
7
- "skipValidation": true,
8
- "sections": [
9
- {
10
- "title": "Installation",
11
- "description": "Install the package from npm.",
12
- "examples": [
13
- {
14
- "title": "npm / pnpm / yarn",
15
- "code": "npm install @teseor/css\n# or\npnpm add @teseor/css\n# or\nyarn add @teseor/css"
16
- }
17
- ]
18
- },
19
- {
20
- "title": "Import",
21
- "description": "Import the compiled CSS in your app entry point.",
22
- "examples": [
23
- {
24
- "title": "JS / TS entry",
25
- "code": "import '@teseor/css';\n// or\nimport '@teseor/css/dist/index.css';"
26
- },
27
- {
28
- "title": "HTML link",
29
- "code": "<link rel=\"stylesheet\" href=\"node_modules/@teseor/css/dist/index.css\">"
30
- }
31
- ]
32
- },
33
- {
34
- "title": "Root Class",
35
- "description": "Add the .ui-root class to set baseline typography and colors.",
36
- "examples": [
37
- {
38
- "items": [
39
- {
40
- "tag": "div",
41
- "class": "ui-root",
42
- "children": [{ "tag": "p", "text": "Text inherits font, size, color from .ui-root" }]
43
- }
44
- ],
45
- "code": "<html class=\"ui-root\">\n <body>\n <!-- All children inherit base styles -->\n </body>\n</html>"
46
- }
47
- ]
48
- },
49
- {
50
- "title": "First Component",
51
- "description": "Use any component by adding its class. No JS required.",
52
- "examples": [
53
- {
54
- "title": "Button",
55
- "items": [
56
- {
57
- "tag": "div",
58
- "class": "ui-row ui-row--sm",
59
- "children": [
60
- { "tag": "button", "class": "ui-button", "text": "Primary" },
61
- { "tag": "button", "class": "ui-button ui-button--secondary", "text": "Secondary" },
62
- { "tag": "button", "class": "ui-button ui-button--danger", "text": "Danger" }
63
- ]
64
- }
65
- ],
66
- "code": "<button class=\"ui-button\">Primary</button>\n<button class=\"ui-button ui-button--secondary\">Secondary</button>\n<button class=\"ui-button ui-button--danger\">Danger</button>"
67
- },
68
- {
69
- "title": "Card",
70
- "items": [
71
- {
72
- "tag": "div",
73
- "class": "ui-card",
74
- "children": [
75
- { "tag": "h3", "class": "ui-heading ui-heading--4", "text": "Card Title" },
76
- {
77
- "tag": "p",
78
- "text": "Cards use semantic tokens for padding, border, and background."
79
- }
80
- ]
81
- }
82
- ],
83
- "code": "<div class=\"ui-card\">\n <h3 class=\"ui-heading ui-heading--4\">Card Title</h3>\n <p>Content goes here.</p>\n</div>"
84
- }
85
- ]
86
- },
87
- {
88
- "title": "Customize",
89
- "description": "Override design tokens with CSS custom properties. No build step required.",
90
- "examples": [
91
- {
92
- "title": "Change brand color",
93
- "items": [
94
- {
95
- "tag": "div",
96
- "class": "theme-demo",
97
- "style": { "--ui-hue-primary": "270" },
98
- "children": [{ "tag": "button", "class": "ui-button", "text": "Purple brand" }]
99
- }
100
- ],
101
- "code": ":root {\n --ui-hue-primary: 270; /* purple */\n}"
102
- }
103
- ]
104
- }
105
- ]
106
- }