@swisspost/design-system-styles 9.0.0-next.2 → 9.0.0-next.21

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 (321) hide show
  1. package/_svg-icon-map.scss +85 -23
  2. package/basics.css +1 -1
  3. package/basics.scss +2 -6
  4. package/cargo-external.css +7 -0
  5. package/cargo-external.scss +10 -0
  6. package/cargo-internal.css +7 -0
  7. package/cargo-internal.scss +10 -0
  8. package/cargo-tokens-external.css +1 -0
  9. package/cargo-tokens-external.scss +8 -0
  10. package/cargo-tokens-internal.css +1 -0
  11. package/cargo-tokens-internal.scss +8 -0
  12. package/components/_form-check.scss +166 -0
  13. package/components/_index.scss +21 -13
  14. package/components/appstore-badge.css +1 -0
  15. package/components/appstore-badge.scss +18 -0
  16. package/components/avatar.css +1 -0
  17. package/components/avatar.scss +41 -0
  18. package/components/badge.css +1 -1
  19. package/components/badge.scss +8 -2
  20. package/components/banner.css +1 -0
  21. package/components/banner.scss +105 -0
  22. package/components/blockquote.css +1 -0
  23. package/components/blockquote.scss +46 -0
  24. package/components/breadcrumb.css +1 -1
  25. package/components/breadcrumb.scss +4 -24
  26. package/components/breakpoints.css +1 -0
  27. package/components/breakpoints.scss +17 -0
  28. package/components/button-group.css +1 -1
  29. package/components/button-group.scss +7 -6
  30. package/components/button.css +1 -1
  31. package/components/button.scss +41 -228
  32. package/components/card-control.css +1 -1
  33. package/components/card-control.scss +33 -24
  34. package/components/card.css +1 -1
  35. package/components/card.scss +72 -68
  36. package/components/checkbox.css +1 -0
  37. package/components/checkbox.scss +127 -0
  38. package/components/chip.css +1 -1
  39. package/components/chip.scss +9 -8
  40. package/components/close.css +1 -1
  41. package/components/close.scss +0 -2
  42. package/components/datatable.css +1 -3
  43. package/components/datatable.scss +22 -17
  44. package/components/datepicker.css +1 -1
  45. package/components/datepicker.scss +6 -22
  46. package/components/dialog.css +1 -1
  47. package/components/dialog.scss +26 -38
  48. package/components/dropdown.css +1 -1
  49. package/components/dropdown.scss +9 -6
  50. package/components/fonts.css +1 -1
  51. package/components/fonts.scss +7 -45
  52. package/components/form-footer.css +1 -0
  53. package/components/form-footer.scss +18 -0
  54. package/components/form-hint.css +1 -0
  55. package/components/form-hint.scss +15 -0
  56. package/components/form-input.css +1 -0
  57. package/components/form-input.scss +301 -0
  58. package/components/form-range.css +1 -1
  59. package/components/form-range.scss +9 -9
  60. package/components/form-search-input.css +1 -0
  61. package/components/form-search-input.scss +97 -0
  62. package/components/form-select.css +1 -1
  63. package/components/form-select.scss +266 -55
  64. package/components/form-textarea.css +1 -1
  65. package/components/form-textarea.scss +172 -9
  66. package/components/globals/_index.scss +1 -0
  67. package/components/globals/post-footer.css +1 -0
  68. package/components/globals/post-footer.scss +113 -0
  69. package/components/header/_mixins.scss +48 -0
  70. package/components/header/index.css +1 -0
  71. package/components/header/index.scss +131 -0
  72. package/components/icon-button.css +1 -0
  73. package/components/icon-button.scss +19 -0
  74. package/components/icon-close-button.css +1 -0
  75. package/components/icon-close-button.scss +29 -0
  76. package/components/intranet-header/_icon.scss +1 -1
  77. package/components/intranet-header/_index.scss +0 -2
  78. package/components/intranet-header/_language-chooser.scss +3 -2
  79. package/components/intranet-header/_nav-overflow.scss +2 -2
  80. package/components/intranet-header/_scaffolding.scss +1 -1
  81. package/components/intranet-header/_searchbox.scss +1 -1
  82. package/components/intranet-header/_sidebar.scss +11 -11
  83. package/components/intranet-header/_top-navigation.scss +1 -1
  84. package/components/list-check.css +1 -0
  85. package/components/list-check.scss +79 -0
  86. package/components/list-group.css +1 -1
  87. package/components/list-group.scss +72 -127
  88. package/components/modal.css +2 -2
  89. package/components/modal.scss +2 -4
  90. package/components/offcanvas.css +1 -1
  91. package/components/offcanvas.scss +0 -2
  92. package/components/pagination.css +1 -1
  93. package/components/pagination.scss +10 -9
  94. package/components/popover.css +1 -1
  95. package/components/popover.scss +0 -2
  96. package/components/product-card.css +1 -1
  97. package/components/product-card.scss +11 -5
  98. package/components/progress.scss +0 -2
  99. package/components/radio-button.css +1 -0
  100. package/components/radio-button.scss +125 -0
  101. package/components/segmented-button.css +3 -0
  102. package/components/segmented-button.scss +207 -0
  103. package/components/skiplinks.css +1 -0
  104. package/components/skiplinks.scss +20 -0
  105. package/components/spinner.scss +0 -1
  106. package/components/stepper.css +1 -1
  107. package/components/stepper.scss +40 -33
  108. package/components/subnavigation.css +1 -1
  109. package/components/subnavigation.scss +17 -14
  110. package/components/switch.css +1 -0
  111. package/components/switch.scss +212 -0
  112. package/components/tables.css +1 -1
  113. package/components/tables.scss +0 -1
  114. package/components/tabs/_tab-title.scss +16 -55
  115. package/components/tabs/_tabs-wrapper.scss +3 -13
  116. package/components/tabs/index.css +1 -1
  117. package/components/tabs/index.scss +0 -2
  118. package/components/tag.css +1 -1
  119. package/components/tag.scss +1 -2
  120. package/components/teaser.css +1 -0
  121. package/components/teaser.scss +83 -0
  122. package/components/text-highlight.css +1 -1
  123. package/components/timepicker.css +1 -1
  124. package/components/timepicker.scss +13 -16
  125. package/components/toast.css +1 -1
  126. package/components/toast.scss +19 -16
  127. package/components/tooltip.css +1 -1
  128. package/components/tooltip.scss +0 -2
  129. package/components/transitions.scss +0 -2
  130. package/components/validation.css +1 -0
  131. package/components/validation.scss +120 -0
  132. package/elements/_index.scss +7 -1
  133. package/elements/anchor.css +1 -0
  134. package/elements/anchor.scss +33 -0
  135. package/elements/body.css +1 -1
  136. package/elements/body.scss +5 -1
  137. package/elements/fieldset-legend.css +1 -1
  138. package/elements/fieldset-legend.scss +7 -3
  139. package/elements/heading.css +1 -1
  140. package/elements/heading.scss +10 -12
  141. package/elements/list-bullet.css +1 -0
  142. package/elements/list-bullet.scss +43 -0
  143. package/elements/list-description.css +1 -0
  144. package/elements/list-description.scss +5 -0
  145. package/elements/list-number.css +1 -0
  146. package/elements/list-number.scss +33 -0
  147. package/elements/paragraph.css +1 -0
  148. package/elements/paragraph.scss +17 -0
  149. package/elements/reset.css +1 -1
  150. package/elements/reset.scss +16 -7
  151. package/elements.css +1 -0
  152. package/elements.scss +1 -0
  153. package/fonts.css +1 -1
  154. package/functions/_breakpoint.scss +26 -0
  155. package/functions/_forms.scss +46 -3
  156. package/functions/_icons.scss +2 -14
  157. package/helpers/_index.scss +4 -0
  158. package/helpers/clearfix.css +1 -0
  159. package/helpers/clearfix.scss +5 -0
  160. package/helpers/focus-ring.css +1 -0
  161. package/helpers/focus-ring.scss +5 -0
  162. package/helpers/text-truncation.css +1 -0
  163. package/helpers/text-truncation.scss +5 -0
  164. package/helpers/visually-hidden.css +1 -0
  165. package/helpers/visually-hidden.scss +5 -0
  166. package/index.css +3 -3
  167. package/index.scss +2 -5
  168. package/intranet.css +3 -3
  169. package/intranet.scss +2 -2
  170. package/layout/_containers.scss +32 -0
  171. package/layout/_section.scss +133 -0
  172. package/layout/grid/_index.scss +11 -0
  173. package/layout/grid/_mixins.scss +104 -0
  174. package/layout/grid/_variables.scss +2 -0
  175. package/layout/index.css +1 -0
  176. package/layout/index.scss +3 -0
  177. package/mixins/_button.scss +19 -15
  178. package/mixins/_form-checks.scss +1 -1
  179. package/mixins/_forms.scss +42 -33
  180. package/mixins/_icon-button.scss +27 -0
  181. package/mixins/_icons.scss +22 -32
  182. package/mixins/_index.scss +3 -2
  183. package/mixins/_layout.scss +26 -0
  184. package/mixins/_list.scss +112 -0
  185. package/mixins/_media.scss +58 -2
  186. package/mixins/_notification.scss +59 -53
  187. package/mixins/_utilities.scss +46 -25
  188. package/package.json +16 -16
  189. package/palettes/_mixins.scss +74 -0
  190. package/palettes/_utilities.scss +3 -0
  191. package/palettes/_variables.scss +2 -0
  192. package/palettes/cargo-palettes.css +1 -0
  193. package/palettes/cargo-palettes.scss +3 -0
  194. package/palettes/post-palettes.css +1 -0
  195. package/palettes/post-palettes.scss +3 -0
  196. package/placeholders/_button.scss +3 -6
  197. package/placeholders/_close.scss +2 -5
  198. package/placeholders/_schemes.scss +10 -0
  199. package/post-external.css +3 -3
  200. package/post-external.scss +7 -1
  201. package/post-internal.css +3 -3
  202. package/post-internal.scss +7 -1
  203. package/post-tokens-external.css +1 -1
  204. package/post-tokens-external.scss +1 -1
  205. package/post-tokens-internal.css +1 -1
  206. package/post-tokens-internal.scss +1 -1
  207. package/themes/bootstrap/_core.scss +0 -2
  208. package/themes/bootstrap/_forms.scss +0 -4
  209. package/themes/bootstrap/_overrides-variables.scss +0 -6
  210. package/themes/bootstrap/_utilities.scss +45 -1
  211. package/tokens/_cargo-theme.scss +8 -0
  212. package/tokens/_helpers.scss +1 -0
  213. package/tokens/_palettes.scss +9 -0
  214. package/tokens/_schemes.scss +11 -0
  215. package/tokens/_utilities_formatted.scss +1 -0
  216. package/tokens/temp/_channel.scss +4 -3
  217. package/tokens/temp/_components.scss +594 -503
  218. package/tokens/temp/_core.scss +49 -37
  219. package/tokens/temp/_device.scss +210 -239
  220. package/tokens/temp/_elements.scss +11 -11
  221. package/tokens/temp/_helpers.scss +13 -0
  222. package/tokens/temp/_index.scss +6 -4
  223. package/tokens/temp/_palettes.scss +19 -0
  224. package/tokens/temp/_scheme.scss +334 -0
  225. package/tokens/temp/_theme.scss +28 -9
  226. package/tokens/temp/_utilities-formatted.scss +128 -0
  227. package/tokens/temp/_utilities.scss +34 -58
  228. package/tokens/temp/palettes/_cargo-dark.scss +19 -0
  229. package/tokens/temp/palettes/_cargo-light.scss +19 -0
  230. package/tokens/temp/palettes/_post-dark.scss +19 -0
  231. package/tokens/temp/palettes/_post-light.scss +19 -0
  232. package/utilities/_not-defined.scss +44 -0
  233. package/utilities/_variables.scss +304 -22
  234. package/utilities/index.css +1 -0
  235. package/utilities/{_index.scss → index.scss} +1 -2
  236. package/variables/_animation.scss +10 -6
  237. package/variables/_breakpoints.scss +9 -5
  238. package/variables/_color.scss +0 -61
  239. package/variables/_commons.scss +1 -0
  240. package/variables/_elevation.scss +16 -22
  241. package/variables/_grid.scss +2 -12
  242. package/variables/_icons.scss +19 -696
  243. package/variables/_index.scss +1 -1
  244. package/variables/_sizing.scss +17 -0
  245. package/variables/_spacing.scss +0 -152
  246. package/variables/_type.scss +17 -27
  247. package/variables/components/_accordion.scss +0 -47
  248. package/variables/components/_badge.scss +9 -5
  249. package/variables/components/_button.scss +61 -113
  250. package/variables/components/_card.scss +7 -4
  251. package/variables/components/_chip.scss +13 -7
  252. package/variables/components/_close.scss +14 -8
  253. package/variables/components/_code.scss +1 -1
  254. package/variables/components/_datatable.scss +12 -8
  255. package/variables/components/_dropdowns.scss +1 -1
  256. package/variables/components/_form-check.scss +9 -46
  257. package/variables/components/_forms.scss +8 -101
  258. package/variables/components/_index.scss +0 -5
  259. package/variables/components/_modal.scss +17 -12
  260. package/variables/components/_nav.scss +3 -3
  261. package/variables/components/_navbar.scss +7 -4
  262. package/variables/components/_notification.scss +48 -37
  263. package/variables/components/_pagination.scss +14 -6
  264. package/variables/components/_spinners.scss +7 -2
  265. package/variables/components/_stepper.scss +15 -10
  266. package/variables/components/_subnavigation.scss +11 -9
  267. package/variables/components/_tables.scss +11 -6
  268. package/variables/components/_tag.scss +10 -7
  269. package/components/accordion.css +0 -1
  270. package/components/accordion.scss +0 -100
  271. package/components/alert.css +0 -1
  272. package/components/alert.scss +0 -137
  273. package/components/carousel.css +0 -1
  274. package/components/carousel.scss +0 -178
  275. package/components/elevation.css +0 -1
  276. package/components/elevation.scss +0 -8
  277. package/components/floating-label.css +0 -1
  278. package/components/floating-label.scss +0 -353
  279. package/components/form-check.css +0 -1
  280. package/components/form-check.scss +0 -297
  281. package/components/form-validation.css +0 -1
  282. package/components/form-validation.scss +0 -148
  283. package/components/forms.css +0 -1
  284. package/components/forms.scss +0 -215
  285. package/components/grid.css +0 -1
  286. package/components/grid.scss +0 -170
  287. package/components/icons.css +0 -1
  288. package/components/icons.scss +0 -60
  289. package/components/sizing.css +0 -1
  290. package/components/sizing.scss +0 -85
  291. package/components/topic-teaser.css +0 -1
  292. package/components/topic-teaser.scss +0 -196
  293. package/layouts/portal/_grid.scss +0 -85
  294. package/layouts/portal/_index.scss +0 -2
  295. package/layouts/portal/_subnavigation.scss +0 -5
  296. package/layouts/portal/_variables.scss +0 -8
  297. package/mixins/_accordion.scss +0 -16
  298. package/mixins/_elevation.scss +0 -6
  299. package/mixins/_focus.scss +0 -9
  300. package/mixins/_form-validation.scss +0 -5
  301. package/mixins/_size.scss +0 -65
  302. package/placeholders/_modes.scss +0 -10
  303. package/themes/bootstrap/_carousel.scss +0 -2
  304. package/themes/bootstrap/_containers.scss +0 -2
  305. package/themes/bootstrap/_grid.scss +0 -2
  306. package/themes/bootstrap/_overrides-mixins.scss +0 -33
  307. package/themes/bootstrap/forms/_floating-labels.scss +0 -2
  308. package/themes/bootstrap/forms/_form-control.scss +0 -2
  309. package/themes/bootstrap/forms/_form-select.scss +0 -2
  310. package/themes/bootstrap/forms/_form-text.scss +0 -2
  311. package/tokens/_modes.scss +0 -11
  312. package/tokens/temp/_mode.scss +0 -299
  313. package/utilities/_functions.scss +0 -35
  314. package/utilities/temp/_legacy.scss +0 -95
  315. package/variables/_options.scss +0 -5
  316. package/variables/components/_carousel.scss +0 -27
  317. package/variables/components/_figures.scss +0 -6
  318. package/variables/components/_form-select.scss +0 -13
  319. package/variables/components/_form-validation.scss +0 -38
  320. package/variables/components/_list-group.scss +0 -29
  321. package/variables/components/_topic-teaser.scss +0 -32
