@bookklik/senangstart-css 0.1.4 → 0.1.7

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 (524) hide show
  1. package/.github/workflows/deploy-docs.yml +7 -1
  2. package/dist/senangstart-css.js +1436 -14
  3. package/dist/senangstart-css.min.js +1159 -10
  4. package/docs/.vitepress/config.js +621 -15
  5. package/docs/SYNTAX-REFERENCE.md +1555 -0
  6. package/docs/guide/preflight.md +139 -0
  7. package/docs/ms/guide/preflight.md +139 -0
  8. package/docs/ms/reference/colors.md +45 -45
  9. package/docs/ms/reference/layout/align-content.md +35 -0
  10. package/docs/ms/reference/layout/align-items.md +33 -0
  11. package/docs/ms/reference/layout/align-self.md +34 -0
  12. package/docs/ms/reference/layout/aspect-ratio.md +40 -0
  13. package/docs/ms/reference/layout/border-collapse.md +30 -0
  14. package/docs/ms/reference/layout/border-spacing.md +39 -0
  15. package/docs/ms/reference/layout/box-sizing.md +30 -0
  16. package/docs/ms/reference/layout/caption-side.md +30 -0
  17. package/docs/ms/reference/layout/columns.md +30 -0
  18. package/docs/ms/reference/layout/container.md +29 -0
  19. package/docs/ms/reference/layout/display.md +60 -0
  20. package/docs/ms/reference/layout/flex-basis.md +38 -0
  21. package/docs/ms/reference/layout/flex-direction.md +33 -0
  22. package/docs/ms/reference/layout/flex-items.md +32 -0
  23. package/docs/ms/reference/layout/flex-wrap.md +31 -0
  24. package/docs/ms/reference/layout/flex.md +40 -0
  25. package/docs/ms/reference/layout/float-clear.md +32 -0
  26. package/docs/ms/reference/layout/grid-auto-flow.md +33 -0
  27. package/docs/ms/reference/layout/grid-auto-sizing.md +32 -0
  28. package/docs/ms/reference/layout/grid-column-span.md +31 -0
  29. package/docs/ms/reference/layout/grid-columns.md +32 -0
  30. package/docs/ms/reference/layout/grid-row-span.md +30 -0
  31. package/docs/ms/reference/layout/grid-rows.md +31 -0
  32. package/docs/ms/reference/layout/inset.md +44 -0
  33. package/docs/ms/reference/layout/isolation.md +30 -0
  34. package/docs/ms/reference/layout/justify-content.md +36 -0
  35. package/docs/ms/reference/layout/justify-items.md +32 -0
  36. package/docs/ms/reference/layout/justify-self.md +33 -0
  37. package/docs/ms/reference/layout/object-fit.md +33 -0
  38. package/docs/ms/reference/layout/object-position.md +45 -0
  39. package/docs/ms/reference/layout/order.md +32 -0
  40. package/docs/ms/reference/layout/overflow.md +34 -0
  41. package/docs/ms/reference/layout/overscroll.md +31 -0
  42. package/docs/ms/reference/layout/place-content.md +35 -0
  43. package/docs/ms/reference/layout/place-items.md +32 -0
  44. package/docs/ms/reference/layout/place-self.md +33 -0
  45. package/docs/ms/reference/layout/position.md +34 -0
  46. package/docs/ms/reference/layout/shorthand-alignment.md +34 -0
  47. package/docs/ms/reference/layout/table-layout.md +30 -0
  48. package/docs/ms/reference/layout/visibility.md +30 -0
  49. package/docs/ms/reference/layout/z-index.md +33 -0
  50. package/docs/ms/reference/layout.md +53 -95
  51. package/docs/ms/reference/space/arbitrary-values.md +32 -0
  52. package/docs/ms/reference/space/gap.md +44 -0
  53. package/docs/ms/reference/space/height.md +44 -0
  54. package/docs/ms/reference/space/margin.md +49 -0
  55. package/docs/ms/reference/space/padding.md +49 -0
  56. package/docs/ms/reference/space/scale-reference.md +43 -0
  57. package/docs/ms/reference/space/sizing.md +27 -0
  58. package/docs/ms/reference/space/width.md +45 -0
  59. package/docs/ms/reference/space.md +15 -99
  60. package/docs/ms/reference/spacing.md +22 -8
  61. package/docs/ms/reference/visual/accent-color.md +31 -0
  62. package/docs/ms/reference/visual/animation-builtin.md +41 -0
  63. package/docs/ms/reference/visual/animation-delay.md +41 -0
  64. package/docs/ms/reference/visual/animation-direction.md +32 -0
  65. package/docs/ms/reference/visual/animation-duration.md +43 -0
  66. package/docs/ms/reference/visual/animation-fill.md +32 -0
  67. package/docs/ms/reference/visual/animation-iteration.md +30 -0
  68. package/docs/ms/reference/visual/animation-play.md +30 -0
  69. package/docs/ms/reference/visual/appearance.md +30 -0
  70. package/docs/ms/reference/visual/backdrop-blur.md +43 -0
  71. package/docs/ms/reference/visual/backdrop-brightness.md +41 -0
  72. package/docs/ms/reference/visual/backdrop-contrast.md +41 -0
  73. package/docs/ms/reference/visual/backdrop-grayscale.md +39 -0
  74. package/docs/ms/reference/visual/backdrop-hue-rotate.md +39 -0
  75. package/docs/ms/reference/visual/backdrop-invert.md +39 -0
  76. package/docs/ms/reference/visual/backdrop-opacity.md +39 -0
  77. package/docs/ms/reference/visual/backdrop-saturate.md +41 -0
  78. package/docs/ms/reference/visual/backdrop-sepia.md +39 -0
  79. package/docs/ms/reference/visual/background-attachment.md +31 -0
  80. package/docs/ms/reference/visual/background-blend-mode.md +34 -0
  81. package/docs/ms/reference/visual/background-clip.md +32 -0
  82. package/docs/ms/reference/visual/background-color.md +33 -0
  83. package/docs/ms/reference/visual/background-image.md +41 -0
  84. package/docs/ms/reference/visual/background-origin.md +31 -0
  85. package/docs/ms/reference/visual/background-position.md +45 -0
  86. package/docs/ms/reference/visual/background-repeat.md +34 -0
  87. package/docs/ms/reference/visual/background-size.md +39 -0
  88. package/docs/ms/reference/visual/background.md +13 -0
  89. package/docs/ms/reference/visual/blend-modes.md +34 -0
  90. package/docs/ms/reference/visual/border-radius.md +34 -0
  91. package/docs/ms/reference/visual/border-style.md +33 -0
  92. package/docs/ms/reference/visual/border-width.md +44 -0
  93. package/docs/ms/reference/visual/border.md +43 -0
  94. package/docs/ms/reference/visual/box-shadow.md +33 -0
  95. package/docs/ms/reference/visual/caret-color.md +31 -0
  96. package/docs/ms/reference/visual/color-scheme.md +31 -0
  97. package/docs/ms/reference/visual/cursor.md +37 -0
  98. package/docs/ms/reference/visual/field-sizing.md +30 -0
  99. package/docs/ms/reference/visual/fill.md +38 -0
  100. package/docs/ms/reference/visual/filter-blur.md +43 -0
  101. package/docs/ms/reference/visual/filter-brightness.md +41 -0
  102. package/docs/ms/reference/visual/filter-contrast.md +41 -0
  103. package/docs/ms/reference/visual/filter-drop-shadow.md +42 -0
  104. package/docs/ms/reference/visual/filter-grayscale.md +39 -0
  105. package/docs/ms/reference/visual/filter-hue-rotate.md +39 -0
  106. package/docs/ms/reference/visual/filter-invert.md +39 -0
  107. package/docs/ms/reference/visual/filter-saturate.md +41 -0
  108. package/docs/ms/reference/visual/filter-sepia.md +39 -0
  109. package/docs/ms/reference/visual/font-family.md +31 -0
  110. package/docs/ms/reference/visual/font-smoothing.md +30 -0
  111. package/docs/ms/reference/visual/font-style.md +30 -0
  112. package/docs/ms/reference/visual/font-variant-numeric.md +35 -0
  113. package/docs/ms/reference/visual/font-weight.md +31 -0
  114. package/docs/ms/reference/visual/forced-color-adjust.md +30 -0
  115. package/docs/ms/reference/visual/hyphens.md +31 -0
  116. package/docs/ms/reference/visual/letter-spacing.md +42 -0
  117. package/docs/ms/reference/visual/line-clamp.md +40 -0
  118. package/docs/ms/reference/visual/line-height.md +42 -0
  119. package/docs/ms/reference/visual/list-style.md +34 -0
  120. package/docs/ms/reference/visual/mask.md +39 -0
  121. package/docs/ms/reference/visual/opacity.md +33 -0
  122. package/docs/ms/reference/visual/outline.md +31 -0
  123. package/docs/ms/reference/visual/pointer-events.md +30 -0
  124. package/docs/ms/reference/visual/resize.md +32 -0
  125. package/docs/ms/reference/visual/scroll-behavior.md +30 -0
  126. package/docs/ms/reference/visual/scroll-margin.md +41 -0
  127. package/docs/ms/reference/visual/scroll-padding.md +41 -0
  128. package/docs/ms/reference/visual/scroll-snap-align.md +32 -0
  129. package/docs/ms/reference/visual/scroll-snap-stop.md +30 -0
  130. package/docs/ms/reference/visual/scroll-snap-type.md +34 -0
  131. package/docs/ms/reference/visual/state-prefixes.md +37 -0
  132. package/docs/ms/reference/visual/stroke-width.md +39 -0
  133. package/docs/ms/reference/visual/stroke.md +38 -0
  134. package/docs/ms/reference/visual/text-alignment.md +32 -0
  135. package/docs/ms/reference/visual/text-color.md +41 -0
  136. package/docs/ms/reference/visual/text-decoration.md +32 -0
  137. package/docs/ms/reference/visual/text-indent.md +37 -0
  138. package/docs/ms/reference/visual/text-overflow.md +31 -0
  139. package/docs/ms/reference/visual/text-shadow.md +40 -0
  140. package/docs/ms/reference/visual/text-size.md +32 -0
  141. package/docs/ms/reference/visual/text-transform.md +32 -0
  142. package/docs/ms/reference/visual/text-wrap.md +32 -0
  143. package/docs/ms/reference/visual/touch-action.md +36 -0
  144. package/docs/ms/reference/visual/transform-backface.md +30 -0
  145. package/docs/ms/reference/visual/transform-origin.md +45 -0
  146. package/docs/ms/reference/visual/transform-perspective-origin.md +45 -0
  147. package/docs/ms/reference/visual/transform-perspective.md +43 -0
  148. package/docs/ms/reference/visual/transform-rotate.md +40 -0
  149. package/docs/ms/reference/visual/transform-scale.md +43 -0
  150. package/docs/ms/reference/visual/transform-skew.md +40 -0
  151. package/docs/ms/reference/visual/transform-style.md +30 -0
  152. package/docs/ms/reference/visual/transform-translate.md +39 -0
  153. package/docs/ms/reference/visual/transition-delay.md +41 -0
  154. package/docs/ms/reference/visual/transition-duration.md +43 -0
  155. package/docs/ms/reference/visual/transition-property.md +34 -0
  156. package/docs/ms/reference/visual/transition-timing.md +40 -0
  157. package/docs/ms/reference/visual/typography-keywords.md +81 -0
  158. package/docs/ms/reference/visual/user-select.md +32 -0
  159. package/docs/ms/reference/visual/vertical-align.md +36 -0
  160. package/docs/ms/reference/visual/whitespace.md +34 -0
  161. package/docs/ms/reference/visual/will-change.md +33 -0
  162. package/docs/ms/reference/visual/word-break.md +32 -0
  163. package/docs/ms/reference/visual.md +145 -148
  164. package/docs/public/assets/senangstart-css.min.js +1545 -0
  165. package/docs/reference/layout/align-content.md +35 -0
  166. package/docs/reference/layout/align-items.md +33 -0
  167. package/docs/reference/layout/align-self.md +34 -0
  168. package/docs/reference/layout/aspect-ratio.md +40 -0
  169. package/docs/reference/layout/border-collapse.md +30 -0
  170. package/docs/reference/layout/border-spacing.md +39 -0
  171. package/docs/reference/layout/box-sizing.md +30 -0
  172. package/docs/reference/layout/caption-side.md +30 -0
  173. package/docs/reference/layout/columns.md +30 -0
  174. package/docs/reference/layout/container.md +29 -0
  175. package/docs/reference/layout/display.md +60 -0
  176. package/docs/reference/layout/flex-basis.md +38 -0
  177. package/docs/reference/layout/flex-direction.md +33 -0
  178. package/docs/reference/layout/flex-items.md +32 -0
  179. package/docs/reference/layout/flex-wrap.md +31 -0
  180. package/docs/reference/layout/flex.md +40 -0
  181. package/docs/reference/layout/float-clear.md +32 -0
  182. package/docs/reference/layout/grid-auto-flow.md +33 -0
  183. package/docs/reference/layout/grid-auto-sizing.md +32 -0
  184. package/docs/reference/layout/grid-column-span.md +31 -0
  185. package/docs/reference/layout/grid-columns.md +32 -0
  186. package/docs/reference/layout/grid-row-span.md +30 -0
  187. package/docs/reference/layout/grid-rows.md +31 -0
  188. package/docs/reference/layout/inset.md +44 -0
  189. package/docs/reference/layout/isolation.md +30 -0
  190. package/docs/reference/layout/justify-content.md +36 -0
  191. package/docs/reference/layout/justify-items.md +32 -0
  192. package/docs/reference/layout/justify-self.md +33 -0
  193. package/docs/reference/layout/object-fit.md +33 -0
  194. package/docs/reference/layout/object-position.md +45 -0
  195. package/docs/reference/layout/order.md +32 -0
  196. package/docs/reference/layout/overflow.md +34 -0
  197. package/docs/reference/layout/overscroll.md +31 -0
  198. package/docs/reference/layout/place-content.md +35 -0
  199. package/docs/reference/layout/place-items.md +32 -0
  200. package/docs/reference/layout/place-self.md +33 -0
  201. package/docs/reference/layout/position.md +34 -0
  202. package/docs/reference/layout/shorthand-alignment.md +34 -0
  203. package/docs/reference/layout/table-layout.md +30 -0
  204. package/docs/reference/layout/visibility.md +30 -0
  205. package/docs/reference/layout/z-index.md +33 -0
  206. package/docs/reference/layout.md +60 -102
  207. package/docs/reference/space/arbitrary-values.md +39 -0
  208. package/docs/reference/space/gap.md +44 -0
  209. package/docs/reference/space/height.md +44 -0
  210. package/docs/reference/space/margin.md +49 -0
  211. package/docs/reference/space/padding.md +49 -0
  212. package/docs/reference/space/scale-reference.md +43 -0
  213. package/docs/reference/space/width.md +45 -0
  214. package/docs/reference/space.md +14 -98
  215. package/docs/reference/spacing.md +22 -8
  216. package/docs/reference/visual/accent-color.md +31 -0
  217. package/docs/reference/visual/animation-builtin.md +41 -0
  218. package/docs/reference/visual/animation-delay.md +41 -0
  219. package/docs/reference/visual/animation-direction.md +32 -0
  220. package/docs/reference/visual/animation-duration.md +43 -0
  221. package/docs/reference/visual/animation-fill.md +32 -0
  222. package/docs/reference/visual/animation-iteration.md +30 -0
  223. package/docs/reference/visual/animation-play.md +30 -0
  224. package/docs/reference/visual/appearance.md +30 -0
  225. package/docs/reference/visual/backdrop-blur.md +43 -0
  226. package/docs/reference/visual/backdrop-brightness.md +41 -0
  227. package/docs/reference/visual/backdrop-contrast.md +41 -0
  228. package/docs/reference/visual/backdrop-grayscale.md +39 -0
  229. package/docs/reference/visual/backdrop-hue-rotate.md +39 -0
  230. package/docs/reference/visual/backdrop-invert.md +39 -0
  231. package/docs/reference/visual/backdrop-opacity.md +39 -0
  232. package/docs/reference/visual/backdrop-saturate.md +41 -0
  233. package/docs/reference/visual/backdrop-sepia.md +39 -0
  234. package/docs/reference/visual/background-attachment.md +31 -0
  235. package/docs/reference/visual/background-blend-mode.md +34 -0
  236. package/docs/reference/visual/background-clip.md +32 -0
  237. package/docs/reference/visual/background-color.md +33 -0
  238. package/docs/reference/visual/background-image.md +41 -0
  239. package/docs/reference/visual/background-origin.md +31 -0
  240. package/docs/reference/visual/background-position.md +45 -0
  241. package/docs/reference/visual/background-repeat.md +34 -0
  242. package/docs/reference/visual/background-size.md +39 -0
  243. package/docs/reference/visual/blend-modes.md +34 -0
  244. package/docs/reference/visual/border-radius.md +34 -0
  245. package/docs/reference/visual/border-style.md +33 -0
  246. package/docs/reference/visual/border-width.md +44 -0
  247. package/docs/reference/visual/border.md +43 -0
  248. package/docs/reference/visual/box-shadow.md +33 -0
  249. package/docs/reference/visual/caret-color.md +31 -0
  250. package/docs/reference/visual/color-scheme.md +31 -0
  251. package/docs/reference/visual/cursor.md +37 -0
  252. package/docs/reference/visual/field-sizing.md +30 -0
  253. package/docs/reference/visual/fill.md +38 -0
  254. package/docs/reference/visual/filter-blur.md +43 -0
  255. package/docs/reference/visual/filter-brightness.md +41 -0
  256. package/docs/reference/visual/filter-contrast.md +41 -0
  257. package/docs/reference/visual/filter-drop-shadow.md +42 -0
  258. package/docs/reference/visual/filter-grayscale.md +39 -0
  259. package/docs/reference/visual/filter-hue-rotate.md +39 -0
  260. package/docs/reference/visual/filter-invert.md +39 -0
  261. package/docs/reference/visual/filter-saturate.md +41 -0
  262. package/docs/reference/visual/filter-sepia.md +39 -0
  263. package/docs/reference/visual/font-family.md +31 -0
  264. package/docs/reference/visual/font-smoothing.md +30 -0
  265. package/docs/reference/visual/font-style.md +30 -0
  266. package/docs/reference/visual/font-variant-numeric.md +35 -0
  267. package/docs/reference/visual/font-weight.md +31 -0
  268. package/docs/reference/visual/forced-color-adjust.md +30 -0
  269. package/docs/reference/visual/hyphens.md +31 -0
  270. package/docs/reference/visual/letter-spacing.md +42 -0
  271. package/docs/reference/visual/line-clamp.md +40 -0
  272. package/docs/reference/visual/line-height.md +42 -0
  273. package/docs/reference/visual/list-style.md +34 -0
  274. package/docs/reference/visual/mask.md +39 -0
  275. package/docs/reference/visual/opacity.md +33 -0
  276. package/docs/reference/visual/outline.md +31 -0
  277. package/docs/reference/visual/pointer-events.md +30 -0
  278. package/docs/reference/visual/resize.md +32 -0
  279. package/docs/reference/visual/scroll-behavior.md +30 -0
  280. package/docs/reference/visual/scroll-margin.md +41 -0
  281. package/docs/reference/visual/scroll-padding.md +41 -0
  282. package/docs/reference/visual/scroll-snap-align.md +32 -0
  283. package/docs/reference/visual/scroll-snap-stop.md +30 -0
  284. package/docs/reference/visual/scroll-snap-type.md +34 -0
  285. package/docs/reference/visual/state-prefixes.md +37 -0
  286. package/docs/reference/visual/stroke-width.md +39 -0
  287. package/docs/reference/visual/stroke.md +38 -0
  288. package/docs/reference/visual/text-alignment.md +32 -0
  289. package/docs/reference/visual/text-color.md +41 -0
  290. package/docs/reference/visual/text-decoration.md +32 -0
  291. package/docs/reference/visual/text-indent.md +37 -0
  292. package/docs/reference/visual/text-overflow.md +31 -0
  293. package/docs/reference/visual/text-shadow.md +40 -0
  294. package/docs/reference/visual/text-size.md +32 -0
  295. package/docs/reference/visual/text-transform.md +32 -0
  296. package/docs/reference/visual/text-wrap.md +32 -0
  297. package/docs/reference/visual/touch-action.md +36 -0
  298. package/docs/reference/visual/transform-backface.md +30 -0
  299. package/docs/reference/visual/transform-origin.md +45 -0
  300. package/docs/reference/visual/transform-perspective-origin.md +45 -0
  301. package/docs/reference/visual/transform-perspective.md +43 -0
  302. package/docs/reference/visual/transform-rotate.md +40 -0
  303. package/docs/reference/visual/transform-scale.md +43 -0
  304. package/docs/reference/visual/transform-skew.md +40 -0
  305. package/docs/reference/visual/transform-style.md +30 -0
  306. package/docs/reference/visual/transform-translate.md +39 -0
  307. package/docs/reference/visual/transition-delay.md +41 -0
  308. package/docs/reference/visual/transition-duration.md +43 -0
  309. package/docs/reference/visual/transition-property.md +34 -0
  310. package/docs/reference/visual/transition-timing.md +40 -0
  311. package/docs/reference/visual/typography-keywords.md +81 -0
  312. package/docs/reference/visual/user-select.md +32 -0
  313. package/docs/reference/visual/vertical-align.md +36 -0
  314. package/docs/reference/visual/whitespace.md +34 -0
  315. package/docs/reference/visual/will-change.md +33 -0
  316. package/docs/reference/visual/word-break.md +32 -0
  317. package/docs/reference/visual.md +151 -154
  318. package/docs/syntax-reference.json +1973 -0
  319. package/package.json +10 -2
  320. package/playground/index.html +78 -0
  321. package/playground/jit-test.html +384 -0
  322. package/scripts/extract-syntax.js +152 -0
  323. package/scripts/generate-docs.js +352 -0
  324. package/src/cdn/jit.js +1436 -14
  325. package/src/cli/commands/build.js +5 -0
  326. package/src/cli/index.js +2 -0
  327. package/src/compiler/generators/css.js +1537 -25
  328. package/src/compiler/generators/preflight.js +379 -0
  329. package/src/config/defaults.js +19 -1
  330. package/src/definitions/index.js +153 -0
  331. package/src/definitions/layout-alignment.js +257 -0
  332. package/src/definitions/layout-flex.js +209 -0
  333. package/src/definitions/layout-grid.js +150 -0
  334. package/src/definitions/layout-positioning.js +89 -0
  335. package/src/definitions/layout-table.js +98 -0
  336. package/src/definitions/layout-utilities.js +262 -0
  337. package/src/definitions/layout.js +195 -0
  338. package/src/definitions/space.js +164 -0
  339. package/src/definitions/visual-backgrounds.js +423 -0
  340. package/src/definitions/visual-borders.js +111 -0
  341. package/src/definitions/visual-filters.js +204 -0
  342. package/src/definitions/visual-interactivity.js +292 -0
  343. package/src/definitions/visual-svg.js +80 -0
  344. package/src/definitions/visual-transform3d.js +159 -0
  345. package/src/definitions/visual-transforms.js +142 -0
  346. package/src/definitions/visual-transitions.js +277 -0
  347. package/src/definitions/visual-typography.js +386 -0
  348. package/src/definitions/visual.js +542 -0
  349. package/tests/helpers/test-utils.js +144 -0
  350. package/tests/integration/compiler.test.js +247 -0
  351. package/tests/sync/docs-sync.test.js +364 -0
  352. package/tests/unit/compiler/generators/css.test.js +719 -0
  353. package/tests/unit/compiler/parser.test.js +244 -0
  354. package/tests/unit/compiler/tokenizer.test.js +305 -0
  355. package/tests/unit/config/defaults.test.js +168 -0
  356. package/docs/.vitepress/cache/deps/_metadata.json +0 -31
  357. package/docs/.vitepress/cache/deps/chunk-LE5NDSFD.js +0 -12824
  358. package/docs/.vitepress/cache/deps/chunk-LE5NDSFD.js.map +0 -7
  359. package/docs/.vitepress/cache/deps/package.json +0 -3
  360. package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +0 -4505
  361. package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map +0 -7
  362. package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js +0 -9731
  363. package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js.map +0 -7
  364. package/docs/.vitepress/cache/deps/vue.js +0 -347
  365. package/docs/.vitepress/cache/deps/vue.js.map +0 -7
  366. package/docs/.vitepress/dist/404.html +0 -22
  367. package/docs/.vitepress/dist/assets/app.DBXoyO4w.js +0 -1
  368. package/docs/.vitepress/dist/assets/chunks/framework.I305HrzY.js +0 -19
  369. package/docs/.vitepress/dist/assets/chunks/theme.CaXH1t3X.js +0 -1
  370. package/docs/.vitepress/dist/assets/examples_cards.md.BCzaqSD6.js +0 -84
  371. package/docs/.vitepress/dist/assets/examples_cards.md.BCzaqSD6.lean.js +0 -1
  372. package/docs/.vitepress/dist/assets/examples_forms.md.DOjr9LrG.js +0 -169
  373. package/docs/.vitepress/dist/assets/examples_forms.md.DOjr9LrG.lean.js +0 -1
  374. package/docs/.vitepress/dist/assets/examples_hero.md.CAorji-Y.js +0 -118
  375. package/docs/.vitepress/dist/assets/examples_hero.md.CAorji-Y.lean.js +0 -1
  376. package/docs/.vitepress/dist/assets/examples_index.md.BjUNsTob.js +0 -52
  377. package/docs/.vitepress/dist/assets/examples_index.md.BjUNsTob.lean.js +0 -1
  378. package/docs/.vitepress/dist/assets/examples_navigation.md.DvL-Yv_5.js +0 -106
  379. package/docs/.vitepress/dist/assets/examples_navigation.md.DvL-Yv_5.lean.js +0 -1
  380. package/docs/.vitepress/dist/assets/guide_cdn.md.Bbb7-icp.js +0 -30
  381. package/docs/.vitepress/dist/assets/guide_cdn.md.Bbb7-icp.lean.js +0 -1
  382. package/docs/.vitepress/dist/assets/guide_cli.md.yLsOZ7NL.js +0 -44
  383. package/docs/.vitepress/dist/assets/guide_cli.md.yLsOZ7NL.lean.js +0 -1
  384. package/docs/.vitepress/dist/assets/guide_configuration.md.DN4FfKw4.js +0 -79
  385. package/docs/.vitepress/dist/assets/guide_configuration.md.DN4FfKw4.lean.js +0 -1
  386. package/docs/.vitepress/dist/assets/guide_dark-mode.md.D6UJvQtM.js +0 -69
  387. package/docs/.vitepress/dist/assets/guide_dark-mode.md.D6UJvQtM.lean.js +0 -1
  388. package/docs/.vitepress/dist/assets/guide_getting-started.md.K5nA8wXY.js +0 -47
  389. package/docs/.vitepress/dist/assets/guide_getting-started.md.K5nA8wXY.lean.js +0 -1
  390. package/docs/.vitepress/dist/assets/guide_index.md.B0lRU150.js +0 -3
  391. package/docs/.vitepress/dist/assets/guide_index.md.B0lRU150.lean.js +0 -1
  392. package/docs/.vitepress/dist/assets/guide_natural-scale.md.vvauT7U1.js +0 -22
  393. package/docs/.vitepress/dist/assets/guide_natural-scale.md.vvauT7U1.lean.js +0 -1
  394. package/docs/.vitepress/dist/assets/guide_philosophy.md.mOb9kp32.js +0 -7
  395. package/docs/.vitepress/dist/assets/guide_philosophy.md.mOb9kp32.lean.js +0 -1
  396. package/docs/.vitepress/dist/assets/guide_responsive.md.C7cF-4cR.js +0 -57
  397. package/docs/.vitepress/dist/assets/guide_responsive.md.C7cF-4cR.lean.js +0 -1
  398. package/docs/.vitepress/dist/assets/guide_states.md.CwtGEGHB.js +0 -77
  399. package/docs/.vitepress/dist/assets/guide_states.md.CwtGEGHB.lean.js +0 -1
  400. package/docs/.vitepress/dist/assets/guide_tri-attribute.md.CpjJLEMP.js +0 -45
  401. package/docs/.vitepress/dist/assets/guide_tri-attribute.md.CpjJLEMP.lean.js +0 -1
  402. package/docs/.vitepress/dist/assets/index.md.mYp6_S5X.js +0 -7
  403. package/docs/.vitepress/dist/assets/index.md.mYp6_S5X.lean.js +0 -1
  404. package/docs/.vitepress/dist/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 +0 -0
  405. package/docs/.vitepress/dist/assets/inter-italic-cyrillic.By2_1cv3.woff2 +0 -0
  406. package/docs/.vitepress/dist/assets/inter-italic-greek-ext.1u6EdAuj.woff2 +0 -0
  407. package/docs/.vitepress/dist/assets/inter-italic-greek.DJ8dCoTZ.woff2 +0 -0
  408. package/docs/.vitepress/dist/assets/inter-italic-latin-ext.CN1xVJS-.woff2 +0 -0
  409. package/docs/.vitepress/dist/assets/inter-italic-latin.C2AdPX0b.woff2 +0 -0
  410. package/docs/.vitepress/dist/assets/inter-italic-vietnamese.BSbpV94h.woff2 +0 -0
  411. package/docs/.vitepress/dist/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 +0 -0
  412. package/docs/.vitepress/dist/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 +0 -0
  413. package/docs/.vitepress/dist/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 +0 -0
  414. package/docs/.vitepress/dist/assets/inter-roman-greek.BBVDIX6e.woff2 +0 -0
  415. package/docs/.vitepress/dist/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 +0 -0
  416. package/docs/.vitepress/dist/assets/inter-roman-latin.Di8DUHzh.woff2 +0 -0
  417. package/docs/.vitepress/dist/assets/inter-roman-vietnamese.BjW4sHH5.woff2 +0 -0
  418. package/docs/.vitepress/dist/assets/ms_examples_cards.md.CaE5JNAs.js +0 -84
  419. package/docs/.vitepress/dist/assets/ms_examples_cards.md.CaE5JNAs.lean.js +0 -1
  420. package/docs/.vitepress/dist/assets/ms_examples_forms.md.VvDzMzxF.js +0 -169
  421. package/docs/.vitepress/dist/assets/ms_examples_forms.md.VvDzMzxF.lean.js +0 -1
  422. package/docs/.vitepress/dist/assets/ms_examples_hero.md.DC4c3kKW.js +0 -118
  423. package/docs/.vitepress/dist/assets/ms_examples_hero.md.DC4c3kKW.lean.js +0 -1
  424. package/docs/.vitepress/dist/assets/ms_examples_index.md.C13ShcjA.js +0 -52
  425. package/docs/.vitepress/dist/assets/ms_examples_index.md.C13ShcjA.lean.js +0 -1
  426. package/docs/.vitepress/dist/assets/ms_examples_navigation.md.BPtVjKbk.js +0 -106
  427. package/docs/.vitepress/dist/assets/ms_examples_navigation.md.BPtVjKbk.lean.js +0 -1
  428. package/docs/.vitepress/dist/assets/ms_guide_cdn.md.tZFpEjTS.js +0 -30
  429. package/docs/.vitepress/dist/assets/ms_guide_cdn.md.tZFpEjTS.lean.js +0 -1
  430. package/docs/.vitepress/dist/assets/ms_guide_cli.md.DBjxv3-o.js +0 -44
  431. package/docs/.vitepress/dist/assets/ms_guide_cli.md.DBjxv3-o.lean.js +0 -1
  432. package/docs/.vitepress/dist/assets/ms_guide_configuration.md.CyYNqREm.js +0 -79
  433. package/docs/.vitepress/dist/assets/ms_guide_configuration.md.CyYNqREm.lean.js +0 -1
  434. package/docs/.vitepress/dist/assets/ms_guide_dark-mode.md.DWDWvzzv.js +0 -69
  435. package/docs/.vitepress/dist/assets/ms_guide_dark-mode.md.DWDWvzzv.lean.js +0 -1
  436. package/docs/.vitepress/dist/assets/ms_guide_getting-started.md.WoQwRhlY.js +0 -47
  437. package/docs/.vitepress/dist/assets/ms_guide_getting-started.md.WoQwRhlY.lean.js +0 -1
  438. package/docs/.vitepress/dist/assets/ms_guide_index.md.pHpXZMmU.js +0 -3
  439. package/docs/.vitepress/dist/assets/ms_guide_index.md.pHpXZMmU.lean.js +0 -1
  440. package/docs/.vitepress/dist/assets/ms_guide_natural-scale.md.BiUfU-TH.js +0 -22
  441. package/docs/.vitepress/dist/assets/ms_guide_natural-scale.md.BiUfU-TH.lean.js +0 -1
  442. package/docs/.vitepress/dist/assets/ms_guide_philosophy.md.hf3SG2Ts.js +0 -7
  443. package/docs/.vitepress/dist/assets/ms_guide_philosophy.md.hf3SG2Ts.lean.js +0 -1
  444. package/docs/.vitepress/dist/assets/ms_guide_responsive.md.C4yS3zzM.js +0 -57
  445. package/docs/.vitepress/dist/assets/ms_guide_responsive.md.C4yS3zzM.lean.js +0 -1
  446. package/docs/.vitepress/dist/assets/ms_guide_states.md.DkDEjPdC.js +0 -77
  447. package/docs/.vitepress/dist/assets/ms_guide_states.md.DkDEjPdC.lean.js +0 -1
  448. package/docs/.vitepress/dist/assets/ms_guide_tri-attribute.md.C3Es_V5J.js +0 -45
  449. package/docs/.vitepress/dist/assets/ms_guide_tri-attribute.md.C3Es_V5J.lean.js +0 -1
  450. package/docs/.vitepress/dist/assets/ms_index.md.Bmo9il08.js +0 -7
  451. package/docs/.vitepress/dist/assets/ms_index.md.Bmo9il08.lean.js +0 -1
  452. package/docs/.vitepress/dist/assets/ms_reference_breakpoints.md.DR7i_--b.js +0 -48
  453. package/docs/.vitepress/dist/assets/ms_reference_breakpoints.md.DR7i_--b.lean.js +0 -1
  454. package/docs/.vitepress/dist/assets/ms_reference_colors.md.06ZYiMcJ.js +0 -17
  455. package/docs/.vitepress/dist/assets/ms_reference_colors.md.06ZYiMcJ.lean.js +0 -1
  456. package/docs/.vitepress/dist/assets/ms_reference_layout.md.NGL6A5SR.js +0 -13
  457. package/docs/.vitepress/dist/assets/ms_reference_layout.md.NGL6A5SR.lean.js +0 -1
  458. package/docs/.vitepress/dist/assets/ms_reference_space.md.BG5YQ-09.js +0 -24
  459. package/docs/.vitepress/dist/assets/ms_reference_space.md.BG5YQ-09.lean.js +0 -1
  460. package/docs/.vitepress/dist/assets/ms_reference_spacing.md.XmXLLPOZ.js +0 -32
  461. package/docs/.vitepress/dist/assets/ms_reference_spacing.md.XmXLLPOZ.lean.js +0 -1
  462. package/docs/.vitepress/dist/assets/ms_reference_visual.md.BVOlkEqc.js +0 -22
  463. package/docs/.vitepress/dist/assets/ms_reference_visual.md.BVOlkEqc.lean.js +0 -1
  464. package/docs/.vitepress/dist/assets/reference_breakpoints.md.BRbG8Fzi.js +0 -48
  465. package/docs/.vitepress/dist/assets/reference_breakpoints.md.BRbG8Fzi.lean.js +0 -1
  466. package/docs/.vitepress/dist/assets/reference_colors.md.C7j7dSO1.js +0 -17
  467. package/docs/.vitepress/dist/assets/reference_colors.md.C7j7dSO1.lean.js +0 -1
  468. package/docs/.vitepress/dist/assets/reference_layout.md.BWJ5NxSp.js +0 -13
  469. package/docs/.vitepress/dist/assets/reference_layout.md.BWJ5NxSp.lean.js +0 -1
  470. package/docs/.vitepress/dist/assets/reference_space.md.DCsqfTWb.js +0 -24
  471. package/docs/.vitepress/dist/assets/reference_space.md.DCsqfTWb.lean.js +0 -1
  472. package/docs/.vitepress/dist/assets/reference_spacing.md.BInFD8gd.js +0 -32
  473. package/docs/.vitepress/dist/assets/reference_spacing.md.BInFD8gd.lean.js +0 -1
  474. package/docs/.vitepress/dist/assets/reference_visual.md.BRK7S9T1.js +0 -22
  475. package/docs/.vitepress/dist/assets/reference_visual.md.BRK7S9T1.lean.js +0 -1
  476. package/docs/.vitepress/dist/assets/style.D82StYDI.css +0 -1
  477. package/docs/.vitepress/dist/examples/cards.html +0 -108
  478. package/docs/.vitepress/dist/examples/forms.html +0 -193
  479. package/docs/.vitepress/dist/examples/hero.html +0 -142
  480. package/docs/.vitepress/dist/examples/index.html +0 -76
  481. package/docs/.vitepress/dist/examples/navigation.html +0 -130
  482. package/docs/.vitepress/dist/guide/cdn.html +0 -54
  483. package/docs/.vitepress/dist/guide/cli.html +0 -68
  484. package/docs/.vitepress/dist/guide/configuration.html +0 -103
  485. package/docs/.vitepress/dist/guide/dark-mode.html +0 -93
  486. package/docs/.vitepress/dist/guide/getting-started.html +0 -71
  487. package/docs/.vitepress/dist/guide/index.html +0 -27
  488. package/docs/.vitepress/dist/guide/natural-scale.html +0 -46
  489. package/docs/.vitepress/dist/guide/philosophy.html +0 -31
  490. package/docs/.vitepress/dist/guide/responsive.html +0 -81
  491. package/docs/.vitepress/dist/guide/states.html +0 -101
  492. package/docs/.vitepress/dist/guide/tri-attribute.html +0 -69
  493. package/docs/.vitepress/dist/hashmap.json +0 -1
  494. package/docs/.vitepress/dist/index.html +0 -31
  495. package/docs/.vitepress/dist/ms/examples/cards.html +0 -108
  496. package/docs/.vitepress/dist/ms/examples/forms.html +0 -193
  497. package/docs/.vitepress/dist/ms/examples/hero.html +0 -142
  498. package/docs/.vitepress/dist/ms/examples/index.html +0 -76
  499. package/docs/.vitepress/dist/ms/examples/navigation.html +0 -130
  500. package/docs/.vitepress/dist/ms/guide/cdn.html +0 -54
  501. package/docs/.vitepress/dist/ms/guide/cli.html +0 -68
  502. package/docs/.vitepress/dist/ms/guide/configuration.html +0 -103
  503. package/docs/.vitepress/dist/ms/guide/dark-mode.html +0 -93
  504. package/docs/.vitepress/dist/ms/guide/getting-started.html +0 -71
  505. package/docs/.vitepress/dist/ms/guide/index.html +0 -27
  506. package/docs/.vitepress/dist/ms/guide/natural-scale.html +0 -46
  507. package/docs/.vitepress/dist/ms/guide/philosophy.html +0 -31
  508. package/docs/.vitepress/dist/ms/guide/responsive.html +0 -81
  509. package/docs/.vitepress/dist/ms/guide/states.html +0 -101
  510. package/docs/.vitepress/dist/ms/guide/tri-attribute.html +0 -69
  511. package/docs/.vitepress/dist/ms/index.html +0 -31
  512. package/docs/.vitepress/dist/ms/reference/breakpoints.html +0 -72
  513. package/docs/.vitepress/dist/ms/reference/colors.html +0 -41
  514. package/docs/.vitepress/dist/ms/reference/layout.html +0 -37
  515. package/docs/.vitepress/dist/ms/reference/space.html +0 -48
  516. package/docs/.vitepress/dist/ms/reference/spacing.html +0 -56
  517. package/docs/.vitepress/dist/ms/reference/visual.html +0 -46
  518. package/docs/.vitepress/dist/reference/breakpoints.html +0 -72
  519. package/docs/.vitepress/dist/reference/colors.html +0 -41
  520. package/docs/.vitepress/dist/reference/layout.html +0 -37
  521. package/docs/.vitepress/dist/reference/space.html +0 -48
  522. package/docs/.vitepress/dist/reference/spacing.html +0 -56
  523. package/docs/.vitepress/dist/reference/visual.html +0 -46
  524. package/docs/.vitepress/dist/vp-icons.css +0 -1
