@teseor/css 1.0.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 (298) hide show
  1. package/README.md +102 -0
  2. package/dist/compiled.css +4463 -0
  3. package/dist/index.css +4445 -0
  4. package/fonts/.gitkeep +9 -0
  5. package/package.json +38 -0
  6. package/src/00-config/layers/layers.scss +1 -0
  7. package/src/00-config/mixins/_border.scss +13 -0
  8. package/src/00-config/mixins/index.scss +1 -0
  9. package/src/00-config/tokens/_variables.scss +120 -0
  10. package/src/00-config/tokens/borders/index.scss +6 -0
  11. package/src/00-config/tokens/colors/colors.docs.json +168 -0
  12. package/src/00-config/tokens/colors/index.scss +25 -0
  13. package/src/00-config/tokens/grid/grid.docs.json +54 -0
  14. package/src/00-config/tokens/grid/index.scss +11 -0
  15. package/src/00-config/tokens/index.scss +15 -0
  16. package/src/00-config/tokens/input.scss +14 -0
  17. package/src/00-config/tokens/motion/index.scss +25 -0
  18. package/src/00-config/tokens/radius/index.scss +7 -0
  19. package/src/00-config/tokens/semantic/colors/index.scss +30 -0
  20. package/src/00-config/tokens/semantic/spacing/index.scss +10 -0
  21. package/src/00-config/tokens/shadows/index.scss +5 -0
  22. package/src/00-config/tokens/spacing/index.scss +15 -0
  23. package/src/00-config/tokens/spacing/spacing.docs.json +114 -0
  24. package/src/00-config/tokens/theming.docs.json +77 -0
  25. package/src/00-config/tokens/typography/index.scss +119 -0
  26. package/src/00-config/tokens/zindex/index.scss +14 -0
  27. package/src/01-reset/index.scss +1 -0
  28. package/src/01-reset/reset.scss +8 -0
  29. package/src/02-base/index.scss +2 -0
  30. package/src/02-base/root/root.scss +12 -0
  31. package/src/02-base/typography/typography.docs.json +94 -0
  32. package/src/02-base/typography/typography.scss +145 -0
  33. package/src/03-layout/app-shell/app-shell.api.json +26 -0
  34. package/src/03-layout/app-shell/app-shell.docs.json +119 -0
  35. package/src/03-layout/app-shell/index.scss +5 -0
  36. package/src/03-layout/box/box.api.json +15 -0
  37. package/src/03-layout/box/box.docs.json +57 -0
  38. package/src/03-layout/box/index.scss +34 -0
  39. package/src/03-layout/center/center.api.json +6 -0
  40. package/src/03-layout/center/center.docs.json +24 -0
  41. package/src/03-layout/center/index.scss +11 -0
  42. package/src/03-layout/cluster/cluster.api.json +10 -0
  43. package/src/03-layout/cluster/cluster.docs.json +129 -0
  44. package/src/03-layout/cluster/index.scss +18 -0
  45. package/src/03-layout/container/container.api.json +13 -0
  46. package/src/03-layout/container/index.scss +17 -0
  47. package/src/03-layout/flex/flex.api.json +15 -0
  48. package/src/03-layout/flex/flex.docs.json +56 -0
  49. package/src/03-layout/flex/index.scss +51 -0
  50. package/src/03-layout/grid/grid.api.json +10 -0
  51. package/src/03-layout/grid/grid.docs.json +116 -0
  52. package/src/03-layout/grid/index.scss +15 -0
  53. package/src/03-layout/index.scss +11 -0
  54. package/src/03-layout/main/index.scss +17 -0
  55. package/src/03-layout/main/main.api.json +13 -0
  56. package/src/03-layout/sidebar/index.scss +30 -0
  57. package/src/03-layout/sidebar/sidebar.api.json +13 -0
  58. package/src/03-layout/sidebar-nav/index.scss +209 -0
  59. package/src/03-layout/sidebar-nav/sidebar-nav-all.png +0 -0
  60. package/src/03-layout/sidebar-nav/sidebar-nav.api.json +115 -0
  61. package/src/03-layout/sidebar-nav/sidebar-nav.docs.json +100 -0
  62. package/src/03-layout/sidebar-nav/sidebar-nav.visual.spec.ts +14 -0
  63. package/src/03-layout/stack/index.scss +13 -0
  64. package/src/03-layout/stack/stack.api.json +10 -0
  65. package/src/03-layout/stack/stack.docs.json +131 -0
  66. package/src/04-components/accordion/accordion-visual.png +0 -0
  67. package/src/04-components/accordion/accordion.api.json +19 -0
  68. package/src/04-components/accordion/accordion.docs.json +51 -0
  69. package/src/04-components/accordion/accordion.visual.spec.ts +14 -0
  70. package/src/04-components/accordion/index.scss +78 -0
  71. package/src/04-components/alert/alert-visual.png +0 -0
  72. package/src/04-components/alert/alert.api.json +91 -0
  73. package/src/04-components/alert/alert.docs.json +79 -0
  74. package/src/04-components/alert/alert.visual.spec.ts +14 -0
  75. package/src/04-components/alert/index.scss +108 -0
  76. package/src/04-components/avatar/avatar-visual.png +0 -0
  77. package/src/04-components/avatar/avatar.api.json +70 -0
  78. package/src/04-components/avatar/avatar.docs.json +200 -0
  79. package/src/04-components/avatar/avatar.visual.spec.ts +14 -0
  80. package/src/04-components/avatar/index.scss +104 -0
  81. package/src/04-components/badge/badge-visual.png +0 -0
  82. package/src/04-components/badge/badge.api.json +86 -0
  83. package/src/04-components/badge/badge.docs.json +89 -0
  84. package/src/04-components/badge/badge.visual.spec.ts +14 -0
  85. package/src/04-components/badge/index.scss +64 -0
  86. package/src/04-components/breadcrumb/breadcrumb-visual.png +0 -0
  87. package/src/04-components/breadcrumb/breadcrumb.api.json +31 -0
  88. package/src/04-components/breadcrumb/breadcrumb.docs.json +59 -0
  89. package/src/04-components/breadcrumb/breadcrumb.visual.spec.ts +14 -0
  90. package/src/04-components/breadcrumb/index.scss +77 -0
  91. package/src/04-components/button/button-visual.png +0 -0
  92. package/src/04-components/button/button.api.json +138 -0
  93. package/src/04-components/button/button.docs.json +75 -0
  94. package/src/04-components/button/button.visual.spec.ts +14 -0
  95. package/src/04-components/button/index.scss +222 -0
  96. package/src/04-components/button-group/button-group-visual.png +0 -0
  97. package/src/04-components/button-group/button-group.api.json +11 -0
  98. package/src/04-components/button-group/button-group.docs.json +52 -0
  99. package/src/04-components/button-group/button-group.visual.spec.ts +14 -0
  100. package/src/04-components/button-group/index.scss +78 -0
  101. package/src/04-components/card/card-visual.png +0 -0
  102. package/src/04-components/card/card.api.json +53 -0
  103. package/src/04-components/card/card.docs.json +103 -0
  104. package/src/04-components/card/card.visual.spec.ts +14 -0
  105. package/src/04-components/card/index.scss +41 -0
  106. package/src/04-components/checkbox/checkbox-visual.png +0 -0
  107. package/src/04-components/checkbox/checkbox.api.json +50 -0
  108. package/src/04-components/checkbox/checkbox.docs.json +151 -0
  109. package/src/04-components/checkbox/checkbox.visual.spec.ts +14 -0
  110. package/src/04-components/checkbox/index.scss +104 -0
  111. package/src/04-components/code/code-visual.png +0 -0
  112. package/src/04-components/code/code.api.json +47 -0
  113. package/src/04-components/code/code.docs.json +84 -0
  114. package/src/04-components/code/code.visual.spec.ts +14 -0
  115. package/src/04-components/code/index.scss +64 -0
  116. package/src/04-components/data-list/data-list-visual.png +0 -0
  117. package/src/04-components/data-list/data-list.api.json +23 -0
  118. package/src/04-components/data-list/data-list.docs.json +79 -0
  119. package/src/04-components/data-list/data-list.visual.spec.ts +14 -0
  120. package/src/04-components/data-list/index.scss +98 -0
  121. package/src/04-components/dialog/dialog-visual.png +0 -0
  122. package/src/04-components/dialog/dialog.api.json +23 -0
  123. package/src/04-components/dialog/dialog.docs.json +58 -0
  124. package/src/04-components/dialog/dialog.visual.spec.ts +14 -0
  125. package/src/04-components/dialog/index.scss +74 -0
  126. package/src/04-components/disclosure/disclosure-visual.png +0 -0
  127. package/src/04-components/disclosure/disclosure.api.json +31 -0
  128. package/src/04-components/disclosure/disclosure.docs.json +73 -0
  129. package/src/04-components/disclosure/disclosure.visual.spec.ts +14 -0
  130. package/src/04-components/disclosure/index.scss +111 -0
  131. package/src/04-components/divider/divider-visual.png +0 -0
  132. package/src/04-components/divider/divider.api.json +30 -0
  133. package/src/04-components/divider/divider.docs.json +68 -0
  134. package/src/04-components/divider/divider.visual.spec.ts +14 -0
  135. package/src/04-components/divider/index.scss +115 -0
  136. package/src/04-components/drawer/drawer-visual.png +0 -0
  137. package/src/04-components/drawer/drawer.api.json +39 -0
  138. package/src/04-components/drawer/drawer.docs.json +78 -0
  139. package/src/04-components/drawer/drawer.visual.spec.ts +14 -0
  140. package/src/04-components/drawer/index.scss +251 -0
  141. package/src/04-components/field/field-visual.png +0 -0
  142. package/src/04-components/field/field.api.json +11 -0
  143. package/src/04-components/field/field.docs.json +59 -0
  144. package/src/04-components/field/field.visual.spec.ts +14 -0
  145. package/src/04-components/field/index.scss +44 -0
  146. package/src/04-components/form-error/form-error-visual.png +0 -0
  147. package/src/04-components/form-error/form-error.api.json +19 -0
  148. package/src/04-components/form-error/form-error.docs.json +40 -0
  149. package/src/04-components/form-error/form-error.visual.spec.ts +14 -0
  150. package/src/04-components/form-error/index.scss +31 -0
  151. package/src/04-components/form-helper/form-helper-visual.png +0 -0
  152. package/src/04-components/form-helper/form-helper.api.json +19 -0
  153. package/src/04-components/form-helper/form-helper.docs.json +31 -0
  154. package/src/04-components/form-helper/form-helper.visual.spec.ts +14 -0
  155. package/src/04-components/form-helper/index.scss +24 -0
  156. package/src/04-components/heading/heading-visual.png +0 -0
  157. package/src/04-components/heading/heading.api.json +83 -0
  158. package/src/04-components/heading/heading.docs.json +98 -0
  159. package/src/04-components/heading/heading.visual.spec.ts +14 -0
  160. package/src/04-components/heading/index.scss +61 -0
  161. package/src/04-components/icon/icon-visual.png +0 -0
  162. package/src/04-components/icon/icon.api.json +56 -0
  163. package/src/04-components/icon/icon.docs.json +155 -0
  164. package/src/04-components/icon/icon.visual.spec.ts +14 -0
  165. package/src/04-components/icon/index.scss +79 -0
  166. package/src/04-components/index.scss +41 -0
  167. package/src/04-components/input/index.scss +154 -0
  168. package/src/04-components/input/input-visual.png +0 -0
  169. package/src/04-components/input/input.api.json +85 -0
  170. package/src/04-components/input/input.docs.json +189 -0
  171. package/src/04-components/input/input.visual.spec.ts +14 -0
  172. package/src/04-components/label/index.scss +46 -0
  173. package/src/04-components/label/label-visual.png +0 -0
  174. package/src/04-components/label/label.api.json +27 -0
  175. package/src/04-components/label/label.docs.json +73 -0
  176. package/src/04-components/label/label.visual.spec.ts +14 -0
  177. package/src/04-components/link/index.scss +73 -0
  178. package/src/04-components/link/link-visual.png +0 -0
  179. package/src/04-components/link/link.api.json +39 -0
  180. package/src/04-components/link/link.docs.json +104 -0
  181. package/src/04-components/link/link.visual.spec.ts +14 -0
  182. package/src/04-components/menu/index.scss +145 -0
  183. package/src/04-components/menu/menu-visual.png +0 -0
  184. package/src/04-components/menu/menu.api.json +47 -0
  185. package/src/04-components/menu/menu.docs.json +81 -0
  186. package/src/04-components/menu/menu.visual.spec.ts +14 -0
  187. package/src/04-components/modal/index.scss +93 -0
  188. package/src/04-components/modal/modal-visual.png +0 -0
  189. package/src/04-components/modal/modal.api.json +43 -0
  190. package/src/04-components/modal/modal.docs.json +86 -0
  191. package/src/04-components/modal/modal.visual.spec.ts +14 -0
  192. package/src/04-components/overlay/index.scss +49 -0
  193. package/src/04-components/overlay/overlay-visual.png +0 -0
  194. package/src/04-components/overlay/overlay.api.json +23 -0
  195. package/src/04-components/overlay/overlay.docs.json +63 -0
  196. package/src/04-components/overlay/overlay.visual.spec.ts +14 -0
  197. package/src/04-components/pagination/index.scss +114 -0
  198. package/src/04-components/pagination/pagination-visual.png +0 -0
  199. package/src/04-components/pagination/pagination.api.json +39 -0
  200. package/src/04-components/pagination/pagination.docs.json +88 -0
  201. package/src/04-components/pagination/pagination.visual.spec.ts +14 -0
  202. package/src/04-components/popover/index.scss +114 -0
  203. package/src/04-components/popover/popover-visual.png +0 -0
  204. package/src/04-components/popover/popover.api.json +39 -0
  205. package/src/04-components/popover/popover.docs.json +70 -0
  206. package/src/04-components/popover/popover.visual.spec.ts +14 -0
  207. package/src/04-components/progress/index.scss +102 -0
  208. package/src/04-components/progress/progress-visual.png +0 -0
  209. package/src/04-components/progress/progress.api.json +23 -0
  210. package/src/04-components/progress/progress.docs.json +87 -0
  211. package/src/04-components/progress/progress.visual.spec.ts +14 -0
  212. package/src/04-components/radio/index.scss +96 -0
  213. package/src/04-components/radio/radio-visual.png +0 -0
  214. package/src/04-components/radio/radio.api.json +46 -0
  215. package/src/04-components/radio/radio.docs.json +159 -0
  216. package/src/04-components/radio/radio.visual.spec.ts +14 -0
  217. package/src/04-components/select/index.scss +113 -0
  218. package/src/04-components/select/select-visual.png +0 -0
  219. package/src/04-components/select/select.api.json +85 -0
  220. package/src/04-components/select/select.docs.json +162 -0
  221. package/src/04-components/select/select.visual.spec.ts +14 -0
  222. package/src/04-components/skeleton/index.scss +99 -0
  223. package/src/04-components/skeleton/skeleton-visual.png +0 -0
  224. package/src/04-components/skeleton/skeleton.api.json +19 -0
  225. package/src/04-components/skeleton/skeleton.docs.json +62 -0
  226. package/src/04-components/skeleton/skeleton.visual.spec.ts +14 -0
  227. package/src/04-components/spinner/index.scss +60 -0
  228. package/src/04-components/spinner/spinner-visual.png +0 -0
  229. package/src/04-components/spinner/spinner.api.json +63 -0
  230. package/src/04-components/spinner/spinner.docs.json +88 -0
  231. package/src/04-components/spinner/spinner.visual.spec.ts +15 -0
  232. package/src/04-components/status/index.scss +85 -0
  233. package/src/04-components/status/status-visual.png +0 -0
  234. package/src/04-components/status/status.api.json +19 -0
  235. package/src/04-components/status/status.docs.json +60 -0
  236. package/src/04-components/status/status.visual.spec.ts +14 -0
  237. package/src/04-components/table/index.scss +60 -0
  238. package/src/04-components/table/table-visual.png +0 -0
  239. package/src/04-components/table/table.api.json +27 -0
  240. package/src/04-components/table/table.docs.json +59 -0
  241. package/src/04-components/table/table.visual.spec.ts +14 -0
  242. package/src/04-components/tabs/index.scss +77 -0
  243. package/src/04-components/tabs/tabs-visual.png +0 -0
  244. package/src/04-components/tabs/tabs.api.json +31 -0
  245. package/src/04-components/tabs/tabs.docs.json +61 -0
  246. package/src/04-components/tabs/tabs.visual.spec.ts +14 -0
  247. package/src/04-components/tag/index.scss +98 -0
  248. package/src/04-components/tag/tag-visual.png +0 -0
  249. package/src/04-components/tag/tag.api.json +86 -0
  250. package/src/04-components/tag/tag.docs.json +108 -0
  251. package/src/04-components/tag/tag.visual.spec.ts +14 -0
  252. package/src/04-components/textarea/index.scss +124 -0
  253. package/src/04-components/textarea/textarea-visual.png +0 -0
  254. package/src/04-components/textarea/textarea.api.json +93 -0
  255. package/src/04-components/textarea/textarea.docs.json +191 -0
  256. package/src/04-components/textarea/textarea.visual.spec.ts +14 -0
  257. package/src/04-components/toast/index.scss +180 -0
  258. package/src/04-components/toast/toast-visual.png +0 -0
  259. package/src/04-components/toast/toast.api.json +43 -0
  260. package/src/04-components/toast/toast.docs.json +99 -0
  261. package/src/04-components/toast/toast.visual.spec.ts +14 -0
  262. package/src/04-components/toggle/index.scss +117 -0
  263. package/src/04-components/toggle/toggle-visual.png +0 -0
  264. package/src/04-components/toggle/toggle.api.json +43 -0
  265. package/src/04-components/toggle/toggle.docs.json +92 -0
  266. package/src/04-components/toggle/toggle.visual.spec.ts +14 -0
  267. package/src/04-components/tooltip/index.scss +102 -0
  268. package/src/04-components/tooltip/tooltip-visual.png +0 -0
  269. package/src/04-components/tooltip/tooltip.api.json +39 -0
  270. package/src/04-components/tooltip/tooltip.docs.json +63 -0
  271. package/src/04-components/tooltip/tooltip.visual.spec.ts +14 -0
  272. package/src/05-utilities/border/index.scss +21 -0
  273. package/src/05-utilities/display/display.api.json +6 -0
  274. package/src/05-utilities/display/display.docs.json +28 -0
  275. package/src/05-utilities/display/display.scss +195 -0
  276. package/src/05-utilities/index.scss +6 -0
  277. package/src/05-utilities/spacing/spacing.api.json +6 -0
  278. package/src/05-utilities/spacing/spacing.docs.json +43 -0
  279. package/src/05-utilities/spacing/spacing.scss +399 -0
  280. package/src/05-utilities/text/text.api.json +38 -0
  281. package/src/05-utilities/text/text.docs.json +132 -0
  282. package/src/05-utilities/text/text.scss +246 -0
  283. package/src/05-utilities/view-transition/index.scss +198 -0
  284. package/src/05-utilities/view-transition/view-transition.api.json +21 -0
  285. package/src/05-utilities/view-transition/view-transition.docs.json +63 -0
  286. package/src/05-utilities/visually-hidden/index.scss +38 -0
  287. package/src/05-utilities/visually-hidden/visually-hidden.api.json +8 -0
  288. package/src/05-utilities/visually-hidden/visually-hidden.docs.json +29 -0
  289. package/src/99-debug/grid-overlay.scss +79 -0
  290. package/src/99-debug/index.scss +1 -0
  291. package/src/index.scss +30 -0
  292. package/src/testing/api-types.ts +20 -0
  293. package/src/testing/grid-alignment.spec.ts +92 -0
  294. package/src/testing/html-generator.ts +151 -0
  295. package/src/testing/index.ts +15 -0
  296. package/src/testing/page-setup.ts +131 -0
  297. package/src/testing/rhythm.ts +146 -0
  298. package/src/testing/scaffold.ts +50 -0
