@master/css 2.0.0-beta.13 → 2.0.0-beta.130

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 (338) hide show
  1. package/README.md +102 -109
  2. package/dist/bin/index.d.ts +2 -0
  3. package/dist/cjs/bin/index.js +2 -0
  4. package/dist/cjs/config/breakpoints.js +1 -0
  5. package/dist/cjs/config/colors.js +1 -0
  6. package/dist/cjs/config/functions.js +1 -0
  7. package/dist/cjs/config/important.js +1 -0
  8. package/dist/cjs/config/index.js +1 -0
  9. package/dist/cjs/config/observe.js +1 -0
  10. package/dist/cjs/config/override.js +1 -0
  11. package/dist/cjs/config/root-size.js +1 -0
  12. package/dist/cjs/config/rules.js +1 -0
  13. package/dist/cjs/config/scope.js +1 -0
  14. package/dist/cjs/config/selectors.js +1 -0
  15. package/dist/cjs/config/semantics.js +1 -0
  16. package/dist/cjs/config/themes.js +1 -0
  17. package/dist/cjs/constants/box-underneath.js +1 -0
  18. package/dist/cjs/constants/content-extrema.js +1 -0
  19. package/dist/cjs/constants/selector-symbols.js +1 -0
  20. package/dist/cjs/constants/sizing-values.js +1 -0
  21. package/dist/cjs/constants/sorted-selectors.js +1 -0
  22. package/dist/cjs/constants/start-symbol.js +1 -0
  23. package/dist/cjs/css.js +1 -0
  24. package/dist/cjs/index.browser.js +1 -0
  25. package/dist/cjs/index.js +1 -0
  26. package/dist/cjs/methods/define-content.js +25 -0
  27. package/dist/cjs/methods/fill-color-scale.js +1 -0
  28. package/dist/cjs/methods/index.js +1 -0
  29. package/dist/cjs/methods/render-from-html.js +1 -0
  30. package/dist/cjs/methods/render-into-html.js +1 -0
  31. package/dist/cjs/methods/render.js +1 -0
  32. package/dist/cjs/polyfills/css-escape.js +1 -0
  33. package/dist/cjs/rule.js +1 -0
  34. package/dist/cjs/theme.js +1 -0
  35. package/dist/cjs/utils/concat-arrays.js +1 -0
  36. package/dist/cjs/utils/css-escape.js +1 -0
  37. package/dist/cjs/utils/delay.js +1 -0
  38. package/dist/cjs/utils/get-type.js +1 -0
  39. package/dist/cjs/utils/hex-to-rgb.js +1 -0
  40. package/dist/cjs/utils/is-plain-object.js +1 -0
  41. package/dist/cjs/utils/is-symbol.js +1 -0
  42. package/dist/cjs/utils/parse-rule-value.js +1 -0
  43. package/dist/cjs/utils/read-package.js +1 -0
  44. package/dist/cjs/utils/rgb-to-hex.js +1 -0
  45. package/dist/config/breakpoints.d.ts +1 -2
  46. package/dist/config/colors.d.ts +3 -4
  47. package/dist/config/functions.d.ts +7 -0
  48. package/dist/config/important.d.ts +1 -0
  49. package/dist/config/index.d.ts +55 -23
  50. package/dist/config/observe.d.ts +1 -0
  51. package/dist/config/override.d.ts +1 -0
  52. package/dist/config/root-size.d.ts +1 -2
  53. package/dist/config/rules.d.ts +2 -3
  54. package/dist/config/scope.d.ts +1 -0
  55. package/dist/config/selectors.d.ts +1 -2
  56. package/dist/config/semantics.d.ts +142 -43
  57. package/dist/config/themes.d.ts +1 -2
  58. package/dist/constants/box-underneath.d.ts +5 -0
  59. package/dist/constants/content-extrema.d.ts +4 -0
  60. package/dist/constants/selector-symbols.d.ts +1 -0
  61. package/dist/constants/sizing-values.d.ts +7 -0
  62. package/dist/constants/sorted-selectors.d.ts +1 -0
  63. package/dist/constants/start-symbol.d.ts +1 -0
  64. package/dist/css.d.ts +53 -62
  65. package/dist/esm/bin/index.mjs +2 -0
  66. package/dist/esm/config/breakpoints.mjs +1 -0
  67. package/dist/esm/config/colors.mjs +1 -0
  68. package/dist/esm/config/functions.mjs +1 -0
  69. package/dist/esm/config/important.mjs +1 -0
  70. package/dist/esm/config/index.mjs +1 -0
  71. package/dist/esm/config/observe.mjs +1 -0
  72. package/dist/esm/config/override.mjs +1 -0
  73. package/dist/esm/config/root-size.mjs +1 -0
  74. package/dist/esm/config/rules.mjs +1 -0
  75. package/dist/esm/config/scope.mjs +1 -0
  76. package/dist/esm/config/selectors.mjs +1 -0
  77. package/dist/esm/config/semantics.mjs +1 -0
  78. package/dist/esm/config/themes.mjs +1 -0
  79. package/dist/esm/constants/box-underneath.mjs +1 -0
  80. package/dist/esm/constants/content-extrema.mjs +1 -0
  81. package/dist/esm/constants/selector-symbols.mjs +1 -0
  82. package/dist/esm/constants/sizing-values.mjs +1 -0
  83. package/dist/esm/constants/sorted-selectors.mjs +1 -0
  84. package/dist/esm/constants/start-symbol.mjs +1 -0
  85. package/dist/esm/css.mjs +1 -0
  86. package/dist/esm/index.browser.mjs +1 -0
  87. package/dist/esm/index.mjs +1 -0
  88. package/dist/esm/methods/define-content.mjs +25 -0
  89. package/dist/esm/methods/fill-color-scale.mjs +1 -0
  90. package/dist/esm/methods/index.mjs +1 -0
  91. package/dist/esm/methods/render-from-html.mjs +1 -0
  92. package/dist/esm/methods/render-into-html.mjs +1 -0
  93. package/dist/esm/methods/render.mjs +1 -0
  94. package/dist/esm/polyfills/css-escape.mjs +1 -0
  95. package/dist/esm/rule.mjs +1 -0
  96. package/dist/esm/theme.mjs +1 -0
  97. package/dist/esm/utils/concat-arrays.mjs +1 -0
  98. package/dist/esm/utils/css-escape.mjs +1 -0
  99. package/dist/esm/utils/delay.mjs +1 -0
  100. package/dist/esm/utils/get-type.mjs +1 -0
  101. package/dist/esm/utils/hex-to-rgb.mjs +1 -0
  102. package/dist/esm/utils/is-plain-object.mjs +1 -0
  103. package/dist/esm/utils/is-symbol.mjs +1 -0
  104. package/dist/esm/utils/parse-rule-value.mjs +1 -0
  105. package/dist/esm/utils/read-package.mjs +1 -0
  106. package/dist/esm/utils/rgb-to-hex.mjs +1 -0
  107. package/dist/index.browser.d.ts +6 -1
  108. package/dist/index.browser.js +1 -2
  109. package/dist/index.d.ts +7 -20
  110. package/dist/index.js +25 -0
  111. package/dist/index.mjs +25 -2
  112. package/dist/methods/define-content.d.ts +5 -0
  113. package/dist/methods/fill-color-scale.d.ts +1 -0
  114. package/dist/methods/index.d.ts +5 -0
  115. package/dist/methods/render-from-html.d.ts +2 -0
  116. package/dist/methods/render-into-html.d.ts +2 -0
  117. package/dist/methods/render.d.ts +2 -0
  118. package/dist/polyfills/css-escape.d.ts +0 -1
  119. package/dist/rule.d.ts +55 -43
  120. package/dist/theme.d.ts +30 -0
  121. package/dist/utils/css-escape.d.ts +1 -0
  122. package/dist/utils/delay.d.ts +2 -0
  123. package/dist/utils/is-plain-object.d.ts +1 -1
  124. package/dist/utils/parse-rule-value.d.ts +5 -0
  125. package/dist/utils/read-package.d.ts +2 -0
  126. package/package.json +1 -162
  127. package/LICENSE +0 -21
  128. package/dist/apis/extend.d.ts +0 -5
  129. package/dist/apis/fill-color-scale.d.ts +0 -1
  130. package/dist/apis/render-from-html.d.ts +0 -3
  131. package/dist/apis/render-into-html.d.ts +0 -3
  132. package/dist/apis/render.d.ts +0 -3
  133. package/dist/config/scheme.d.ts +0 -7
  134. package/dist/config/values.d.ts +0 -126
  135. package/dist/index.browser.js.map +0 -7
  136. package/dist/index.cjs +0 -2
  137. package/dist/index.cjs.map +0 -7
  138. package/dist/index.mjs.map +0 -7
  139. package/dist/rules/accent-color.d.ts +0 -7
  140. package/dist/rules/align-content.d.ts +0 -6
  141. package/dist/rules/align-items.d.ts +0 -6
  142. package/dist/rules/align-self.d.ts +0 -6
  143. package/dist/rules/animation-delay.d.ts +0 -7
  144. package/dist/rules/animation-direction.d.ts +0 -6
  145. package/dist/rules/animation-duration.d.ts +0 -7
  146. package/dist/rules/animation-fill-mode.d.ts +0 -6
  147. package/dist/rules/animation-iteration-count.d.ts +0 -7
  148. package/dist/rules/animation-name.d.ts +0 -6
  149. package/dist/rules/animation-play-state.d.ts +0 -6
  150. package/dist/rules/animation-timing-function.d.ts +0 -6
  151. package/dist/rules/animation.d.ts +0 -8
  152. package/dist/rules/appearance.d.ts +0 -5
  153. package/dist/rules/aspect-radio.d.ts +0 -7
  154. package/dist/rules/backdrop-filter.d.ts +0 -11
  155. package/dist/rules/background-attachment.d.ts +0 -6
  156. package/dist/rules/background-blend-mode.d.ts +0 -5
  157. package/dist/rules/background-clip.d.ts +0 -9
  158. package/dist/rules/background-color.d.ts +0 -8
  159. package/dist/rules/background-image.d.ts +0 -7
  160. package/dist/rules/background-origin.d.ts +0 -6
  161. package/dist/rules/background-position.d.ts +0 -7
  162. package/dist/rules/background-repeat.d.ts +0 -6
  163. package/dist/rules/background-size.d.ts +0 -6
  164. package/dist/rules/background.d.ts +0 -8
  165. package/dist/rules/border-collapse.d.ts +0 -6
  166. package/dist/rules/border-color.d.ts +0 -11
  167. package/dist/rules/border-image-outset.d.ts +0 -5
  168. package/dist/rules/border-image-repeat.d.ts +0 -6
  169. package/dist/rules/border-image-slice.d.ts +0 -6
  170. package/dist/rules/border-image-source.d.ts +0 -6
  171. package/dist/rules/border-image-width.d.ts +0 -6
  172. package/dist/rules/border-image.d.ts +0 -6
  173. package/dist/rules/border-radius.d.ts +0 -9
  174. package/dist/rules/border-spacing.d.ts +0 -5
  175. package/dist/rules/border-style.d.ts +0 -9
  176. package/dist/rules/border-width.d.ts +0 -9
  177. package/dist/rules/border.d.ts +0 -10
  178. package/dist/rules/box-decoration-break.d.ts +0 -9
  179. package/dist/rules/box-shadow.d.ts +0 -7
  180. package/dist/rules/box-sizing.d.ts +0 -6
  181. package/dist/rules/break-after.d.ts +0 -5
  182. package/dist/rules/break-before.d.ts +0 -5
  183. package/dist/rules/break-inside.d.ts +0 -5
  184. package/dist/rules/caret-color.d.ts +0 -7
  185. package/dist/rules/clear.d.ts +0 -5
  186. package/dist/rules/clip-path.d.ts +0 -6
  187. package/dist/rules/color.d.ts +0 -8
  188. package/dist/rules/column-span.d.ts +0 -6
  189. package/dist/rules/columns.d.ts +0 -8
  190. package/dist/rules/contain.d.ts +0 -5
  191. package/dist/rules/content.d.ts +0 -5
  192. package/dist/rules/counter-increment.d.ts +0 -6
  193. package/dist/rules/cursor.d.ts +0 -5
  194. package/dist/rules/cx.d.ts +0 -6
  195. package/dist/rules/cy.d.ts +0 -6
  196. package/dist/rules/direction.d.ts +0 -5
  197. package/dist/rules/display.d.ts +0 -6
  198. package/dist/rules/fill.d.ts +0 -7
  199. package/dist/rules/filter.d.ts +0 -8
  200. package/dist/rules/flex-basis.d.ts +0 -5
  201. package/dist/rules/flex-direction.d.ts +0 -6
  202. package/dist/rules/flex-grow.d.ts +0 -6
  203. package/dist/rules/flex-shrink.d.ts +0 -6
  204. package/dist/rules/flex-wrap.d.ts +0 -6
  205. package/dist/rules/flex.d.ts +0 -7
  206. package/dist/rules/float.d.ts +0 -5
  207. package/dist/rules/font-family.d.ts +0 -6
  208. package/dist/rules/font-size.d.ts +0 -6
  209. package/dist/rules/font-smoothing.d.ts +0 -9
  210. package/dist/rules/font-style.d.ts +0 -7
  211. package/dist/rules/font-variant-numeric.d.ts +0 -6
  212. package/dist/rules/font-weight.d.ts +0 -7
  213. package/dist/rules/font.d.ts +0 -8
  214. package/dist/rules/gap.d.ts +0 -9
  215. package/dist/rules/grid-area.d.ts +0 -7
  216. package/dist/rules/grid-auto-columns.d.ts +0 -6
  217. package/dist/rules/grid-auto-flow.d.ts +0 -6
  218. package/dist/rules/grid-auto-rows.d.ts +0 -5
  219. package/dist/rules/grid-column-end.d.ts +0 -7
  220. package/dist/rules/grid-column-start.d.ts +0 -7
  221. package/dist/rules/grid-column.d.ts +0 -9
  222. package/dist/rules/grid-columns.d.ts +0 -10
  223. package/dist/rules/grid-row-end.d.ts +0 -6
  224. package/dist/rules/grid-row-start.d.ts +0 -6
  225. package/dist/rules/grid-row.d.ts +0 -9
  226. package/dist/rules/grid-rows.d.ts +0 -9
  227. package/dist/rules/grid-template-areas.d.ts +0 -5
  228. package/dist/rules/grid-template-columns.d.ts +0 -6
  229. package/dist/rules/grid-template-rows.d.ts +0 -5
  230. package/dist/rules/grid-template.d.ts +0 -6
  231. package/dist/rules/grid.d.ts +0 -6
  232. package/dist/rules/group.d.ts +0 -9
  233. package/dist/rules/height.d.ts +0 -6
  234. package/dist/rules/inset.d.ts +0 -9
  235. package/dist/rules/isolation.d.ts +0 -5
  236. package/dist/rules/justify-content.d.ts +0 -6
  237. package/dist/rules/justify-items.d.ts +0 -6
  238. package/dist/rules/justify-self.d.ts +0 -6
  239. package/dist/rules/letter-spacing.d.ts +0 -7
  240. package/dist/rules/line-clamp.d.ts +0 -9
  241. package/dist/rules/line-height.d.ts +0 -7
  242. package/dist/rules/lines.d.ts +0 -9
  243. package/dist/rules/list-style-image.d.ts +0 -6
  244. package/dist/rules/list-style-position.d.ts +0 -6
  245. package/dist/rules/list-style-type.d.ts +0 -6
  246. package/dist/rules/list-style.d.ts +0 -6
  247. package/dist/rules/margin.d.ts +0 -9
  248. package/dist/rules/mask-image.d.ts +0 -8
  249. package/dist/rules/max-height.d.ts +0 -6
  250. package/dist/rules/max-width.d.ts +0 -6
  251. package/dist/rules/min-height.d.ts +0 -6
  252. package/dist/rules/min-width.d.ts +0 -6
  253. package/dist/rules/mix-blend-mode.d.ts +0 -6
  254. package/dist/rules/object-fit.d.ts +0 -6
  255. package/dist/rules/object-position.d.ts +0 -6
  256. package/dist/rules/opacity.d.ts +0 -6
  257. package/dist/rules/order.d.ts +0 -7
  258. package/dist/rules/outline-color.d.ts +0 -7
  259. package/dist/rules/outline-offset.d.ts +0 -5
  260. package/dist/rules/outline-style.d.ts +0 -6
  261. package/dist/rules/outline-width.d.ts +0 -6
  262. package/dist/rules/outline.d.ts +0 -7
  263. package/dist/rules/overflow.d.ts +0 -9
  264. package/dist/rules/overscroll-behavior.d.ts +0 -8
  265. package/dist/rules/padding.d.ts +0 -9
  266. package/dist/rules/place-content.d.ts +0 -6
  267. package/dist/rules/place-items.d.ts +0 -6
  268. package/dist/rules/place-self.d.ts +0 -6
  269. package/dist/rules/placement.d.ts +0 -8
  270. package/dist/rules/pointer-events.d.ts +0 -5
  271. package/dist/rules/position.d.ts +0 -5
  272. package/dist/rules/quotes.d.ts +0 -5
  273. package/dist/rules/resize.d.ts +0 -5
  274. package/dist/rules/rx.d.ts +0 -6
  275. package/dist/rules/ry.d.ts +0 -6
  276. package/dist/rules/scroll-behavior.d.ts +0 -5
  277. package/dist/rules/scroll-margin.d.ts +0 -9
  278. package/dist/rules/scroll-padding.d.ts +0 -9
  279. package/dist/rules/scroll-snap-align.d.ts +0 -6
  280. package/dist/rules/scroll-snap-stop.d.ts +0 -6
  281. package/dist/rules/scroll-snap-type.d.ts +0 -6
  282. package/dist/rules/shape-image-threshold.d.ts +0 -6
  283. package/dist/rules/shape-margin.d.ts +0 -6
  284. package/dist/rules/shape-outside.d.ts +0 -6
  285. package/dist/rules/spacing.d.ts +0 -9
  286. package/dist/rules/stroke-dasharray.d.ts +0 -5
  287. package/dist/rules/stroke-dashoffset.d.ts +0 -5
  288. package/dist/rules/stroke-width.d.ts +0 -6
  289. package/dist/rules/stroke.d.ts +0 -6
  290. package/dist/rules/table-layout.d.ts +0 -5
  291. package/dist/rules/text-align.d.ts +0 -6
  292. package/dist/rules/text-decoration-color.d.ts +0 -7
  293. package/dist/rules/text-decoration-line.d.ts +0 -6
  294. package/dist/rules/text-decoration-style.d.ts +0 -6
  295. package/dist/rules/text-decoration-thickness.d.ts +0 -7
  296. package/dist/rules/text-decoration.d.ts +0 -8
  297. package/dist/rules/text-fill-color.d.ts +0 -10
  298. package/dist/rules/text-indent.d.ts +0 -5
  299. package/dist/rules/text-orientation.d.ts +0 -6
  300. package/dist/rules/text-overflow.d.ts +0 -6
  301. package/dist/rules/text-rendering.d.ts +0 -6
  302. package/dist/rules/text-shadow.d.ts +0 -6
  303. package/dist/rules/text-size.d.ts +0 -8
  304. package/dist/rules/text-stroke-color.d.ts +0 -10
  305. package/dist/rules/text-stroke-width.d.ts +0 -8
  306. package/dist/rules/text-stroke.d.ts +0 -8
  307. package/dist/rules/text-transform.d.ts +0 -6
  308. package/dist/rules/text-underline-offset.d.ts +0 -5
  309. package/dist/rules/touch-action.d.ts +0 -5
  310. package/dist/rules/transform-box.d.ts +0 -6
  311. package/dist/rules/transform-origin.d.ts +0 -7
  312. package/dist/rules/transform-style.d.ts +0 -6
  313. package/dist/rules/transform.d.ts +0 -9
  314. package/dist/rules/transition-delay.d.ts +0 -7
  315. package/dist/rules/transition-duration.d.ts +0 -7
  316. package/dist/rules/transition-property.d.ts +0 -6
  317. package/dist/rules/transition-timing-function.d.ts +0 -6
  318. package/dist/rules/transition.d.ts +0 -7
  319. package/dist/rules/user-drag.d.ts +0 -8
  320. package/dist/rules/user-select.d.ts +0 -8
  321. package/dist/rules/variable.d.ts +0 -9
  322. package/dist/rules/vertical-align.d.ts +0 -6
  323. package/dist/rules/visibility.d.ts +0 -5
  324. package/dist/rules/white-space.d.ts +0 -6
  325. package/dist/rules/width.d.ts +0 -6
  326. package/dist/rules/will-change.d.ts +0 -5
  327. package/dist/rules/word-break.d.ts +0 -6
  328. package/dist/rules/word-spacing.d.ts +0 -6
  329. package/dist/rules/writing-mode.d.ts +0 -6
  330. package/dist/rules/x.d.ts +0 -6
  331. package/dist/rules/y.d.ts +0 -6
  332. package/dist/rules/z-index.d.ts +0 -7
  333. package/dist/utils/get-border-props.d.ts +0 -3
  334. package/dist/utils/get-css-property-text.d.ts +0 -5
  335. package/dist/utils/normalize-css-calc-text.d.ts +0 -5
  336. package/dist/utils/parse-value-unit.d.ts +0 -2
  337. package/dist/utils/parse-value.d.ts +0 -6
  338. package/readme.md +0 -118