@@ -1,111 +1,69 @@
1
- // Do not edit manually!
2
- // This file was generated on:
3
- // Mon, 14 Oct 2024 18:07:38 GMT by the @swisspost/design-system-tokens package build command
1
+
2
+ // Do not edit manually
3
+ // This file was generated by the swisspost/design-system-tokens package
4
+ // Mon, 24 Feb 2025 16:19:02 GMT
4
5
 
5
6
  $post-spacing: (
6
7
  post-utility-margin-0: var(--post-core-dimension-0),
7
8
  post-utility-margin-1: var(--post-core-dimension-1),
8
9
  post-utility-margin-2: var(--post-core-dimension-2),
9
- post-utility-margin-3: var(--post-core-dimension-3),
10
10
  post-utility-margin-4: var(--post-core-dimension-4),
11
- post-utility-margin-5: var(--post-core-dimension-5),
12
11
  post-utility-margin-6: var(--post-core-dimension-6),
13
12
  post-utility-margin-8: var(--post-core-dimension-8),
14
- post-utility-margin-10: var(--post-core-dimension-10),
15
- post-utility-margin-11: var(--post-core-dimension-11),
16
13
  post-utility-margin-12: var(--post-core-dimension-12),
17
- post-utility-margin-14: var(--post-core-dimension-14),
18
- post-utility-margin-15: var(--post-core-dimension-15),
19
14
  post-utility-margin-16: var(--post-core-dimension-16),
20
- post-utility-margin-18: var(--post-core-dimension-18),
21
- post-utility-margin-19: var(--post-core-dimension-19),
22
- post-utility-margin-20: var(--post-core-dimension-20),
23
- post-utility-margin-22: var(--post-core-dimension-22),
24
15
  post-utility-margin-24: var(--post-core-dimension-24),
25
- post-utility-margin-26: var(--post-core-dimension-26),
26
- post-utility-margin-28: var(--post-core-dimension-28),
27
- post-utility-margin-30: var(--post-core-dimension-30),
28
16
  post-utility-margin-32: var(--post-core-dimension-32),
29
- post-utility-margin-34: var(--post-core-dimension-34),
30
- post-utility-margin-36: var(--post-core-dimension-36),
31
17
  post-utility-margin-40: var(--post-core-dimension-40),
32
18
  post-utility-margin-48: var(--post-core-dimension-48),
33
19
  post-utility-margin-56: var(--post-core-dimension-56),
34
20
  post-utility-margin-64: var(--post-core-dimension-64),
35
- post-utility-margin-78: var(--post-core-dimension-78),
21
+ post-utility-margin-72: var(--post-core-dimension-72),
36
22
  post-utility-margin-80: var(--post-core-dimension-80),
23
+ post-utility-margin-88: var(--post-core-dimension-88),
37
24
  post-utility-margin-96: var(--post-core-dimension-96),
38
- post-utility-margin-100: var(--post-core-dimension-100),
39
- post-utility-margin-112: var(--post-core-dimension-112),
40
- post-utility-margin-auto: "auto",
25
+ post-utility-margin-104: var(--post-core-dimension-104),
26
+ post-utility-margin-auto: auto,
41
27
  post-utility-padding-0: var(--post-core-dimension-0),
42
28
  post-utility-padding-1: var(--post-core-dimension-1),
43
29
  post-utility-padding-2: var(--post-core-dimension-2),
44
- post-utility-padding-3: var(--post-core-dimension-3),
45
30
  post-utility-padding-4: var(--post-core-dimension-4),
46
- post-utility-padding-5: var(--post-core-dimension-5),
47
31
  post-utility-padding-6: var(--post-core-dimension-6),
48
32
  post-utility-padding-8: var(--post-core-dimension-8),
49
- post-utility-padding-10: var(--post-core-dimension-10),
50
- post-utility-padding-11: var(--post-core-dimension-11),
51
33
  post-utility-padding-12: var(--post-core-dimension-12),
52
- post-utility-padding-14: var(--post-core-dimension-14),
53
- post-utility-padding-15: var(--post-core-dimension-15),
54
34
  post-utility-padding-16: var(--post-core-dimension-16),
55
- post-utility-padding-18: var(--post-core-dimension-18),
56
- post-utility-padding-19: var(--post-core-dimension-19),
57
- post-utility-padding-20: var(--post-core-dimension-20),
58
- post-utility-padding-22: var(--post-core-dimension-22),
59
35
  post-utility-padding-24: var(--post-core-dimension-24),
60
- post-utility-padding-26: var(--post-core-dimension-26),
61
- post-utility-padding-28: var(--post-core-dimension-28),
62
- post-utility-padding-30: var(--post-core-dimension-30),
63
36
  post-utility-padding-32: var(--post-core-dimension-32),
64
- post-utility-padding-34: var(--post-core-dimension-34),
65
- post-utility-padding-36: var(--post-core-dimension-36),
66
37
  post-utility-padding-40: var(--post-core-dimension-40),
67
38
  post-utility-padding-48: var(--post-core-dimension-48),
68
39
  post-utility-padding-56: var(--post-core-dimension-56),
69
40
  post-utility-padding-64: var(--post-core-dimension-64),
70
- post-utility-padding-78: var(--post-core-dimension-78),
41
+ post-utility-padding-72: var(--post-core-dimension-72),
71
42
  post-utility-padding-80: var(--post-core-dimension-80),
43
+ post-utility-padding-88: var(--post-core-dimension-88),
72
44
  post-utility-padding-96: var(--post-core-dimension-96),
73
- post-utility-padding-100: var(--post-core-dimension-100),
74
- post-utility-padding-112: var(--post-core-dimension-112),
45
+ post-utility-padding-104: var(--post-core-dimension-104),
46
+ post-utility-padding-auto: auto,
75
47
  post-utility-gap-0: var(--post-core-dimension-0),
76
48
  post-utility-gap-1: var(--post-core-dimension-1),
77
49
  post-utility-gap-2: var(--post-core-dimension-2),
78
- post-utility-gap-3: var(--post-core-dimension-3),
79
50
  post-utility-gap-4: var(--post-core-dimension-4),
80
- post-utility-gap-5: var(--post-core-dimension-5),
81
51
  post-utility-gap-6: var(--post-core-dimension-6),
82
52
  post-utility-gap-8: var(--post-core-dimension-8),
83
- post-utility-gap-10: var(--post-core-dimension-10),
84
- post-utility-gap-11: var(--post-core-dimension-11),
85
53
  post-utility-gap-12: var(--post-core-dimension-12),
86
- post-utility-gap-14: var(--post-core-dimension-14),
87
- post-utility-gap-15: var(--post-core-dimension-15),
88
54
  post-utility-gap-16: var(--post-core-dimension-16),
89
- post-utility-gap-18: var(--post-core-dimension-18),
90
- post-utility-gap-19: var(--post-core-dimension-19),
91
- post-utility-gap-20: var(--post-core-dimension-20),
92
- post-utility-gap-22: var(--post-core-dimension-22),
93
55
  post-utility-gap-24: var(--post-core-dimension-24),
94
- post-utility-gap-26: var(--post-core-dimension-26),
95
- post-utility-gap-28: var(--post-core-dimension-28),
96
- post-utility-gap-30: var(--post-core-dimension-30),
97
56
  post-utility-gap-32: var(--post-core-dimension-32),
98
- post-utility-gap-34: var(--post-core-dimension-34),
99
- post-utility-gap-36: var(--post-core-dimension-36),
100
57
  post-utility-gap-40: var(--post-core-dimension-40),
101
58
  post-utility-gap-48: var(--post-core-dimension-48),
102
59
  post-utility-gap-56: var(--post-core-dimension-56),
103
60
  post-utility-gap-64: var(--post-core-dimension-64),
104
- post-utility-gap-78: var(--post-core-dimension-78),
61
+ post-utility-gap-72: var(--post-core-dimension-72),
105
62
  post-utility-gap-80: var(--post-core-dimension-80),
63
+ post-utility-gap-88: var(--post-core-dimension-88),
106
64
  post-utility-gap-96: var(--post-core-dimension-96),
107
- post-utility-gap-100: var(--post-core-dimension-100),
108
- post-utility-gap-112: var(--post-core-dimension-112),
65
+ post-utility-gap-104: var(--post-core-dimension-104),
66
+ post-utility-gap-auto: auto,
109
67
  );