@@ -0,0 +1,399 @@
1
+ /* Spacing utilities - all values align to 8px grid */
2
+
3
+ /* Uses logical properties for international/RTL support */
4
+ @layer utilities {
5
+ /* Margin utilities */
6
+ .m-0 {
7
+ margin: 0;
8
+ }
9
+
10
+ .m-1 {
11
+ margin: var(--ui-space-1);
12
+ }
13
+
14
+ .m-2 {
15
+ margin: var(--ui-space-2);
16
+ }
17
+
18
+ .m-3 {
19
+ margin: var(--ui-space-3);
20
+ }
21
+
22
+ .m-4 {
23
+ margin: var(--ui-space-4);
24
+ }
25
+
26
+ .m-6 {
27
+ margin: var(--ui-space-6);
28
+ }
29
+
30
+ .m-8 {
31
+ margin: var(--ui-space-8);
32
+ }
33
+
34
+ .mt-0 {
35
+ margin-block-start: 0;
36
+ }
37
+
38
+ .mt-1 {
39
+ margin-block-start: var(--ui-space-1);
40
+ }
41
+
42
+ .mt-2 {
43
+ margin-block-start: var(--ui-space-2);
44
+ }
45
+
46
+ .mt-3 {
47
+ margin-block-start: var(--ui-space-3);
48
+ }
49
+
50
+ .mt-4 {
51
+ margin-block-start: var(--ui-space-4);
52
+ }
53
+
54
+ .mt-6 {
55
+ margin-block-start: var(--ui-space-6);
56
+ }
57
+
58
+ .mt-8 {
59
+ margin-block-start: var(--ui-space-8);
60
+ }
61
+
62
+ .me-0 {
63
+ margin-inline-end: 0;
64
+ }
65
+
66
+ .me-1 {
67
+ margin-inline-end: var(--ui-space-1);
68
+ }
69
+
70
+ .me-2 {
71
+ margin-inline-end: var(--ui-space-2);
72
+ }
73
+
74
+ .me-3 {
75
+ margin-inline-end: var(--ui-space-3);
76
+ }
77
+
78
+ .me-4 {
79
+ margin-inline-end: var(--ui-space-4);
80
+ }
81
+
82
+ .me-6 {
83
+ margin-inline-end: var(--ui-space-6);
84
+ }
85
+
86
+ .me-8 {
87
+ margin-inline-end: var(--ui-space-8);
88
+ }
89
+
90
+ .mb-0 {
91
+ margin-block-end: 0;
92
+ }
93
+
94
+ .mb-1 {
95
+ margin-block-end: var(--ui-space-1);
96
+ }
97
+
98
+ .mb-2 {
99
+ margin-block-end: var(--ui-space-2);
100
+ }
101
+
102
+ .mb-3 {
103
+ margin-block-end: var(--ui-space-3);
104
+ }
105
+
106
+ .mb-4 {
107
+ margin-block-end: var(--ui-space-4);
108
+ }
109
+
110
+ .mb-6 {
111
+ margin-block-end: var(--ui-space-6);
112
+ }
113
+
114
+ .mb-8 {
115
+ margin-block-end: var(--ui-space-8);
116
+ }
117
+
118
+ .ms-0 {
119
+ margin-inline-start: 0;
120
+ }
121
+
122
+ .ms-1 {
123
+ margin-inline-start: var(--ui-space-1);
124
+ }
125
+
126
+ .ms-2 {
127
+ margin-inline-start: var(--ui-space-2);
128
+ }
129
+
130
+ .ms-3 {
131
+ margin-inline-start: var(--ui-space-3);
132
+ }
133
+
134
+ .ms-4 {
135
+ margin-inline-start: var(--ui-space-4);
136
+ }
137
+
138
+ .ms-6 {
139
+ margin-inline-start: var(--ui-space-6);
140
+ }
141
+
142
+ .ms-8 {
143
+ margin-inline-start: var(--ui-space-8);
144
+ }
145
+
146
+ .mx-0 {
147
+ margin-inline: 0;
148
+ }
149
+
150
+ .mx-1 {
151
+ margin-inline: var(--ui-space-1);
152
+ }
153
+
154
+ .mx-2 {
155
+ margin-inline: var(--ui-space-2);
156
+ }
157
+
158
+ .mx-3 {
159
+ margin-inline: var(--ui-space-3);
160
+ }
161
+
162
+ .mx-4 {
163
+ margin-inline: var(--ui-space-4);
164
+ }
165
+
166
+ .mx-auto {
167
+ margin-inline: auto;
168
+ }
169
+
170
+ .my-0 {
171
+ margin-block: 0;
172
+ }
173
+
174
+ .my-1 {
175
+ margin-block: var(--ui-space-1);
176
+ }
177
+
178
+ .my-2 {
179
+ margin-block: var(--ui-space-2);
180
+ }
181
+
182
+ .my-3 {
183
+ margin-block: var(--ui-space-3);
184
+ }
185
+
186
+ .my-4 {
187
+ margin-block: var(--ui-space-4);
188
+ }
189
+
190
+ /* Padding utilities */
191
+ .p-0 {
192
+ padding: 0;
193
+ }
194
+
195
+ .p-1 {
196
+ padding: var(--ui-space-1);
197
+ }
198
+
199
+ .p-2 {
200
+ padding: var(--ui-space-2);
201
+ }
202
+
203
+ .p-3 {
204
+ padding: var(--ui-space-3);
205
+ }
206
+
207
+ .p-4 {
208
+ padding: var(--ui-space-4);
209
+ }
210
+
211
+ .p-6 {
212
+ padding: var(--ui-space-6);
213
+ }
214
+
215
+ .p-8 {
216
+ padding: var(--ui-space-8);
217
+ }
218
+
219
+ .pt-0 {
220
+ padding-block-start: 0;
221
+ }
222
+
223
+ .pt-1 {
224
+ padding-block-start: var(--ui-space-1);
225
+ }
226
+
227
+ .pt-2 {
228
+ padding-block-start: var(--ui-space-2);
229
+ }
230
+
231
+ .pt-3 {
232
+ padding-block-start: var(--ui-space-3);
233
+ }
234
+
235
+ .pt-4 {
236
+ padding-block-start: var(--ui-space-4);
237
+ }
238
+
239
+ .pt-6 {
240
+ padding-block-start: var(--ui-space-6);
241
+ }
242
+
243
+ .pt-8 {
244
+ padding-block-start: var(--ui-space-8);
245
+ }
246
+
247
+ .pe-0 {
248
+ padding-inline-end: 0;
249
+ }
250
+
251
+ .pe-1 {
252
+ padding-inline-end: var(--ui-space-1);
253
+ }
254
+
255
+ .pe-2 {
256
+ padding-inline-end: var(--ui-space-2);
257
+ }
258
+
259
+ .pe-3 {
260
+ padding-inline-end: var(--ui-space-3);
261
+ }
262
+
263
+ .pe-4 {
264
+ padding-inline-end: var(--ui-space-4);
265
+ }
266
+
267
+ .pe-6 {
268
+ padding-inline-end: var(--ui-space-6);
269
+ }
270
+
271
+ .pe-8 {
272
+ padding-inline-end: var(--ui-space-8);
273
+ }
274
+
275
+ .pb-0 {
276
+ padding-block-end: 0;
277
+ }
278
+
279
+ .pb-1 {
280
+ padding-block-end: var(--ui-space-1);
281
+ }
282
+
283
+ .pb-2 {
284
+ padding-block-end: var(--ui-space-2);
285
+ }
286
+
287
+ .pb-3 {
288
+ padding-block-end: var(--ui-space-3);
289
+ }
290
+
291
+ .pb-4 {
292
+ padding-block-end: var(--ui-space-4);
293
+ }
294
+
295
+ .pb-6 {
296
+ padding-block-end: var(--ui-space-6);
297
+ }
298
+
299
+ .pb-8 {
300
+ padding-block-end: var(--ui-space-8);
301
+ }
302
+
303
+ .ps-0 {
304
+ padding-inline-start: 0;
305
+ }
306
+
307
+ .ps-1 {
308
+ padding-inline-start: var(--ui-space-1);
309
+ }
310
+
311
+ .ps-2 {
312
+ padding-inline-start: var(--ui-space-2);
313
+ }
314
+
315
+ .ps-3 {
316
+ padding-inline-start: var(--ui-space-3);
317
+ }
318
+
319
+ .ps-4 {
320
+ padding-inline-start: var(--ui-space-4);
321
+ }
322
+
323
+ .ps-6 {
324
+ padding-inline-start: var(--ui-space-6);
325
+ }
326
+
327
+ .ps-8 {
328
+ padding-inline-start: var(--ui-space-8);
329
+ }
330
+
331
+ .px-0 {
332
+ padding-inline: 0;
333
+ }
334
+
335
+ .px-1 {
336
+ padding-inline: var(--ui-space-1);
337
+ }
338
+
339
+ .px-2 {
340
+ padding-inline: var(--ui-space-2);
341
+ }
342
+
343
+ .px-3 {
344
+ padding-inline: var(--ui-space-3);
345
+ }
346
+
347
+ .px-4 {
348
+ padding-inline: var(--ui-space-4);
349
+ }
350
+
351
+ .py-0 {
352
+ padding-block: 0;
353
+ }
354
+
355
+ .py-1 {
356
+ padding-block: var(--ui-space-1);
357
+ }
358
+
359
+ .py-2 {
360
+ padding-block: var(--ui-space-2);
361
+ }
362
+
363
+ .py-3 {
364
+ padding-block: var(--ui-space-3);
365
+ }
366
+
367
+ .py-4 {
368
+ padding-block: var(--ui-space-4);
369
+ }
370
+
371
+ /* Gap utilities (for flex/grid) */
372
+ .gap-0 {
373
+ gap: 0;
374
+ }
375
+
376
+ .gap-1 {
377
+ gap: var(--ui-space-1);
378
+ }
379
+
380
+ .gap-2 {
381
+ gap: var(--ui-space-2);
382
+ }
383
+
384
+ .gap-3 {
385
+ gap: var(--ui-space-3);
386
+ }
387
+
388
+ .gap-4 {
389
+ gap: var(--ui-space-4);
390
+ }
391
+
392
+ .gap-6 {
393
+ gap: var(--ui-space-6);
394
+ }
395
+
396
+ .gap-8 {
397
+ gap: var(--ui-space-8);
398
+ }
399
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "text",
3
+ "type": "utility",
4
+ "utilities": [
5
+ "text-xs",
6
+ "text-sm",
7
+ "text-md",
8
+ "text-lg",
9
+ "text-xl",
10
+ "text-2xl",
11
+ "text-3xl",
12
+ "text-4xl",
13
+ "text-lead",
14
+ "text-eyebrow",
15
+ "text-caption",
16
+ "text-body-sm",
17
+ "font-normal",
18
+ "font-medium",
19
+ "font-semibold",
20
+ "font-bold",
21
+ "tracking-display",
22
+ "tracking-body",
23
+ "tracking-caps",
24
+ "uppercase",
25
+ "prose-sm",
26
+ "prose",
27
+ "prose-lg",
28
+ "text-primary",
29
+ "text-muted",
30
+ "text-success",
31
+ "text-warning",
32
+ "text-danger",
33
+ "text-start",
34
+ "text-center",
35
+ "text-end"
36
+ ],
37
+ "cssVars": []
38
+ }
@@ -0,0 +1,132 @@
1
+ {
2
+ "id": "text-utils",
3
+ "type": "utility",
4
+ "title": "Text",
5
+ "description": "Typography and text utilities. Font sizes follow a 1.2 modular scale.",
6
+ "api": "text.api.json",
7
+ "sections": [
8
+ {
9
+ "title": "Sizes",
10
+ "description": "Font size utilities with 8px grid-snapped line-heights.",
11
+ "examples": [
12
+ {
13
+ "layout": "stack",
14
+ "items": [
15
+ { "tag": "p", "class": "ui-text-xs", "text": "text-xs: 12px / 16px line-height" },
16
+ { "tag": "p", "class": "ui-text-sm", "text": "text-sm: 14px / 24px line-height" },
17
+ { "tag": "p", "class": "ui-text-md", "text": "text-md: 16px / 24px line-height" },
18
+ { "tag": "p", "class": "ui-text-lg", "text": "text-lg: 20px / 32px line-height" },
19
+ { "tag": "p", "class": "ui-text-xl", "text": "text-xl: 24px / 32px line-height" },
20
+ { "tag": "p", "class": "ui-text-2xl", "text": "text-2xl: 28px / 32px line-height" },
21
+ { "tag": "p", "class": "ui-text-3xl", "text": "text-3xl: 32px / 40px line-height" },
22
+ { "tag": "p", "class": "ui-text-4xl", "text": "text-4xl: 40px / 48px line-height" }
23
+ ]
24
+ }
25
+ ]
26
+ },
27
+ {
28
+ "title": "Text Roles",
29
+ "description": "Semantic text styles for specific use cases.",
30
+ "examples": [
31
+ {
32
+ "layout": "stack",
33
+ "items": [
34
+ {
35
+ "tag": "p",
36
+ "class": "ui-text-lead",
37
+ "text": "Lead: Opening paragraph style (20px / 32px)"
38
+ },
39
+ { "tag": "p", "class": "ui-text-eyebrow", "text": "Eyebrow: Small caps label" },
40
+ {
41
+ "tag": "p",
42
+ "class": "ui-text-caption",
43
+ "text": "Caption: Labels and hints (12px / 16px)"
44
+ },
45
+ {
46
+ "tag": "p",
47
+ "class": "ui-text-body-sm",
48
+ "text": "Body small: Secondary text (14px / 24px)"
49
+ }
50
+ ]
51
+ }
52
+ ]
53
+ },
54
+ {
55
+ "title": "Weights",
56
+ "examples": [
57
+ {
58
+ "layout": "stack",
59
+ "items": [
60
+ { "tag": "p", "class": "ui-font-normal", "text": "font-normal (400)" },
61
+ { "tag": "p", "class": "ui-font-medium", "text": "font-medium (500)" },
62
+ { "tag": "p", "class": "ui-font-semibold", "text": "font-semibold (600)" },
63
+ { "tag": "p", "class": "ui-font-bold", "text": "font-bold (700)" }
64
+ ]
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "title": "Letter Spacing",
70
+ "examples": [
71
+ {
72
+ "layout": "stack",
73
+ "items": [
74
+ {
75
+ "tag": "p",
76
+ "class": "ui-text-2xl ui-tracking-display",
77
+ "text": "tracking-display: Tight (-0.02em)"
78
+ },
79
+ { "tag": "p", "class": "ui-tracking-body", "text": "tracking-body: Default (0)" },
80
+ {
81
+ "tag": "p",
82
+ "class": "ui-tracking-caps ui-uppercase",
83
+ "text": "tracking-caps: Wide (+0.08em)"
84
+ }
85
+ ]
86
+ }
87
+ ]
88
+ },
89
+ {
90
+ "title": "Line Length",
91
+ "description": "Constrain text width for optimal readability.",
92
+ "examples": [
93
+ {
94
+ "layout": "stack",
95
+ "items": [
96
+ { "tag": "p", "class": "ui-prose-sm", "text": "prose-sm: 45ch max-width" },
97
+ { "tag": "p", "class": "ui-prose", "text": "prose: 65ch max-width (recommended)" },
98
+ { "tag": "p", "class": "ui-prose-lg", "text": "prose-lg: 75ch max-width" }
99
+ ]
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "title": "Colors",
105
+ "examples": [
106
+ {
107
+ "layout": "stack",
108
+ "items": [
109
+ { "tag": "p", "class": "ui-text-primary", "text": "text-primary" },
110
+ { "tag": "p", "class": "ui-text-muted", "text": "text-muted" },
111
+ { "tag": "p", "class": "ui-text-success", "text": "text-success" },
112
+ { "tag": "p", "class": "ui-text-warning", "text": "text-warning" },
113
+ { "tag": "p", "class": "ui-text-danger", "text": "text-danger" }
114
+ ]
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ "title": "Alignment",
120
+ "examples": [
121
+ {
122
+ "layout": "stack",
123
+ "items": [
124
+ { "tag": "p", "class": "ui-text-start", "text": "text-start (default)" },
125
+ { "tag": "p", "class": "ui-text-center", "text": "text-center" },
126
+ { "tag": "p", "class": "ui-text-end", "text": "text-end" }
127
+ ]
128
+ }
129
+ ]
130
+ }
131
+ ]
132
+ }