@@ -0,0 +1 @@
1
+ var a=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var p=(n,t)=>{for(var s in t)a(n,s,{get:t[s],enumerable:!0})},g=(n,t,s,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of i(t))!o.call(n,r)&&r!==s&&a(n,r,{get:()=>t[r],enumerable:!(e=c(t,r))||e.enumerable});return n};var I=n=>g(a({},"__esModule",{value:!0}),n);var f={};p(f,{hexToRgb:()=>b});module.exports=I(f);function b(n){n.startsWith("#")&&(n=n.slice(1));let t=n.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}0&&(module.exports={hexToRgb});
@@ -0,0 +1 @@
1
+ var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var p=(t,e)=>{for(var n in e)o(t,n,{get:e[n],enumerable:!0})},s=(t,e,n,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of O(e))!j.call(t,r)&&r!==n&&o(t,r,{get:()=>e[r],enumerable:!(c=i(e,r))||c.enumerable});return t};var y=t=>s(o({},"__esModule",{value:!0}),t);var u={};p(u,{isPlainObject:()=>f});module.exports=y(u);var b=require("./get-type");function f(t){return(0,b.getType)(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}0&&(module.exports={isPlainObject});
@@ -0,0 +1 @@
1
+ var t=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var a=(o,y)=>{for(var r in y)t(o,r,{get:y[r],enumerable:!0})},b=(o,y,r,e)=>{if(y&&typeof y=="object"||typeof y=="function")for(let m of n(y))!p.call(o,m)&&m!==r&&t(o,m,{get:()=>y[m],enumerable:!(e=l(y,m))||e.enumerable});return o};var s=o=>b(t({},"__esModule",{value:!0}),o);var u={};a(u,{isSymbol:()=>f});module.exports=s(u);var i=require("./get-type");function f(o){return(0,i.getType)(o)==="Symbol"}0&&(module.exports={isSymbol});
@@ -0,0 +1 @@
1
+ var f=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var v=(e,t)=>{for(var r in t)f(e,r,{get:t[r],enumerable:!0})},w=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of C(t))!N.call(e,n)&&n!==r&&f(e,n,{get:()=>t[n],enumerable:!(a=x(t,n))||a.enumerable});return e};var z=e=>w(f({},"__esModule",{value:!0}),e);var $={};v($,{parseRuleValue:()=>V});module.exports=z($);function V(e,t,r,a,n,p){let s="",g="",c;if(typeof e=="number")s=e,g=t||"";else{if(a){let d=!1,h=!1;e=e.replace(new RegExp(`(^|,| |\\()((?:${r.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(b,M,R,i)=>{h=!0;let m=a[R];if(m){let u;for(let l of p)if(u=m[l])break;if(u){d=!0;let l=u;if(i){let o=i.endsWith("%")?parseFloat(i)/100:+i;o=isNaN(o)?1:Math.min(Math.max(o,0),1),l+=Math.round(o*255).toString(16).toUpperCase().padStart(2,"0")}return M+l}}return b}),h&&(c=d)}s=e}return{value:s,unit:g,colorMatched:c}}0&&(module.exports={parseRuleValue});
@@ -0,0 +1 @@
1
+ var c=Object.create;var t=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var i=(a,e)=>{for(var o in e)t(a,o,{get:e[o],enumerable:!0})},p=(a,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of g(e))!m.call(a,r)&&r!==o&&t(a,r,{get:()=>e[r],enumerable:!(n=f(e,r))||n.enumerable});return a};var y=(a,e,o)=>(o=a!=null?c(k(a)):{},p(e||!a||!a.__esModule?t(o,"default",{value:a,enumerable:!0}):o,a)),J=a=>p(t({},"__esModule",{value:!0}),a);var d={};i(d,{readPackage:()=>P});module.exports=J(d);var s=y(require("fs-extra"));function P(a="./package.json"){return s.default.readJSONSync(a,{throws:!1})||{}}0&&(module.exports={readPackage});
@@ -0,0 +1 @@
1
+ var o=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var x=(t,r)=>{for(var e in r)o(t,e,{get:r[e],enumerable:!0})},b=(t,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of g(r))!u.call(t,n)&&n!==e&&o(t,n,{get:()=>r[n],enumerable:!(i=c(r,n))||i.enumerable});return t};var f=t=>b(o({},"__esModule",{value:!0}),t);var p={};x(p,{rgbToHex:()=>l});module.exports=f(p);function l(t,r,e){return((1<<24)+(t<<16)+(r<<8)+e).toString(16).slice(1)}0&&(module.exports={rgbToHex});
@@ -1,4 +1,4 @@
1
- declare const defaultBreakpoints: {
1
+ export declare const breakpoints: {
2
2
  '3xs': number;
3
3
  '2xs': number;
4
4
  xs: number;
@@ -10,4 +10,3 @@ declare const defaultBreakpoints: {
10
10
  '3xl': number;
11
11
  '4xl': number;
12
12
  };
13
- export default defaultBreakpoints;
@@ -1,4 +1,6 @@
1
- declare const defaultColors: {
1
+ export declare const colors: {
2
+ black: string;
3
+ white: string;
2
4
  slate: any;
3
5
  gray: any;
4
6
  brown: any;
@@ -19,7 +21,4 @@ declare const defaultColors: {
19
21
  pink: any;
20
22
  crimson: any;
21
23
  red: any;
22
- black: string;
23
- white: string;
24
24
  };
25
- export default defaultColors;
@@ -0,0 +1,7 @@
1
+ import { Rule } from '../rule';
2
+ export declare const functions: Record<string, FunctionConfig>;
3
+ export interface FunctionConfig {
4
+ unit?: string;
5
+ name?: string;
6
+ transform?(this: Rule, value: string): string;
7
+ }
@@ -0,0 +1 @@
1
+ export declare const important = false;
@@ -1,27 +1,59 @@
1
- import MasterCSSRule from '../rule';
2
- import MasterCSS from '../css';
3
- declare const defaultConfig: MasterCSSConfig;
4
- export default defaultConfig;
5
- export interface MasterCSSConfig {
6
- classes?: Record<string, string>;
7
- colors?: Record<string, string | Record<string, string>>;
8
- breakpoints?: Record<string, number>;
9
- mediaQueries?: Record<string, string>;
10
- selectors?: Record<string, string | string[]>;
11
- semantics?: Record<string, string | Record<string, string | number>>;
12
- values?: Record<string, Record<string, string | number>>;
13
- Rules?: typeof MasterCSSRule[];
1
+ import { breakpoints } from './breakpoints';
2
+ import { colors } from './colors';
3
+ import { rootSize } from './root-size';
4
+ import { scope } from './scope';
5
+ import { selectors } from './selectors';
6
+ import { semantics } from './semantics';
7
+ import { themes } from './themes';
8
+ import { rules } from './rules';
9
+ import { override } from './override';
10
+ import { observe } from './observe';
11
+ import { important } from './important';
12
+ import { functions, FunctionConfig } from './functions';
13
+ declare const config: Config;
14
+ export { config, breakpoints, colors, rootSize, scope, selectors, semantics, themes, rules, override, observe, important, functions };
15
+ import type { RuleConfig } from '../rule';
16
+ type Classes = {
17
+ [key: string]: string | Classes;
18
+ };
19
+ type Colors = {
20
+ [key: string]: string | Colors;
21
+ };
22
+ type Breakpoints = {
23
+ [key: string]: number | Breakpoints;
24
+ };
25
+ type MediaQueries = {
26
+ [key: string]: string | MediaQueries;
27
+ };
28
+ type Selectors = {
29
+ [key: string]: string | string[] | Selectors;
30
+ };
31
+ type SemanticsBase = {
32
+ [key: string]: string | number | SemanticsBase;
33
+ };
34
+ type Semantics = {
35
+ [key: string]: SemanticsBase;
36
+ };
37
+ export type Values = {
38
+ [key: string]: string | number | Values;
39
+ };
40
+ export interface Config {
41
+ classes?: Classes;
42
+ colors?: Colors;
43
+ breakpoints?: Breakpoints;
44
+ mediaQueries?: MediaQueries;
45
+ selectors?: Selectors;
46
+ semantics?: Semantics;
47
+ values?: Values;
48
+ rules?: Record<string, RuleConfig>;
14
49
  themes?: Record<string, {
15
- classes?: Record<string, string>;
16
- colors?: Record<string, string | Record<string, string>>;
50
+ classes?: Classes;
51
+ colors?: Colors;
17
52
  }> | string[];
18
53
  rootSize?: number;
19
- validateRule?: (rule: MasterCSSRule, css?: MasterCSS) => boolean;
20
- scheme?: {
21
- preference?: string;
22
- storage?: {
23
- sync?: boolean;
24
- key?: string;
25
- };
26
- };
54
+ scope?: string;
55
+ important?: boolean;
56
+ override?: boolean;
57
+ observe?: boolean;
58
+ functions?: Record<string, FunctionConfig>;
27
59
  }
@@ -0,0 +1 @@
1
+ export declare const observe = true;
@@ -0,0 +1 @@
1
+ export declare const override = false;
@@ -1,2 +1 @@
1
- declare const defaultRootSize = 16;
2
- export default defaultRootSize;
1
+ export declare const rootSize = 16;
@@ -1,3 +1,2 @@
1
- import FontWeight from '../rules/font-weight';
2
- declare const DefaultRules: (typeof FontWeight)[];
3
- export default DefaultRules;
1
+ import type { RuleConfig } from '../rule';
2
+ export declare const rules: Record<string, RuleConfig>;
@@ -0,0 +1 @@
1
+ export declare const scope = "";
@@ -1,4 +1,4 @@
1
- declare const defaultSelectors: {
1
+ export declare const selectors: {
2
2
  '::scrollbar': string;
3
3
  '::scrollbar-button': string;
4
4
  '::scrollbar-thumb': string;
@@ -16,4 +16,3 @@ declare const defaultSelectors: {
16
16
  ':odd': string;
17
17
  ':nth(': string;
18
18
  };
19
- export default defaultSelectors;
@@ -1,45 +1,145 @@
1
- declare const defaultSemantics: {
2
- square: string;
3
- video: string;
4
- rounded: string;
5
- round: string;
6
- hidden: string;
7
- hide: string;
8
- block: string;
9
- table: string;
10
- flex: string;
11
- grid: string;
12
- contents: string;
13
- inline: string;
14
- 'inline-block': string;
15
- 'inline-flex': string;
16
- 'inline-grid': string;
17
- 'inline-table': string;
18
- 'table-cell': string;
19
- 'table-caption': string;
20
- 'flow-root': string;
21
- 'list-item': string;
22
- 'table-row': string;
23
- 'table-column': string;
24
- 'table-row-group': string;
25
- 'table-column-group': string;
26
- 'table-header-group': string;
27
- 'table-footer-group': string;
28
- italic: string;
29
- oblique: string;
30
- isolate: string;
31
- overflow: string;
32
- untouchable: string;
33
- static: string;
34
- fixed: string;
35
- abs: string;
36
- rel: string;
37
- sticky: string;
38
- uppercase: string;
39
- lowercase: string;
40
- capitalize: string;
41
- visible: string;
42
- invisible: string;
1
+ export declare const semantics: {
2
+ square: {
3
+ 'aspect-ratio': string;
4
+ };
5
+ video: {
6
+ 'aspect-ratio': string;
7
+ };
8
+ rounded: {
9
+ 'border-radius': string;
10
+ };
11
+ round: {
12
+ 'border-radius': string;
13
+ };
14
+ hidden: {
15
+ display: string;
16
+ };
17
+ hide: {
18
+ display: string;
19
+ };
20
+ block: {
21
+ display: string;
22
+ };
23
+ table: {
24
+ display: string;
25
+ };
26
+ flex: {
27
+ display: string;
28
+ };
29
+ grid: {
30
+ display: string;
31
+ };
32
+ contents: {
33
+ display: string;
34
+ };
35
+ inline: {
36
+ display: string;
37
+ };
38
+ 'inline-block': {
39
+ display: string;
40
+ };
41
+ 'inline-flex': {
42
+ display: string;
43
+ };
44
+ 'inline-grid': {
45
+ display: string;
46
+ };
47
+ 'inline-table': {
48
+ display: string;
49
+ };
50
+ 'table-cell': {
51
+ display: string;
52
+ };
53
+ 'table-caption': {
54
+ display: string;
55
+ };
56
+ 'flow-root': {
57
+ display: string;
58
+ };
59
+ 'list-item': {
60
+ display: string;
61
+ };
62
+ 'table-row': {
63
+ display: string;
64
+ };
65
+ 'table-column': {
66
+ display: string;
67
+ };
68
+ 'table-row-group': {
69
+ display: string;
70
+ };
71
+ 'table-column-group': {
72
+ display: string;
73
+ };
74
+ 'table-header-group': {
75
+ display: string;
76
+ };
77
+ 'table-footer-group': {
78
+ display: string;
79
+ };
80
+ italic: {
81
+ 'font-style': string;
82
+ };
83
+ oblique: {
84
+ 'font-style': string;
85
+ };
86
+ isolate: {
87
+ isolation: string;
88
+ };
89
+ overflow: {
90
+ overflow: string;
91
+ };
92
+ untouchable: {
93
+ 'pointer-events': string;
94
+ };
95
+ static: {
96
+ position: string;
97
+ };
98
+ fixed: {
99
+ position: string;
100
+ };
101
+ abs: {
102
+ position: string;
103
+ };
104
+ rel: {
105
+ position: string;
106
+ };
107
+ sticky: {
108
+ position: string;
109
+ };
110
+ uppercase: {
111
+ 'text-transform': string;
112
+ };
113
+ lowercase: {
114
+ 'text-transform': string;
115
+ };
116
+ capitalize: {
117
+ 'text-transform': string;
118
+ };
119
+ visible: {
120
+ visibility: string;
121
+ };
122
+ invisible: {
123
+ visibility: string;
124
+ };
125
+ vw: {
126
+ width: string;
127
+ };
128
+ vh: {
129
+ height: string;
130
+ };
131
+ 'max-vw': {
132
+ 'max-width': string;
133
+ };
134
+ 'max-vh': {
135
+ 'max-height': string;
136
+ };
137
+ 'min-vw': {
138
+ 'min-width': string;
139
+ };
140
+ 'min-vh': {
141
+ 'min-height': string;
142
+ };
43
143
  'center-content': {
44
144
  'justify-content': string;
45
145
  'align-items': string;
@@ -79,4 +179,3 @@ declare const defaultSemantics: {
79
179
  overflow: string;
80
180
  };
81
181
  };
82
- export default defaultSemantics;
@@ -1,2 +1 @@
1
- declare const defaultThemes: string[];
2
- export default defaultThemes;
1
+ export declare const themes: string[];
@@ -0,0 +1,5 @@
1
+ export declare const BOX_UNDERNEATH: {
2
+ content: string;
3
+ border: string;
4
+ padding: string;
5
+ };
@@ -0,0 +1,4 @@
1
+ export declare const CONTENT_EXTREMA: {
2
+ min: string;
3
+ max: string;
4
+ };
@@ -0,0 +1 @@
1
+ export declare const SELECTOR_SYMBOLS: string[];
@@ -0,0 +1,7 @@
1
+ declare const SIZING_VALUES: {
2
+ full: string;
3
+ fit: string;
4
+ max: string;
5
+ min: string;
6
+ };
7
+ export { SIZING_VALUES };
@@ -0,0 +1 @@
1
+ export declare const SORTED_SELECTORS: string[];
@@ -1,5 +1,6 @@
1
1
  export declare const START_SYMBOL: {
2
2
  '(': string;
3
3
  '\'': string;
4
+ '"': string;
4
5
  '{': string;
5
6
  };
package/dist/css.d.ts CHANGED
@@ -1,80 +1,71 @@
1
- import type { MasterCSSConfig } from './config';
2
- import MasterCSSRule from './rule';
3
- declare const MutationObserver: ObjectConstructor | {
4
- new (callback: MutationCallback): MutationObserver;
5
- prototype: MutationObserver;
6
- };
7
- export declare type MasterCSSOptions = {
8
- root?: Document | ShadowRoot;
9
- override?: boolean;
10
- observe?: boolean;
11
- };
12
- export default class MasterCSS extends MutationObserver {
13
- #private;
14
- config?: MasterCSSConfig;
15
- options?: MasterCSSOptions;
16
- static instances: MasterCSS[];
17
- static root: MasterCSS;
18
- /**
19
- * 全部 sheet 根據目前蒐集到的所有 DOM class 重新 findAndNew
20
- */
21
- static refresh(config: MasterCSSConfig): void;
1
+ import { Rule, RuleMeta } from './rule';
2
+ import type { Config } from './config';
3
+ export interface MasterCSS {
22
4
  readonly style: HTMLStyleElement;
23
- readonly rules: MasterCSSRule[];
24
- readonly ruleOfClass: Record<string, MasterCSSRule>;
25
- readonly countOfClass: {};
26
5
  readonly host: Element;
27
6
  readonly root: Document | ShadowRoot;
28
- readonly ready: boolean;
29
- semantics: [RegExp, string][];
7
+ semantics: [RegExp, [string, string | Record<string, string>]][];
30
8
  classes: Record<string, string[]>;
31
- colorsThemesMap: Record<string, Record<string, Record<string, string>>>;
9
+ colorThemesMap: Record<string, Record<string, string>>;
32
10
  colorNames: string[];
33
11
  themeNames: string[];
34
- relationThemesMap: Record<string, Record<string, string[]>>;
35
- relations: Record<string, string[]>;
12
+ themeAffectedClassesBy: Record<string, Record<string, string[]>>;
13
+ classesBy: Record<string, string[]>;
36
14
  selectors: Record<string, [RegExp, string[]][]>;
37
- private schemeMQL;
38
- constructor(config?: MasterCSSConfig, options?: MasterCSSOptions);
39
- get storageScheme(): string;
40
- set scheme(scheme: string);
41
- get scheme(): string;
42
- set theme(theme: string);
43
- get theme(): string;
44
- private removeSchemeListener;
45
- private onThemeChange;
46
- private cache;
47
- observe(options?: MutationObserverInit): this;
15
+ values: Record<string, Record<string, string | number>>;
16
+ globalValues: Record<string, string | number>;
17
+ breakpoints: Record<string, number>;
18
+ mediaQueries: Record<string, string>;
19
+ matches: Record<string, RegExp>;
20
+ }
21
+ export declare class MasterCSS {
22
+ config?: Config;
23
+ static root: MasterCSS;
24
+ static config: Config;
25
+ static instances: MasterCSS[];
26
+ static refresh: (config: Config) => void;
27
+ readonly rules: Rule[];
28
+ readonly ruleBy: Record<string, Rule>;
29
+ readonly countBy: {};
30
+ _observer: MutationObserver;
31
+ constructor(config?: Config);
32
+ cache(): void;
33
+ observe(targetRoot: Document | ShadowRoot | null, options?: MutationObserverInit): this;
48
34
  disconnect(): void;
49
35
  /**
50
- * 尋找匹配的 MasterCSSRule 生成實例
36
+ * 比對是否為 Master CSS 的類名語法
51
37
  */
52
- findAndNew(name: string): MasterCSSRule | MasterCSSRule[];
38
+ match(className: string): RuleMeta;
53
39
  /**
54
- * 根據目前蒐集到的所有 DOM class 重新 findAndNew
40
+ * 透過類名 ( 包含 .classes ) 生成 rules[]
55
41
  */
56
- refresh(config: MasterCSSConfig): void;
42
+ create(className: string): Rule[];
43
+ /**
44
+ * 根據蒐集到的所有 DOM class 重新 create
45
+ */
46
+ refresh(config: Config): void;
57
47
  destroy(): void;
58
48
  /**
59
- * 1. where
60
- * 2. normal
61
- * 3. where selectors
62
- * 4. normal selectors
63
- * 5. media where
64
- * 6. media normal
65
- * 7. media selectors
66
- * 8. media width where
67
- * 9. media width
68
- * 10. media width selectors
49
+ * 透過類名來刪除對應的 rules
69
50
  */
70
- insert(rule: MasterCSSRule): void;
71
51
  delete(className: string): void;
72
- findAndInsert(className: string): void;
52
+ /**
53
+ * 依類名插入規則
54
+ */
55
+ insert(eachClassName: string): boolean;
56
+ /**
57
+ * 加工插入規則
58
+ * 1. where
59
+ * 2. normal
60
+ * 3. where selectors
61
+ * 4. normal selectors
62
+ * 5. media where
63
+ * 6. media normal
64
+ * 7. media selectors
65
+ * 8. media width where
66
+ * 9. media width
67
+ * 10. media width selectors
68
+ */
69
+ insertRules(rules: Rule[]): void;
73
70
  get text(): string;
74
71
  }
75
- declare global {
76
- interface Window {
77
- MasterCSS: typeof MasterCSS;
78
- }
79
- }
80
- export {};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{program as c}from"commander";import w from"path";import{readPackage as S}from"../utils/read-package.mjs";import m from"chokidar";import a from"fs";import{defineContent as x}from"../methods/define-content.mjs";import t from"@techor/log";c.command("init").description("Create a Master CSS definition file with configuration").allowUnknownOption().option("--jit","With initialization of the just-in-time program").option("-c, --compiler","With compiler options").option("-o, --override","Override the existing definition file").option("--ext <extension>","Definition extension `ts`, `js`, `mjs`").action(function(l){let{ext:e}=l;if(!e)if(a.existsSync("tsconfig.json"))e="ts";else{let{type:d}=S();d==="module"?e="mjs":e="js"}let i=x({...l,ext:e}),n=`master.css.${e}`,s=a.existsSync(w.join(process.cwd(),n));s?s&&l.override?(a.writeFileSync(n,i),t.ok`**${n}** definition file is overridden`):t.x`**${n}** definition file already exists`:(a.writeFileSync(n,i),t.ok`**${n}** definition file is created`)});c.command("build",{isDefault:!0}).allowUnknownOption().option("-w, --watch","Watch file changed and generate CSS rules.").option("-o, --output <path>","Specify your master CSS file output path","master.css").action(async function({watch:l,output:e}){let i=await new(await import("@master/css-compiler")).default().compile(),n=r=>i.insert(r,a.readFileSync(r,{encoding:"utf-8"})),s=()=>a.writeFileSync(e,i.css.text),d=i.sources;if(console.log(""),t`[sources] ${d}`,l){let r=[],p=async()=>{let{include:o,exclude:y,sources:u}=i.options;o?.length&&g(m.watch(o,{ignored:y,ignoreInitial:!0})),u?.length&&g(m.watch(u,{ignoreInitial:!0})),s(),t.tree(i.options)},h=async o=>{n(o),s()},g=o=>{r.push(o.on("add",h).on("change",h))};await p(),console.log(""),t.t`Start watching source changes`,t.tree(i.options);let f=async()=>{await Promise.all(r.map(o=>o.close())),r.length=0,await i.refresh(),await p()};m.watch([i.resolvedConfigPath],{ignoreInitial:!0}).on("add",f).on("change",f).on("unlink",f)}else s()});var{version:j,name:k,description:v}=S(w.join(__dirname,"../../package.json"));c.name(k);c.description(v);c.version(j);c.parse();
@@ -0,0 +1 @@
1
+ var x={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};export{x as breakpoints};
@@ -0,0 +1 @@
1
+ import{fillColorScale as f}from"../methods/fill-color-scale.mjs";var a={black:"#000000",white:"#ffffff",slate:f({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:f({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:f({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:f({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:f({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:f({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:f({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:f({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:f({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:f({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:f({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:f({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:f({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:f({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:f({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:f({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:f({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:f({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:f({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:f({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};export{a as colors};
@@ -0,0 +1 @@
1
+ var c={$:{name:"var",transform(r){return"--"+r}},calc:{transform(r){let o=e=>e==="+"||e==="-"||e==="*"||e==="/",s="",n,i="",f=!1,u=!1,a=(e,t="",g="")=>{if(n===2&&!u){let l=this.analyzeUnitValue(i,c.calc.unit);l&&(i=l.value+l.unit)}s+=i+t+e+g,n=null,u=!1,i=""};for(let e=0;e<r.length;e++){let t=r[e];if(t==="("||t===")")f=t===")",a(t);else if(t===",")a(t,""," ");else{switch(n){case 1:break;case 2:if(o(t)){a(t," "," ");continue}else/[0-9]/.test(t)||(u=!0);break;default:f&&(s+=" "),isNaN(+t)?o(t)||(n=1):n=2;break}n?i+=t:s+=t}}return a(""),s}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""}};export{c as functions};
@@ -0,0 +1 @@
1
+ var t=!1;export{t as important};
@@ -0,0 +1 @@
1
+ import{breakpoints as e}from"./breakpoints.mjs";import{colors as r}from"./colors.mjs";import{rootSize as s}from"./root-size.mjs";import{scope as o}from"./scope.mjs";import{selectors as t}from"./selectors.mjs";import{semantics as i}from"./semantics.mjs";import{themes as n}from"./themes.mjs";import{rules as m}from"./rules.mjs";import{override as a}from"./override.mjs";import{observe as p}from"./observe.mjs";import{important as l}from"./important.mjs";import{functions as c}from"./functions.mjs";var x={breakpoints:e,colors:r,rootSize:s,scope:o,selectors:t,semantics:i,themes:n,rules:m,override:a,observe:p,important:l,functions:c};export{e as breakpoints,r as colors,x as config,c as functions,l as important,p as observe,a as override,s as rootSize,m as rules,o as scope,t as selectors,i as semantics,n as themes};
@@ -0,0 +1 @@
1
+ var e=!0;export{e as observe};
@@ -0,0 +1 @@
1
+ var e=!1;export{e as override};
@@ -0,0 +1 @@
1
+ var o=16;export{o as rootSize};