110
68
 
111
69
  $post-color: (
@@ -116,6 +74,24 @@ $post-color: (
116
74
  post-utility-surface-accent4: var(--post-core-color-sandgrey-080),
117
75
  );
118
76
 
77
+ $post-elevation: (
78
+ post-utility-elevation-100: var(--post-device-elevation-100),
79
+ post-utility-elevation-200: var(--post-device-elevation-200),
80
+ post-utility-elevation-300: var(--post-device-elevation-300),
81
+ post-utility-elevation-400: var(--post-device-elevation-400),
82
+ post-utility-elevation-500: var(--post-device-elevation-500),
83
+ );
84
+
85
+ $post-border: (
86
+ post-utility-border-width-1: var(--post-core-dimension-1),
87
+ post-utility-border-width-2: var(--post-core-dimension-2),
88
+ post-utility-border-radius-4: var(--post-core-dimension-4),
89
+ post-utility-border-radius-8: var(--post-core-dimension-8),
90
+ post-utility-border-default-width: var(--post-core-dimension-1),
91
+ post-utility-border-default-radius: var(--post-core-dimension-4),
92
+ post-utility-border-default-color: var(--post-scheme-color-surface-default-stroke),
93
+ );
94
+
119
95
  $post-typo: (
120
96
  post-utility-font-size-sm: var(--post-device-font-size-7),
121
97
  post-utility-font-size-md: var(--post-device-font-size-6),
@@ -0,0 +1,19 @@
1
+
2
+ // Do not edit manually
3
+ // This file was generated by the swisspost/design-system-tokens package
4
+ // Mon, 24 Feb 2025 16:19:02 GMT
5
+
6
+ $post-palettes: (
7
+ post-palettes-color-default-bg: #373632,
8
+ post-palettes-color-default-fg: #ffffff,
9
+ post-palettes-color-default-bg-scheme: dark,
10
+ post-palettes-color-alternate-bg: #050400,
11
+ post-palettes-color-alternate-fg: #ffffff,
12
+ post-palettes-color-alternate-bg-scheme: dark,
13
+ post-palettes-color-brand-bg: #00411c,
14
+ post-palettes-color-brand-fg: #aadcff,
15
+ post-palettes-color-brand-bg-scheme: dark,
16
+ post-palettes-color-accent-bg: #aadcff,
17
+ post-palettes-color-accent-fg: #00411c,
18
+ post-palettes-color-accent-bg-scheme: light,
19
+ );
@@ -0,0 +1,19 @@
1
+
2
+ // Do not edit manually
3
+ // This file was generated by the swisspost/design-system-tokens package
4
+ // Mon, 24 Feb 2025 16:19:02 GMT
5
+
6
+ $post-palettes: (
7
+ post-palettes-color-default-bg: #fafafa,
8
+ post-palettes-color-default-fg: #050400,
9
+ post-palettes-color-default-bg-scheme: light,
10
+ post-palettes-color-alternate-bg: #f0efed,
11
+ post-palettes-color-alternate-fg: #050400,
12
+ post-palettes-color-alternate-bg-scheme: light,
13
+ post-palettes-color-brand-bg: #00411c,
14
+ post-palettes-color-brand-fg: #aadcff,
15
+ post-palettes-color-brand-bg-scheme: dark,
16
+ post-palettes-color-accent-bg: #aadcff,
17
+ post-palettes-color-accent-fg: #00411c,
18
+ post-palettes-color-accent-bg-scheme: light,
19
+ );
@@ -0,0 +1,19 @@
1
+
2
+ // Do not edit manually
3
+ // This file was generated by the swisspost/design-system-tokens package
4
+ // Mon, 24 Feb 2025 16:19:02 GMT
5
+
6
+ $post-palettes: (
7
+ post-palettes-color-default-bg: #373632,
8
+ post-palettes-color-default-fg: #ffffff,
9
+ post-palettes-color-default-bg-scheme: dark,
10
+ post-palettes-color-alternate-bg: #050400,
11
+ post-palettes-color-alternate-fg: #ffffff,
12
+ post-palettes-color-alternate-bg-scheme: dark,
13
+ post-palettes-color-brand-bg: #ffcc00,
14
+ post-palettes-color-brand-fg: #050400,
15
+ post-palettes-color-brand-bg-scheme: light,
16
+ post-palettes-color-accent-bg: #fafafa,
17
+ post-palettes-color-accent-fg: #050400,
18
+ post-palettes-color-accent-bg-scheme: light,
19
+ );
@@ -0,0 +1,19 @@
1
+
2
+ // Do not edit manually
3
+ // This file was generated by the swisspost/design-system-tokens package
4
+ // Mon, 24 Feb 2025 16:19:02 GMT
5
+
6
+ $post-palettes: (
7
+ post-palettes-color-default-bg: #fafafa,
8
+ post-palettes-color-default-fg: #050400,
9
+ post-palettes-color-default-bg-scheme: light,
10
+ post-palettes-color-alternate-bg: #f0efed,
11
+ post-palettes-color-alternate-fg: #050400,
12
+ post-palettes-color-alternate-bg-scheme: light,
13
+ post-palettes-color-brand-bg: #ffcc00,
14
+ post-palettes-color-brand-fg: #050400,
15
+ post-palettes-color-brand-bg-scheme: light,
16
+ post-palettes-color-accent-bg: #373632,
17
+ post-palettes-color-accent-fg: #ffffff,
18
+ post-palettes-color-accent-bg-scheme: dark,
19
+ );
@@ -0,0 +1,44 @@
1
+ /*
2
+ Initial visibility of the components is set to hidden to prevent 'flickering' effect due to stencil js/scss delay.
3
+ */
4
+
5
+ :where(
6
+ post-accordion,
7
+ post-accordion-item,
8
+ post-alert,
9
+ post-avatar,
10
+ post-back-to-top,
11
+ post-banner,
12
+ post-breadcrumb,
13
+ post-breadcrumb-item,
14
+ post-card-control,
15
+ post-closebutton,
16
+ post-collapsible,
17
+ post-collapsible-trigger,
18
+ post-footer,
19
+ post-header,
20
+ post-icon,
21
+ post-language-option,
22
+ post-language-switch,
23
+ post-linkarea,
24
+ post-list,
25
+ post-list-item,
26
+ post-logo,
27
+ post-mainnavigation,
28
+ post-megadropdown,
29
+ post-megadropdown-trigger,
30
+ post-menu,
31
+ post-menu-item,
32
+ post-menu-trigger,
33
+ post-popover,
34
+ post-popovercontainer,
35
+ post-rating,
36
+ post-tab-header,
37
+ post-tab-panel,
38
+ post-tabs,
39
+ post-tag,
40
+ post-togglebutton,
41
+ post-tooltip
42
+ ):not(:defined) {
43
+ visibility: hidden;
44
+ }
@@ -1,6 +1,8 @@
1
- @use '../tokens/utilities' as tokens;
1
+ @use 'sass:map';
2
+ @use '../tokens/utilities_formatted';
2
3
 
3
- @use './functions' as *;
4
+ @use '../variables/sizing' as *;
5
+ @use '../variables/type';
4
6
 
5
7
  /*
6
8
  Utilities are generated with our utility API using bellow $utilities map.
@@ -21,110 +23,276 @@
21
23
  Our API is based on bootstrap utility API, more information is available here: https://getbootstrap.com/docs/5.3/utilities/api/
22
24
  */
23
25
 
26
+ $position-values: (
27
+ 0: 0,
28
+ 50: 50%,
29
+ 100: 100%,
30
+ );
31
+
24
32
  $utilities: (
33
+ 'grid-gutter': (
34
+ responsive: true,
35
+ property: --post-grid-gutter-x --post-grid-gutter-y,
36
+ class: g,
37
+ values: utilities_formatted.$gap,
38
+ ),
39
+ 'grid-gutter-x': (
40
+ responsive: true,
41
+ property: --post-grid-gutter-x,
42
+ class: gx,
43
+ values: utilities_formatted.$gap,
44
+ ),
45
+ 'grid-gutter-y': (
46
+ responsive: true,
47
+ property: --post-grid-gutter-y,
48
+ class: gy,
49
+ values: utilities_formatted.$gap,
50
+ ),
51
+ 'width': (
52
+ responsive: true,
53
+ property: width,
54
+ class: w,
55
+ values: map.merge(utilities_formatted.$gap, $post-percentage-sizes),
56
+ ),
57
+ 'height': (
58
+ responsive: true,
59
+ property: height,
60
+ class: h,
61
+ values: map.merge(utilities_formatted.$gap, $post-percentage-sizes),
62
+ ),
63
+ 'max-width': (
64
+ responsive: true,
65
+ property: max-width,
66
+ class: max-w,
67
+ values: map.merge(utilities_formatted.$gap, $post-percentage-sizes),
68
+ ),
69
+ 'max-height': (
70
+ responsive: true,
71
+ property: max-height,
72
+ class: max-h,
73
+ values: map.merge(utilities_formatted.$gap, $post-percentage-sizes),
74
+ ),
75
+ 'min-width': (
76
+ responsive: true,
77
+ property: min-width,
78
+ class: min-w,
79
+ values: map.merge(utilities_formatted.$gap, $post-percentage-sizes),
80
+ ),
81
+ 'min-height': (
82
+ responsive: true,
83
+ property: min-height,
84
+ class: min-h,
85
+ values: map.merge(utilities_formatted.$gap, $post-percentage-sizes),
86
+ ),
87
+ 'viewport-width': (
88
+ responsive: true,
89
+ property: width,
90
+ class: vw,
91
+ values: (
92
+ 0: 0,
93
+ 25: 25vw,
94
+ 33: 25vw,
95
+ 50: 50vw,
96
+ 66: 66vw,
97
+ 75: 75vw,
98
+ 100: 100vw,
99
+ ),
100
+ ),
101
+ 'viewport-height': (
102
+ responsive: true,
103
+ property: height,
104
+ class: vh,
105
+ values: (
106
+ 0: 0,
107
+ 25: 25vh,
108
+ 33: 33vh,
109
+ 50: 50vh,
110
+ 66: 66vh,
111
+ 75: 75vh,
112
+ 100: 100vh,
113
+ ),
114
+ ),
115
+ 'min-viewport-width': (
116
+ responsive: true,
117
+ property: min-width,
118
+ class: min-vw,
119
+ values: (
120
+ 0: 0,
121
+ 25: 25vw,
122
+ 33: 25vw,
123
+ 50: 50vw,
124
+ 66: 66vw,
125
+ 75: 75vw,
126
+ 100: 100vw,
127
+ ),
128
+ ),
129
+ 'min-viewport-height': (
130
+ responsive: true,
131
+ property: min-height,
132
+ class: min-vh,
133
+ values: (
134
+ 0: 0,
135
+ 25: 25vh,
136
+ 33: 33vh,
137
+ 50: 50vh,
138
+ 66: 66vh,
139
+ 75: 75vh,
140
+ 100: 100vh,
141
+ ),
142
+ ),
143
+ 'max-viewport-width': (
144
+ responsive: true,
145
+ property: max-width,
146
+ class: max-vw,
147
+ values: (
148
+ 0: 0,
149
+ 25: 25vw,
150
+ 33: 25vw,
151
+ 50: 50vw,
152
+ 66: 66vw,
153
+ 75: 75vw,
154
+ 100: 100vw,
155
+ ),
156
+ ),
157
+ 'max-viewport-height': (
158
+ responsive: true,
159
+ property: max-height,
160
+ class: max-vh,
161
+ values: (
162
+ 0: 0,
163
+ 25: 25vh,
164
+ 33: 33vh,
165
+ 50: 50vh,
166
+ 66: 66vh,
167
+ 75: 75vh,
168
+ 100: 100vh,
169
+ ),
170
+ ),
171
+ 'align': (
172
+ property: vertical-align,
173
+ class: align,
174
+ values: baseline top middle bottom text-bottom text-top,
175
+ ),
176
+ 'float': (
177
+ responsive: true,
178
+ property: float,
179
+ values: (
180
+ start: inline-start,
181
+ end: inline-end,
182
+ none: none,
183
+ ),
184
+ ),
185
+ 'opacity': (
186
+ property: opacity,
187
+ values: (
188
+ 0: 0,
189
+ 25: 0.25,
190
+ 50: 0.5,
191
+ 75: 0.75,
192
+ 100: 1,
193
+ ),
194
+ ),
25
195
  'margin': (
26
196
  responsive: true,
27
197
  property: margin,
28
198
  class: m,
29
- values: from-tokens('spacing', 'margin'),
199
+ values: utilities_formatted.$margin,
30
200
  ),
31
201
  'margin-x': (
32
202
  responsive: true,
33
203
  property: margin-right margin-left,
34
204
  class: mx,
35
- values: from-tokens('spacing', 'margin'),
205
+ values: utilities_formatted.$margin,
36
206
  ),
37
207
  'margin-y': (
38
208
  responsive: true,
39
209
  property: margin-top margin-bottom,
40
210
  class: my,
41
- values: from-tokens('spacing', 'margin'),
211
+ values: utilities_formatted.$margin,
42
212
  ),
43
213
  'margin-top': (
44
214
  responsive: true,
45
215
  property: margin-top,
46
216
  class: mt,
47
- values: from-tokens('spacing', 'margin'),
217
+ values: utilities_formatted.$margin,
48
218
  ),
49
219
  'margin-end': (
50
220
  responsive: true,
51
221
  property: margin-right,
52
222
  class: me,
53
- values: from-tokens('spacing', 'margin'),
223
+ values: utilities_formatted.$margin,
54
224
  ),
55
225
  'margin-bottom': (
56
226
  responsive: true,
57
227
  property: margin-bottom,
58
228
  class: mb,
59
- values: from-tokens('spacing', 'margin'),
229
+ values: utilities_formatted.$margin,
60
230
  ),
61
231
  'margin-start': (
62
232
  responsive: true,
63
233
  property: margin-left,
64
234
  class: ms,
65
- values: from-tokens('spacing', 'margin'),
235
+ values: utilities_formatted.$margin,
66
236
  ),
67
-
68
237
  'padding': (
69
238
  responsive: true,
70
239
  property: padding,
71
240
  class: p,
72
- values: from-tokens('spacing', 'padding'),
241
+ values: utilities_formatted.$padding,
73
242
  ),
74
243
  'padding-x': (
75
244
  responsive: true,
76
245
  property: padding-right padding-left,
77
246
  class: px,
78
- values: from-tokens('spacing', 'padding'),
247
+ values: utilities_formatted.$padding,
79
248
  ),
80
249
  'padding-y': (
81
250
  responsive: true,
82
251
  property: padding-top padding-bottom,
83
252
  class: py,
84
- values: from-tokens('spacing', 'padding'),
253
+ values: utilities_formatted.$padding,
85
254
  ),
86
255
  'padding-top': (
87
256
  responsive: true,
88
257
  property: padding-top,
89
258
  class: pt,
90
- values: from-tokens('spacing', 'padding'),
259
+ values: utilities_formatted.$padding,
91
260
  ),
92
261
  'padding-end': (
93
262
  responsive: true,
94
263
  property: padding-right,
95
264
  class: pe,
96
- values: from-tokens('spacing', 'padding'),
265
+ values: utilities_formatted.$padding,
97
266
  ),
98
267
  'padding-bottom': (
99
268
  responsive: true,
100
269
  property: padding-bottom,
101
270
  class: pb,
102
- values: from-tokens('spacing', 'padding'),
271
+ values: utilities_formatted.$padding,
103
272
  ),
104
273
  'padding-start': (
105
274
  responsive: true,
106
275
  property: padding-left,
107
276
  class: ps,
108
- values: from-tokens('spacing', 'padding'),
277
+ values: utilities_formatted.$padding,
109
278
  ),
110
-
111
279
  'gap': (
112
280
  responsive: true,
113
281
  property: gap,
114
282
  class: gap,
115
- values: from-tokens('spacing', 'gap'),
283
+ values: utilities_formatted.$gap,
116
284
  ),
117
285
  'row-gap': (
118
286
  responsive: true,
119
287
  property: row-gap,
120
288
  class: row-gap,
121
- values: from-tokens('spacing', 'gap'),
289
+ values: utilities_formatted.$gap,
122
290
  ),
123
291
  'column-gap': (
124
292
  responsive: true,
125
293
  property: column-gap,
126
294
  class: column-gap,
127
- values: from-tokens('spacing', 'gap'),
295
+ values: utilities_formatted.$gap,
128
296
  ),
129
297
  'flex': (
130
298
  responsive: true,
@@ -232,5 +400,119 @@ $utilities: (
232
400
  values: inline inline-block block grid inline-grid table table-row table-cell flex inline-flex
233
401
  none,
234
402
  ),
235
- // IMPORTANT: When adding new utilities here, please ensure to remove the corresponding bootstrap utilities in `src/themes/bootstrap/_utilities.scss`.
403
+ 'position': (
404
+ property: position,
405
+ values: static relative absolute fixed sticky,
406
+ ),
407
+ 'top': (
408
+ property: top,
409
+ values: $position-values,
410
+ ),
411
+ 'bottom': (
412
+ property: bottom,
413
+ values: $position-values,
414
+ ),
415
+ 'start': (
416
+ property: left,
417
+ class: start,
418
+ values: $position-values,
419
+ ),
420
+ 'end': (
421
+ property: right,
422
+ class: end,
423
+ values: $position-values,
424
+ ),
425
+ 'translate-middle': (
426
+ property: transform,
427
+ class: translate-middle,
428
+ values: (
429
+ null: translate(-50%, -50%),
430
+ x: translateX(-50%),
431
+ y: translateY(-50%),
432
+ ),
433
+ ),
434
+ 'overflow': (
435
+ property: overflow,
436
+ values: auto hidden visible scroll,
437
+ ),
438
+ 'overflow-x': (
439
+ property: overflow-x,
440
+ values: auto hidden visible scroll,
441
+ ),
442
+ 'overflow-y': (
443
+ property: overflow-y,
444
+ values: auto hidden visible scroll,
445
+ ),
446
+ 'font-family': (
447
+ property: font-family,
448
+ class: font,
449
+ values: (
450
+ 'sans-serif': type.$font-family-sans-serif,
451
+ ),
452
+ ),
453
+ 'font-style': (
454
+ property: font-style,
455
+ class: fst,
456
+ values: italic normal,
457
+ ),
458
+ 'font-weight': (
459
+ property: font-weight,
460
+ class: fw,
461
+ values: (
462
+ black: type.$font-weight-black,
463
+ bold: type.$font-weight-bold,
464
+ normal: type.$font-weight-normal,
465
+ ),
466
+ ),
467
+ 'line-height': (
468
+ property: line-height,
469
+ class: lh,
470
+ values: (
471
+ 1: type.$line-height-1,
472
+ sm: type.$line-height-sm,
473
+ lg: type.$line-height-lg,
474
+ ),
475
+ ),
476
+ 'text-align': (
477
+ responsive: true,
478
+ property: text-align,
479
+ class: text,
480
+ values: (
481
+ start: left,
482
+ end: right,
483
+ center: center,
484
+ ),
485
+ ),
486
+ 'text-decoration': (
487
+ property: text-decoration,
488
+ values: none underline line-through,
489
+ ),
490
+ 'text-transform': (
491
+ property: text-transform,
492
+ class: text,
493
+ values: lowercase uppercase capitalize,
494
+ ),
495
+ 'white-space': (
496
+ property: white-space,
497
+ class: text,
498
+ values: (
499
+ wrap: normal,
500
+ nowrap: nowrap,
501
+ ),
502
+ ),
503
+ 'word-wrap': (
504
+ property: word-wrap word-break,
505
+ class: text,
506
+ values: (
507
+ break: break-word,
508
+ ),
509
+ rtl: false,
510
+ ),
511
+ 'elevation': (
512
+ property: box-shadow,
513
+ values: utilities_formatted.$elevation,
514
+ class: elevation,
515
+ ),
236
516
  );
517
+
518
+ /* IMPORTANT: When adding new utilities here, please ensure to remove the corresponding bootstrap utilities in `src/themes/bootstrap/_utilities.scss`. */