@@ -0,0 +1,139 @@
1
+ ---
2
+ title: Preflight
3
+ description: An opinionated set of base styles that resets browser defaults
4
+ ---
5
+
6
+ # Preflight
7
+
8
+ Preflight is SenangStart CSS's opinionated set of base styles, designed to smooth over cross-browser inconsistencies and make it easier for you to work within the constraints of your design system.
9
+
10
+ ## Overview
11
+
12
+ When you include SenangStart CSS in your project, Preflight is automatically applied. It's built on top of [modern-normalize](https://github.com/sindresorhus/modern-normalize) and adds additional opinionated styles that we've found helpful.
13
+
14
+ ## What Preflight Does
15
+
16
+ ### Box-Sizing Reset
17
+
18
+ All elements use `border-box` sizing, making it easier to manage widths with padding and borders:
19
+
20
+ ```css
21
+ *,
22
+ ::before,
23
+ ::after {
24
+ box-sizing: border-box;
25
+ border-width: 0;
26
+ border-style: solid;
27
+ }
28
+ ```
29
+
30
+ ### Margins Removed
31
+
32
+ Default margins are stripped from all elements for a consistent starting point:
33
+
34
+ ```css
35
+ blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
36
+ margin: 0;
37
+ }
38
+ ```
39
+
40
+ ### Headings Reset
41
+
42
+ Headings are unstyled by default, inheriting font size and weight. This encourages using semantic markup while styling headings via your design system:
43
+
44
+ ```css
45
+ h1, h2, h3, h4, h5, h6 {
46
+ font-size: inherit;
47
+ font-weight: inherit;
48
+ }
49
+ ```
50
+
51
+ ### Lists Unstyled
52
+
53
+ Lists have their default styling removed. Add list styles back when you need them:
54
+
55
+ ```css
56
+ ol, ul, menu {
57
+ list-style: none;
58
+ margin: 0;
59
+ padding: 0;
60
+ }
61
+ ```
62
+
63
+ ### Images Block-Level
64
+
65
+ Images and other replaced elements are set to `display: block` and constrained to their parent width:
66
+
67
+ ```css
68
+ img, svg, video, canvas, audio, iframe, embed, object {
69
+ display: block;
70
+ vertical-align: middle;
71
+ }
72
+
73
+ img, video {
74
+ max-width: 100%;
75
+ height: auto;
76
+ }
77
+ ```
78
+
79
+ ### Form Element Normalization
80
+
81
+ Form elements inherit font properties from their parent:
82
+
83
+ ```css
84
+ button, input, optgroup, select, textarea {
85
+ font-family: inherit;
86
+ font-size: 100%;
87
+ font-weight: inherit;
88
+ line-height: inherit;
89
+ color: inherit;
90
+ margin: 0;
91
+ padding: 0;
92
+ }
93
+ ```
94
+
95
+ ### Buttons Have Cursor Pointer
96
+
97
+ Buttons and elements with `role="button"` get a pointer cursor:
98
+
99
+ ```css
100
+ button, [role="button"] {
101
+ cursor: pointer;
102
+ }
103
+ ```
104
+
105
+ ## Disabling Preflight
106
+
107
+ If you need to disable Preflight entirely, you can do so in your configuration:
108
+
109
+ ### Via Configuration File
110
+
111
+ ```js
112
+ // senangstart.config.js
113
+ export default {
114
+ preflight: false,
115
+ // ... other options
116
+ }
117
+ ```
118
+
119
+ ### Via CLI Flag
120
+
121
+ ```bash
122
+ # Build without Preflight
123
+ npx senangstart build --no-preflight
124
+
125
+ # Dev mode without Preflight
126
+ npx senangstart dev --no-preflight
127
+ ```
128
+
129
+ ## When to Disable Preflight
130
+
131
+ Consider disabling Preflight if:
132
+
133
+ - You're integrating SenangStart CSS into an existing project with its own reset/normalize
134
+ - You're using another CSS framework that already provides base styles
135
+ - You need to preserve browser default styling for specific use cases
136
+
137
+ ## Full Preflight Styles
138
+
139
+ For the complete list of Preflight styles, view the [preflight.js source](https://github.com/bookklik-technologies/senangstart-css/blob/main/src/compiler/generators/preflight.js).
@@ -0,0 +1,139 @@
1
+ ---
2
+ title: Preflight
3
+ description: Set gaya asas yang jelas untuk menormalkan lalai pelayar
4
+ ---
5
+
6
+ # Preflight
7
+
8
+ Preflight adalah set gaya asas SenangStart CSS yang jelas, direka untuk melicinkan ketidakkonsistenan antara pelayar dan memudahkan anda bekerja dalam batasan sistem reka bentuk anda.
9
+
10
+ ## Gambaran Keseluruhan
11
+
12
+ Apabila anda memasukkan SenangStart CSS dalam projek anda, Preflight digunakan secara automatik. Ia dibina di atas [modern-normalize](https://github.com/sindresorhus/modern-normalize) dan menambah gaya tambahan yang kami dapati berguna.
13
+
14
+ ## Apa Yang Preflight Lakukan
15
+
16
+ ### Reset Box-Sizing
17
+
18
+ Semua elemen menggunakan saiz `border-box`, memudahkan pengurusan lebar dengan padding dan border:
19
+
20
+ ```css
21
+ *,
22
+ ::before,
23
+ ::after {
24
+ box-sizing: border-box;
25
+ border-width: 0;
26
+ border-style: solid;
27
+ }
28
+ ```
29
+
30
+ ### Margin Dikeluarkan
31
+
32
+ Margin lalai dipadamkan dari semua elemen untuk titik permulaan yang konsisten:
33
+
34
+ ```css
35
+ blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
36
+ margin: 0;
37
+ }
38
+ ```
39
+
40
+ ### Reset Tajuk
41
+
42
+ Tajuk tidak digayakan secara lalai, mewarisi saiz dan berat fon. Ini menggalakkan penggunaan markup semantik sambil menggayakan tajuk melalui sistem reka bentuk anda:
43
+
44
+ ```css
45
+ h1, h2, h3, h4, h5, h6 {
46
+ font-size: inherit;
47
+ font-weight: inherit;
48
+ }
49
+ ```
50
+
51
+ ### Senarai Tidak Digayakan
52
+
53
+ Senarai mempunyai gaya lalai dikeluarkan. Tambah gaya senarai kembali apabila anda memerlukannya:
54
+
55
+ ```css
56
+ ol, ul, menu {
57
+ list-style: none;
58
+ margin: 0;
59
+ padding: 0;
60
+ }
61
+ ```
62
+
63
+ ### Imej Tahap-Blok
64
+
65
+ Imej dan elemen ganti lain ditetapkan kepada `display: block` dan dikekang kepada lebar induk:
66
+
67
+ ```css
68
+ img, svg, video, canvas, audio, iframe, embed, object {
69
+ display: block;
70
+ vertical-align: middle;
71
+ }
72
+
73
+ img, video {
74
+ max-width: 100%;
75
+ height: auto;
76
+ }
77
+ ```
78
+
79
+ ### Normalisasi Elemen Borang
80
+
81
+ Elemen borang mewarisi sifat fon dari induk mereka:
82
+
83
+ ```css
84
+ button, input, optgroup, select, textarea {
85
+ font-family: inherit;
86
+ font-size: 100%;
87
+ font-weight: inherit;
88
+ line-height: inherit;
89
+ color: inherit;
90
+ margin: 0;
91
+ padding: 0;
92
+ }
93
+ ```
94
+
95
+ ### Butang Mempunyai Kursor Pointer
96
+
97
+ Butang dan elemen dengan `role="button"` mendapat kursor pointer:
98
+
99
+ ```css
100
+ button, [role="button"] {
101
+ cursor: pointer;
102
+ }
103
+ ```
104
+
105
+ ## Menyahaktifkan Preflight
106
+
107
+ Jika anda perlu menyahaktifkan Preflight sepenuhnya, anda boleh melakukannya dalam konfigurasi anda:
108
+
109
+ ### Melalui Fail Konfigurasi
110
+
111
+ ```js
112
+ // senangstart.config.js
113
+ export default {
114
+ preflight: false,
115
+ // ... pilihan lain
116
+ }
117
+ ```
118
+
119
+ ### Melalui Bendera CLI
120
+
121
+ ```bash
122
+ # Bina tanpa Preflight
123
+ npx senangstart build --no-preflight
124
+
125
+ # Mod dev tanpa Preflight
126
+ npx senangstart dev --no-preflight
127
+ ```
128
+
129
+ ## Bila Untuk Menyahaktifkan Preflight
130
+
131
+ Pertimbangkan untuk menyahaktifkan Preflight jika:
132
+
133
+ - Anda mengintegrasikan SenangStart CSS ke dalam projek sedia ada dengan reset/normalize sendiri
134
+ - Anda menggunakan rangka kerja CSS lain yang sudah menyediakan gaya asas
135
+ - Anda perlu mengekalkan gaya lalai pelayar untuk kes penggunaan tertentu
136
+
137
+ ## Gaya Preflight Penuh
138
+
139
+ Untuk senarai lengkap gaya Preflight, lihat [sumber preflight.js](https://github.com/bookklik-technologies/senangstart-css/blob/main/src/compiler/generators/preflight.js).
@@ -4,28 +4,28 @@ Rujukan lengkap untuk palet warna.
4
4
 
5
5
  ## Warna Semantik
6
6
 
7
- | Key | Value | Description |
7
+ | Kunci | Nilai | Penerangan |
8
8
  |-----|-------|-------------|
9
- | `white` | #FFFFFF | Pure white |
10
- | `black` | #000000 | Pure black |
11
- | `grey` | #6B7280 | Neutral grey |
12
- | `dark` | #3E4A5D | **Brand dark** |
13
- | `light` | #DBEAFE | **Brand light** |
14
- | `primary` | #2563EB | **Brand primary** |
15
- | `secondary` | #DBEAFE | **Brand secondary** |
16
- | `success` | #10B981 | Positive feedback |
17
- | `warning` | #F59E0B | Cautions |
18
- | `danger` | #EF4444 | Errors |
9
+ | `white` | #FFFFFF | Putih tulen |
10
+ | `black` | #000000 | Hitam tulen |
11
+ | `grey` | #6B7280 | Kelabu neutral |
12
+ | `dark` | #3E4A5D | **Gelap jenama** |
13
+ | `light` | #DBEAFE | **Cerah jenama** |
14
+ | `primary` | #2563EB | **Utama jenama** |
15
+ | `secondary` | #DBEAFE | **Sekunder jenama** |
16
+ | `success` | #10B981 | Maklum balas positif |
17
+ | `warning` | #F59E0B | Amaran |
18
+ | `danger` | #EF4444 | Ralat |
19
19
 
20
- ## Color Palette
20
+ ## Palet Warna
21
21
 
22
- All colors are available in 11 shades: **50**, **100**, **200**, **300**, **400**, **500**, **600**, **700**, **800**, **900**, **950**
22
+ Semua warna tersedia dalam 11 warna: **50**, **100**, **200**, **300**, **400**, **500**, **600**, **700**, **800**, **900**, **950**
23
23
 
24
- ### Chromatic Colors
24
+ ### Warna Kromatik
25
25
 
26
26
  <div class="color-grid">
27
27
 
28
- | Color | 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950 |
28
+ | Warna | 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950 |
29
29
  |-------|-----|------|------|------|------|------|------|------|------|------|------|
30
30
  | **Red** | <span style="background:#FEF2F2;padding:2px 8px;border-radius:4px">#FEF2F2</span> | <span style="background:#FEE2E2;padding:2px 8px;border-radius:4px">#FEE2E2</span> | <span style="background:#FECACA;padding:2px 8px;border-radius:4px">#FECACA</span> | <span style="background:#FCA5A5;padding:2px 8px;border-radius:4px">#FCA5A5</span> | <span style="background:#F87171;padding:2px 8px;border-radius:4px">#F87171</span> | <span style="background:#EF4444;padding:2px 8px;border-radius:4px;color:white">#EF4444</span> | <span style="background:#DC2626;padding:2px 8px;border-radius:4px;color:white">#DC2626</span> | <span style="background:#B91C1C;padding:2px 8px;border-radius:4px;color:white">#B91C1C</span> | <span style="background:#991B1B;padding:2px 8px;border-radius:4px;color:white">#991B1B</span> | <span style="background:#7F1D1D;padding:2px 8px;border-radius:4px;color:white">#7F1D1D</span> | <span style="background:#450A0A;padding:2px 8px;border-radius:4px;color:white">#450A0A</span> |
31
31
  | **Orange** | <span style="background:#FFF7ED;padding:2px 8px;border-radius:4px">#FFF7ED</span> | <span style="background:#FFEDD5;padding:2px 8px;border-radius:4px">#FFEDD5</span> | <span style="background:#FED7AA;padding:2px 8px;border-radius:4px">#FED7AA</span> | <span style="background:#FDBA74;padding:2px 8px;border-radius:4px">#FDBA74</span> | <span style="background:#FB923C;padding:2px 8px;border-radius:4px">#FB923C</span> | <span style="background:#F97316;padding:2px 8px;border-radius:4px;color:white">#F97316</span> | <span style="background:#EA580C;padding:2px 8px;border-radius:4px;color:white">#EA580C</span> | <span style="background:#C2410C;padding:2px 8px;border-radius:4px;color:white">#C2410C</span> | <span style="background:#9A3412;padding:2px 8px;border-radius:4px;color:white">#9A3412</span> | <span style="background:#7C2D12;padding:2px 8px;border-radius:4px;color:white">#7C2D12</span> | <span style="background:#431407;padding:2px 8px;border-radius:4px;color:white">#431407</span> |
@@ -47,11 +47,11 @@ All colors are available in 11 shades: **50**, **100**, **200**, **300**, **400*
47
47
 
48
48
  </div>
49
49
 
50
- ### Neutral Colors
50
+ ### Warna Neutral
51
51
 
52
52
  <div class="color-grid">
53
53
 
54
- | Color | 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950 |
54
+ | Warna | 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950 |
55
55
  |-------|-----|------|------|------|------|------|------|------|------|------|------|
56
56
  | **Slate** | <span style="background:#F8FAFC;padding:2px 8px;border-radius:4px">#F8FAFC</span> | <span style="background:#F1F5F9;padding:2px 8px;border-radius:4px">#F1F5F9</span> | <span style="background:#E2E8F0;padding:2px 8px;border-radius:4px">#E2E8F0</span> | <span style="background:#CBD5E1;padding:2px 8px;border-radius:4px">#CBD5E1</span> | <span style="background:#94A3B8;padding:2px 8px;border-radius:4px">#94A3B8</span> | <span style="background:#64748B;padding:2px 8px;border-radius:4px;color:white">#64748B</span> | <span style="background:#475569;padding:2px 8px;border-radius:4px;color:white">#475569</span> | <span style="background:#334155;padding:2px 8px;border-radius:4px;color:white">#334155</span> | <span style="background:#1E293B;padding:2px 8px;border-radius:4px;color:white">#1E293B</span> | <span style="background:#0F172A;padding:2px 8px;border-radius:4px;color:white">#0F172A</span> | <span style="background:#020617;padding:2px 8px;border-radius:4px;color:white">#020617</span> |
57
57
  | **Gray** | <span style="background:#F9FAFB;padding:2px 8px;border-radius:4px">#F9FAFB</span> | <span style="background:#F3F4F6;padding:2px 8px;border-radius:4px">#F3F4F6</span> | <span style="background:#E5E7EB;padding:2px 8px;border-radius:4px">#E5E7EB</span> | <span style="background:#D1D5DB;padding:2px 8px;border-radius:4px">#D1D5DB</span> | <span style="background:#9CA3AF;padding:2px 8px;border-radius:4px">#9CA3AF</span> | <span style="background:#6B7280;padding:2px 8px;border-radius:4px;color:white">#6B7280</span> | <span style="background:#4B5563;padding:2px 8px;border-radius:4px;color:white">#4B5563</span> | <span style="background:#374151;padding:2px 8px;border-radius:4px;color:white">#374151</span> | <span style="background:#1F2937;padding:2px 8px;border-radius:4px;color:white">#1F2937</span> | <span style="background:#111827;padding:2px 8px;border-radius:4px;color:white">#111827</span> | <span style="background:#030712;padding:2px 8px;border-radius:4px;color:white">#030712</span> |
@@ -61,44 +61,44 @@ All colors are available in 11 shades: **50**, **100**, **200**, **300**, **400*
61
61
 
62
62
  </div>
63
63
 
64
- ## Usage
64
+ ## Penggunaan
65
65
 
66
- ### Background Colors
66
+ ### Warna Latar Belakang
67
67
 
68
68
  ```html
69
- <div visual="bg:blue-500">Blue 500 background</div>
70
- <div visual="bg:slate-100">Light slate background</div>
71
- <div visual="bg:emerald-600">Emerald 600 background</div>
69
+ <div visual="bg:blue-500">Latar belakang Blue 500</div>
70
+ <div visual="bg:slate-100">Latar belakang slate cerah</div>
71
+ <div visual="bg:emerald-600">Latar belakang Emerald 600</div>
72
72
  ```
73
73
 
74
- ### Text Colors
74
+ ### Warna Teks
75
75
 
76
76
  ```html
77
- <span visual="text:gray-900">Dark text</span>
78
- <span visual="text:blue-600">Blue link</span>
79
- <span visual="text:red-500">Error text</span>
77
+ <span visual="text:gray-900">Teks gelap</span>
78
+ <span visual="text:blue-600">Pautan biru</span>
79
+ <span visual="text:red-500">Teks ralat</span>
80
80
  ```
81
81
 
82
- ### Border Colors
82
+ ### Warna Sempadan
83
83
 
84
84
  ```html
85
- <div visual="border:gray-300 border-w:[1px]">Light border</div>
86
- <div visual="border:blue-500 border-w:[2px]">Blue border</div>
85
+ <div visual="border:gray-300 border-w:[1px]">Sempadan cerah</div>
86
+ <div visual="border:blue-500 border-w:[2px]">Sempadan biru</div>
87
87
  ```
88
88
 
89
- ### Arbitrary Colors
89
+ ### Warna Arbitrari
90
90
 
91
- Use brackets for custom hex values:
91
+ Gunakan kurungan untuk nilai hex tersuai:
92
92
 
93
93
  ```html
94
- <div visual="bg:[#8B5CF6]">Custom purple</div>
95
- <div visual="text:[#EC4899]">Custom pink text</div>
96
- <div visual="bg:[rgba(0,0,0,0.5)]">Semi-transparent</div>
94
+ <div visual="bg:[#8B5CF6]">Ungu tersuai</div>
95
+ <div visual="text:[#EC4899]">Teks merah jambu tersuai</div>
96
+ <div visual="bg:[rgba(0,0,0,0.5)]">Separuh telus</div>
97
97
  ```
98
98
 
99
- ## Customization
99
+ ## Penyesuaian
100
100
 
101
- Add custom colors in `senangstart.config.js`:
101
+ Tambah warna tersuai dalam `senangstart.config.js`:
102
102
 
103
103
  ```javascript
104
104
  export default {
@@ -113,14 +113,14 @@ export default {
113
113
  }
114
114
  ```
115
115
 
116
- ## Semantic Usage
116
+ ## Penggunaan Semantik
117
117
 
118
- | Color | Recommended Use |
118
+ | Warna | Kegunaan Disyorkan |
119
119
  |-------|-----------------|
120
- | `primary` | Main actions, links, highlights |
121
- | `success` | Positive feedback, confirmations |
122
- | `warning` | Cautions, important notices |
123
- | `danger` | Errors, destructive actions |
124
- | `grey` | Secondary text, borders |
125
- | `dark` | Primary text, headings |
126
- | `light` | Backgrounds, subtle fills |
120
+ | `primary` | Tindakan utama, pautan, sorotan |
121
+ | `success` | Maklum balas positif, pengesahan |
122
+ | `warning` | Amaran, notis penting |
123
+ | `danger` | Ralat, tindakan merosakkan |
124
+ | `grey` | Teks sekunder, sempadan |
125
+ | `dark` | Teks utama, tajuk |
126
+ | `light` | Latar belakang, isian halus |
@@ -0,0 +1,35 @@
1
+ # Align Content
2
+
3
+ Jajarkan baris kandungan dalam bekas flex berbilang baris
4
+
5
+ ## Sintaks
6
+ ```
7
+ layout="content:[value]"
8
+ ```
9
+
10
+ ## Nilai
11
+
12
+ | Nilai | CSS Output | Huraian |
13
+ |-------|------------|-------------|
14
+ | `start` | `align-content: flex-start` | Jajar ke permulaan |
15
+ | `end` | `align-content: flex-end` | Jajar ke hujung |
16
+ | `center` | `align-content: center` | Tengahkan kandungan |
17
+ | `between` | `align-content: space-between` | Ruang antara baris |
18
+ | `around` | `align-content: space-around` | Ruang sekeliling baris |
19
+ | `evenly` | `align-content: space-evenly` | Ruang sekata |
20
+ | `stretch` | `align-content: stretch` | Regangkan baris |
21
+
22
+ ## Contoh
23
+
24
+ ```html
25
+ <div layout="flex wrap content:center">Centered rows</div>
26
+ ```
27
+
28
+ ## Responsif
29
+
30
+ ```html
31
+ <!-- Contoh responsif -->
32
+ <div layout="mob:... tab:... lap:...">
33
+ Kandungan responsif
34
+ </div>
35
+ ```
@@ -0,0 +1,33 @@
1
+ # Align Items
2
+
3
+ Jajarkan item sepanjang paksi silang
4
+
5
+ ## Sintaks
6
+ ```
7
+ layout="items:[value]"
8
+ ```
9
+
10
+ ## Nilai
11
+
12
+ | Nilai | CSS Output | Huraian |
13
+ |-------|------------|-------------|
14
+ | `start` | `align-items: flex-start` | Jajar ke permulaan |
15
+ | `end` | `align-items: flex-end` | Jajar ke hujung |
16
+ | `center` | `align-items: center` | Tengahkan item |
17
+ | `baseline` | `align-items: baseline` | Jajar ke garis asas |
18
+ | `stretch` | `align-items: stretch` | Regangkan item |
19
+
20
+ ## Contoh
21
+
22
+ ```html
23
+ <div layout="flex items:center">Centered</div>
24
+ ```
25
+
26
+ ## Responsif
27
+
28
+ ```html
29
+ <!-- Contoh responsif -->
30
+ <div layout="mob:... tab:... lap:...">
31
+ Kandungan responsif
32
+ </div>
33
+ ```
@@ -0,0 +1,34 @@
1
+ # Align Self
2
+
3
+ Ganti penjajaran untuk satu item
4
+
5
+ ## Sintaks
6
+ ```
7
+ layout="self:[value]"
8
+ ```
9
+
10
+ ## Nilai
11
+
12
+ | Nilai | CSS Output | Huraian |
13
+ |-------|------------|-------------|
14
+ | `auto` | `align-self: auto` | Guna penjajaran induk |
15
+ | `start` | `align-self: flex-start` | Jajar ke permulaan |
16
+ | `end` | `align-self: flex-end` | Jajar ke hujung |
17
+ | `center` | `align-self: center` | Tengahkan item |
18
+ | `baseline` | `align-self: baseline` | Jajar ke garis asas |
19
+ | `stretch` | `align-self: stretch` | Regangkan item |
20
+
21
+ ## Contoh
22
+
23
+ ```html
24
+ <div layout="self:center">Centered item</div>
25
+ ```
26
+
27
+ ## Responsif
28
+
29
+ ```html
30
+ <!-- Contoh responsif -->
31
+ <div layout="mob:... tab:... lap:...">
32
+ Kandungan responsif
33
+ </div>
34
+ ```
@@ -0,0 +1,40 @@
1
+ # Aspect Ratio
2
+
3
+ Tetapkan nisbah aspek elemen
4
+
5
+ ## Sintaks
6
+ ```
7
+ layout="aspect:[value]"
8
+ ```
9
+
10
+ ## Nilai
11
+
12
+ | Nilai | CSS Output | Huraian |
13
+ |-------|------------|-------------|
14
+ | `auto` | `aspect-ratio: auto` | Nisbah aspek semula jadi |
15
+ | `square` | `aspect-ratio: 1 / 1` | Segi empat sama 1:1 |
16
+ | `video` | `aspect-ratio: 16 / 9` | Video 16:9 |
17
+
18
+ ## Contoh
19
+
20
+ ```html
21
+ <div layout="aspect:square">Square</div>
22
+ <div layout="aspect:[4/3]">4:3</div>
23
+ ```
24
+
25
+ ## Nilai Arbitrari
26
+
27
+ Sokong nilai tersuai menggunakan sintaks kurungan segi empat:
28
+
29
+ ```html
30
+ <div layout="aspect:[custom-value]">Custom</div>
31
+ ```
32
+
33
+ ## Responsif
34
+
35
+ ```html
36
+ <!-- Contoh responsif -->
37
+ <div layout="mob:... tab:... lap:...">
38
+ Kandungan responsif
39
+ </div>
40
+ ```
@@ -0,0 +1,30 @@
1
+ # Border Collapse
2
+
3
+ Kawal runtuhan sempadan jadual
4
+
5
+ ## Sintaks
6
+ ```
7
+ layout="border:[value]"
8
+ ```
9
+
10
+ ## Nilai
11
+
12
+ | Nilai | CSS Output | Huraian |
13
+ |-------|------------|-------------|
14
+ | `collapse` | `border-collapse: collapse` | Runtuhkan sempadan |
15
+ | `separate` | `border-collapse: separate` | Asingkan sempadan |
16
+
17
+ ## Contoh
18
+
19
+ ```html
20
+ <table layout="border:collapse">Collapsed table</table>
21
+ ```
22
+
23
+ ## Responsif
24
+
25
+ ```html
26
+ <!-- Contoh responsif -->
27
+ <div layout="mob:... tab:... lap:...">
28
+ Kandungan responsif
29
+ </div>
30
+ ```
@@ -0,0 +1,39 @@
1
+ # Border Spacing
2
+
3
+ Kawal jarak antara sempadan jadual
4
+
5
+ ## Sintaks
6
+ ```
7
+ layout="border-spacing:[value]"
8
+ ```
9
+
10
+ ## Nilai
11
+
12
+ | Nilai | CSS Output | Huraian |
13
+ |-------|------------|-------------|
14
+ | `border-spacing` | `border-spacing: {value}` | Semua jarak |
15
+ | `border-spacing-x` | `border-spacing: {value} 0` | Jarak mendatar |
16
+ | `border-spacing-y` | `border-spacing: 0 {value}` | Jarak menegak |
17
+
18
+ ## Contoh
19
+
20
+ ```html
21
+ <table layout="border-separate border-spacing:small">Spaced</table>
22
+ ```
23
+
24
+ ## Nilai Arbitrari
25
+
26
+ Sokong nilai tersuai menggunakan sintaks kurungan segi empat:
27
+
28
+ ```html
29
+ <div layout="border:[custom-value]">Custom</div>
30
+ ```
31
+
32
+ ## Responsif
33
+
34
+ ```html
35
+ <!-- Contoh responsif -->
36
+ <div layout="mob:... tab:... lap:...">
37
+ Kandungan responsif
38
+ </div>
39
+ ```
@@ -0,0 +1,30 @@
1
+ # Box Sizing
2
+
3
+ Kawal cara lebar dan tinggi dikira
4
+
5
+ ## Sintaks
6
+ ```
7
+ layout="box:[value]"
8
+ ```
9
+
10
+ ## Nilai
11
+
12
+ | Nilai | CSS Output | Huraian |
13
+ |-------|------------|-------------|
14
+ | `border` | `box-sizing: border-box` | Termasuk padding dan sempadan dalam saiz |
15
+ | `content` | `box-sizing: content-box` | Tidak termasuk padding dan sempadan |
16
+
17
+ ## Contoh
18
+
19
+ ```html
20
+ <div layout="box:border">Border box</div>
21
+ ```
22
+
23
+ ## Responsif
24
+
25
+ ```html
26
+ <!-- Contoh responsif -->
27
+ <div layout="mob:... tab:... lap:...">
28
+ Kandungan responsif
29
+ </div>
30
+ ```