@master/css 2.0.0-beta.9 → 2.0.0-beta.91

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 (239) hide show
  1. package/README.md +94 -109
  2. package/dist/apis/render-from-html.d.ts +2 -2
  3. package/dist/apis/render-into-html.d.ts +2 -2
  4. package/dist/apis/render.d.ts +2 -2
  5. package/dist/config/breakpoints.d.ts +2 -2
  6. package/dist/config/colors.d.ts +2 -2
  7. package/dist/config/index.d.ts +38 -16
  8. package/dist/config/root-size.d.ts +2 -2
  9. package/dist/config/rules.d.ts +198 -2
  10. package/dist/config/scheme.d.ts +2 -3
  11. package/dist/config/selectors.d.ts +2 -2
  12. package/dist/config/semantics.d.ts +2 -2
  13. package/dist/config/themes.d.ts +2 -2
  14. package/dist/config/values.d.ts +2 -2
  15. package/dist/constants/start-symbol.d.ts +1 -0
  16. package/dist/css.d.ts +45 -30
  17. package/dist/index.browser.d.ts +1 -0
  18. package/dist/index.browser.js +1 -2
  19. package/dist/index.cjs +1 -2
  20. package/dist/index.d.ts +16 -16
  21. package/dist/index.mjs +1 -2
  22. package/dist/rule.d.ts +26 -26
  23. package/dist/rules/accent-color.d.ts +3 -4
  24. package/dist/rules/align-content.d.ts +4 -5
  25. package/dist/rules/align-items.d.ts +4 -5
  26. package/dist/rules/align-self.d.ts +4 -5
  27. package/dist/rules/animation-delay.d.ts +4 -5
  28. package/dist/rules/animation-direction.d.ts +4 -5
  29. package/dist/rules/animation-duration.d.ts +4 -5
  30. package/dist/rules/animation-fill-mode.d.ts +4 -5
  31. package/dist/rules/animation-iteration-count.d.ts +4 -5
  32. package/dist/rules/animation-name.d.ts +4 -5
  33. package/dist/rules/animation-play-state.d.ts +4 -5
  34. package/dist/rules/animation-timing-function.d.ts +4 -5
  35. package/dist/rules/animation.d.ts +3 -4
  36. package/dist/rules/appearance.d.ts +3 -4
  37. package/dist/rules/aspect-ratio.d.ts +6 -0
  38. package/dist/rules/backdrop-filter.d.ts +7 -7
  39. package/dist/rules/background-attachment.d.ts +4 -5
  40. package/dist/rules/background-blend-mode.d.ts +3 -4
  41. package/dist/rules/background-clip.d.ts +4 -5
  42. package/dist/rules/background-color.d.ts +3 -4
  43. package/dist/rules/background-image.d.ts +4 -5
  44. package/dist/rules/background-origin.d.ts +4 -5
  45. package/dist/rules/background-position.d.ts +4 -5
  46. package/dist/rules/background-repeat.d.ts +4 -5
  47. package/dist/rules/background-size.d.ts +4 -5
  48. package/dist/rules/background.d.ts +4 -5
  49. package/dist/rules/border-collapse.d.ts +4 -5
  50. package/dist/rules/border-color.d.ts +5 -4
  51. package/dist/rules/border-image-outset.d.ts +3 -4
  52. package/dist/rules/border-image-repeat.d.ts +4 -5
  53. package/dist/rules/border-image-slice.d.ts +3 -4
  54. package/dist/rules/border-image-source.d.ts +4 -5
  55. package/dist/rules/border-image-width.d.ts +4 -5
  56. package/dist/rules/border-image.d.ts +3 -4
  57. package/dist/rules/border-radius.d.ts +5 -4
  58. package/dist/rules/border-spacing.d.ts +3 -4
  59. package/dist/rules/border-style.d.ts +5 -4
  60. package/dist/rules/border-width.d.ts +5 -4
  61. package/dist/rules/border.d.ts +5 -4
  62. package/dist/rules/box-decoration-break.d.ts +4 -5
  63. package/dist/rules/box-shadow.d.ts +4 -5
  64. package/dist/rules/box-sizing.d.ts +4 -5
  65. package/dist/rules/break-after.d.ts +3 -4
  66. package/dist/rules/break-before.d.ts +3 -4
  67. package/dist/rules/break-inside.d.ts +3 -4
  68. package/dist/rules/caret-color.d.ts +3 -4
  69. package/dist/rules/clear.d.ts +3 -4
  70. package/dist/rules/clip-path.d.ts +4 -5
  71. package/dist/rules/color.d.ts +4 -5
  72. package/dist/rules/column-span.d.ts +4 -5
  73. package/dist/rules/columns.d.ts +4 -5
  74. package/dist/rules/contain.d.ts +3 -4
  75. package/dist/rules/content.d.ts +3 -4
  76. package/dist/rules/counter-increment.d.ts +3 -4
  77. package/dist/rules/counter-reset.d.ts +5 -0
  78. package/dist/rules/cursor.d.ts +3 -4
  79. package/dist/rules/cx.d.ts +3 -4
  80. package/dist/rules/cy.d.ts +3 -4
  81. package/dist/rules/direction.d.ts +3 -4
  82. package/dist/rules/display.d.ts +4 -5
  83. package/dist/rules/fill.d.ts +3 -4
  84. package/dist/rules/filter.d.ts +7 -7
  85. package/dist/rules/flex-basis.d.ts +3 -4
  86. package/dist/rules/flex-direction.d.ts +4 -5
  87. package/dist/rules/flex-grow.d.ts +3 -4
  88. package/dist/rules/flex-shrink.d.ts +3 -4
  89. package/dist/rules/flex-wrap.d.ts +4 -5
  90. package/dist/rules/flex.d.ts +3 -4
  91. package/dist/rules/float.d.ts +3 -4
  92. package/dist/rules/font-family.d.ts +4 -5
  93. package/dist/rules/font-feature-settings.d.ts +5 -0
  94. package/dist/rules/font-size.d.ts +4 -5
  95. package/dist/rules/font-smoothing.d.ts +5 -4
  96. package/dist/rules/font-style.d.ts +4 -5
  97. package/dist/rules/font-variant-numeric.d.ts +4 -5
  98. package/dist/rules/font-weight.d.ts +4 -5
  99. package/dist/rules/font.d.ts +4 -5
  100. package/dist/rules/gap.d.ts +5 -4
  101. package/dist/rules/grid-area.d.ts +3 -4
  102. package/dist/rules/grid-auto-columns.d.ts +4 -5
  103. package/dist/rules/grid-auto-flow.d.ts +4 -5
  104. package/dist/rules/grid-auto-rows.d.ts +3 -4
  105. package/dist/rules/grid-column-end.d.ts +4 -5
  106. package/dist/rules/grid-column-start.d.ts +4 -5
  107. package/dist/rules/grid-column.d.ts +4 -5
  108. package/dist/rules/grid-columns.d.ts +4 -5
  109. package/dist/rules/grid-row-end.d.ts +3 -4
  110. package/dist/rules/grid-row-start.d.ts +3 -4
  111. package/dist/rules/grid-row.d.ts +4 -5
  112. package/dist/rules/grid-rows.d.ts +3 -4
  113. package/dist/rules/grid-template-areas.d.ts +3 -4
  114. package/dist/rules/grid-template-columns.d.ts +4 -5
  115. package/dist/rules/grid-template-rows.d.ts +3 -4
  116. package/dist/rules/grid-template.d.ts +3 -4
  117. package/dist/rules/grid.d.ts +3 -4
  118. package/dist/rules/group.d.ts +10 -6
  119. package/dist/rules/height.d.ts +4 -5
  120. package/dist/rules/inset.d.ts +4 -5
  121. package/dist/rules/isolation.d.ts +3 -4
  122. package/dist/rules/justify-content.d.ts +4 -5
  123. package/dist/rules/justify-items.d.ts +4 -5
  124. package/dist/rules/justify-self.d.ts +4 -5
  125. package/dist/rules/letter-spacing.d.ts +4 -5
  126. package/dist/rules/line-clamp.d.ts +3 -4
  127. package/dist/rules/line-height.d.ts +4 -5
  128. package/dist/rules/lines.d.ts +5 -4
  129. package/dist/rules/list-style-image.d.ts +4 -5
  130. package/dist/rules/list-style-position.d.ts +4 -5
  131. package/dist/rules/list-style-type.d.ts +4 -5
  132. package/dist/rules/list-style.d.ts +3 -4
  133. package/dist/rules/margin.d.ts +5 -4
  134. package/dist/rules/mask-image.d.ts +3 -4
  135. package/dist/rules/max-height.d.ts +4 -5
  136. package/dist/rules/max-wh.d.ts +12 -0
  137. package/dist/rules/max-width.d.ts +4 -5
  138. package/dist/rules/min-height.d.ts +4 -5
  139. package/dist/rules/min-wh.d.ts +12 -0
  140. package/dist/rules/min-width.d.ts +4 -5
  141. package/dist/rules/mix-blend-mode.d.ts +4 -5
  142. package/dist/rules/object-fit.d.ts +4 -5
  143. package/dist/rules/object-position.d.ts +4 -5
  144. package/dist/rules/opacity.d.ts +3 -4
  145. package/dist/rules/order.d.ts +4 -5
  146. package/dist/rules/outline-color.d.ts +3 -4
  147. package/dist/rules/outline-offset.d.ts +3 -4
  148. package/dist/rules/outline-style.d.ts +4 -5
  149. package/dist/rules/outline-width.d.ts +4 -5
  150. package/dist/rules/outline.d.ts +3 -4
  151. package/dist/rules/overflow.d.ts +5 -4
  152. package/dist/rules/overscroll-behavior.d.ts +5 -4
  153. package/dist/rules/padding.d.ts +5 -4
  154. package/dist/rules/place-content.d.ts +3 -4
  155. package/dist/rules/place-items.d.ts +3 -4
  156. package/dist/rules/place-self.d.ts +3 -4
  157. package/dist/rules/pointer-events.d.ts +3 -4
  158. package/dist/rules/position.d.ts +3 -4
  159. package/dist/rules/quotes.d.ts +3 -4
  160. package/dist/rules/resize.d.ts +3 -4
  161. package/dist/rules/rx.d.ts +3 -4
  162. package/dist/rules/ry.d.ts +3 -4
  163. package/dist/rules/scroll-behavior.d.ts +3 -4
  164. package/dist/rules/scroll-margin.d.ts +5 -4
  165. package/dist/rules/scroll-padding.d.ts +5 -4
  166. package/dist/rules/scroll-snap-align.d.ts +4 -5
  167. package/dist/rules/scroll-snap-stop.d.ts +4 -5
  168. package/dist/rules/scroll-snap-type.d.ts +4 -5
  169. package/dist/rules/shape-image-threshold.d.ts +3 -4
  170. package/dist/rules/shape-margin.d.ts +4 -5
  171. package/dist/rules/shape-outside.d.ts +4 -5
  172. package/dist/rules/spacing.d.ts +5 -4
  173. package/dist/rules/stroke-dasharray.d.ts +3 -4
  174. package/dist/rules/stroke-dashoffset.d.ts +3 -4
  175. package/dist/rules/stroke-width.d.ts +4 -5
  176. package/dist/rules/stroke.d.ts +3 -4
  177. package/dist/rules/table-layout.d.ts +3 -4
  178. package/dist/rules/text-align.d.ts +4 -5
  179. package/dist/rules/text-decoration-color.d.ts +3 -4
  180. package/dist/rules/text-decoration-line.d.ts +4 -5
  181. package/dist/rules/text-decoration-style.d.ts +4 -5
  182. package/dist/rules/text-decoration-thickness.d.ts +4 -5
  183. package/dist/rules/text-decoration.d.ts +4 -5
  184. package/dist/rules/text-fill-color.d.ts +5 -4
  185. package/dist/rules/text-indent.d.ts +3 -4
  186. package/dist/rules/text-orientation.d.ts +4 -5
  187. package/dist/rules/text-overflow.d.ts +4 -5
  188. package/dist/rules/text-rendering.d.ts +4 -5
  189. package/dist/rules/text-shadow.d.ts +3 -4
  190. package/dist/rules/text-size.d.ts +5 -4
  191. package/dist/rules/text-stroke-color.d.ts +5 -4
  192. package/dist/rules/text-stroke-width.d.ts +5 -4
  193. package/dist/rules/text-stroke.d.ts +5 -4
  194. package/dist/rules/text-transform.d.ts +4 -5
  195. package/dist/rules/text-underline-offset.d.ts +3 -4
  196. package/dist/rules/touch-action.d.ts +3 -4
  197. package/dist/rules/transform-box.d.ts +4 -5
  198. package/dist/rules/transform-origin.d.ts +4 -5
  199. package/dist/rules/transform-style.d.ts +4 -5
  200. package/dist/rules/transform.d.ts +6 -7
  201. package/dist/rules/transition-delay.d.ts +4 -5
  202. package/dist/rules/transition-duration.d.ts +4 -5
  203. package/dist/rules/transition-property.d.ts +4 -5
  204. package/dist/rules/transition-timing-function.d.ts +4 -5
  205. package/dist/rules/transition.d.ts +3 -4
  206. package/dist/rules/user-drag.d.ts +3 -4
  207. package/dist/rules/user-select.d.ts +3 -4
  208. package/dist/rules/variable.d.ts +5 -4
  209. package/dist/rules/vertical-align.d.ts +4 -5
  210. package/dist/rules/visibility.d.ts +3 -4
  211. package/dist/rules/wh.d.ts +12 -0
  212. package/dist/rules/white-space.d.ts +3 -4
  213. package/dist/rules/width.d.ts +4 -5
  214. package/dist/rules/will-change.d.ts +3 -4
  215. package/dist/rules/word-break.d.ts +3 -4
  216. package/dist/rules/word-spacing.d.ts +3 -4
  217. package/dist/rules/writing-mode.d.ts +4 -5
  218. package/dist/rules/x.d.ts +3 -4
  219. package/dist/rules/y.d.ts +3 -4
  220. package/dist/rules/z-index.d.ts +4 -5
  221. package/dist/utils/analyze-unit-value.d.ts +4 -0
  222. package/dist/utils/analyze-value-token.d.ts +3 -0
  223. package/dist/utils/delay.d.ts +2 -0
  224. package/dist/utils/is-plain-object.d.ts +1 -1
  225. package/dist/utils/normalize-css-calc-text.d.ts +1 -1
  226. package/dist/utils/parse-value-unit.d.ts +2 -2
  227. package/dist/utils/parse-value.d.ts +1 -2
  228. package/dist/utils/test-css.d.ts +3 -0
  229. package/package.json +1 -162
  230. package/LICENSE +0 -21
  231. package/dist/apis/configure.d.ts +0 -2
  232. package/dist/apis/extend.d.ts +0 -5
  233. package/dist/apis/init.d.ts +0 -3
  234. package/dist/index.browser.js.map +0 -7
  235. package/dist/index.cjs.map +0 -7
  236. package/dist/index.mjs.map +0 -7
  237. package/dist/rules/aspect-radio.d.ts +0 -7
  238. package/dist/rules/placement.d.ts +0 -8
  239. package/readme.md +0 -118
package/README.md CHANGED
@@ -1,118 +1,103 @@
1
- <br><br>
1
+ <br>
2
2
  <div align="center">
3
3
 
4
4
  <p align="center">
5
- <img src="https://raw.githubusercontent.com/master-co/package/document/images/logo-and-text.svg" alt="logo" width="142">
5
+ <a href="https://css.master.co">
6
+ <picture>
7
+ <source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/33840671/201701649-3bb7d698-abec-4d5f-ac30-ccc4d7bafcd4.svg">
8
+ <source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/33840671/201703010-77bf2373-9899-40cc-98f5-30cf9b546941.svg">
9
+ <img alt="Master CSS" src="https://user-images.githubusercontent.com/33840671/201703010-77bf2373-9899-40cc-98f5-30cf9b546941.svg" width="100%">
10
+ </picture>
11
+ </a>
6
12
  </p>
13
+ <p align="center"><!-- package.description -->A Virtual CSS language with enhanced syntax ~15KB<!----></p>
14
+
7
15
  <p align="center">
8
- <b><!-- name -->CSS<!----></b>
16
+ <a aria-label="GitHub release (latest by date including pre-releases)" href="https://github.com/master-co/css/releases">
17
+ <picture>
18
+ <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/v/release/master-co/css?include_prereleases&color=212022&label=&style=for-the-badge&logo=github&logoColor=fff">
19
+ <source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/github/v/release/master-co/css?include_prereleases&color=f6f7f8&label=&style=for-the-badge&logo=github&logoColor=%23000">
20
+ <img alt="NPM Version" src="https://img.shields.io/github/v/release/master-co/css?include_prereleases&color=f6f7f8&label=&style=for-the-badge&logo=github">
21
+ </picture>
22
+ </a>
23
+ <a aria-label="NPM Package" href="https://www.npmjs.com/package/@master/css">
24
+ <picture>
25
+ <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/dm/@master/css?color=212022&label=%20&logo=npm&style=for-the-badge">
26
+ <source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/npm/dm/@master/css?color=f6f7f8&label=%20&logo=npm&style=for-the-badge">
27
+ <img alt="NPM package ( download / month )" src="https://img.shields.io/npm/dm/@master/css?color=f6f7f8&label=%20&logo=npm&style=for-the-badge">
28
+ </picture>
29
+ </a>
30
+ <a aria-label="JSDelivr" href="https://www.jsdelivr.com/package/npm/@master/css">
31
+ <picture>
32
+ <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/jsdelivr/npm/hm/@master/css?color=212022&label=%20&logo=jsdelivr&style=for-the-badge">
33
+ <source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/jsdelivr/npm/hm/@master/css?color=f6f7f8&label=%20&logo=jsdelivr&style=for-the-badge">
34
+ <img alt="JSDelivr hits (npm scoped)" src="https://img.shields.io/jsdelivr/npm/hm/@master/css?color=f6f7f8&label=%20&logo=jsdelivr&style=for-the-badge">
35
+ </picture>
36
+ </a>
37
+ <a aria-label="Discord Community" href="https://discord.gg/sZNKpAAAw6">
38
+ <picture>
39
+ <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/discord/917780624314613760?color=212022&label=%20&logo=discord&style=for-the-badge">
40
+ <source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/discord/917780624314613760?color=f6f7f8&label=%20&logo=discord&style=for-the-badge">
41
+ <img alt="Discord online" src="https://img.shields.io/discord/917780624314613760?color=f6f7f8&label=%20&logo=discord&style=for-the-badge">
42
+ </picture>
43
+ </a>
44
+ <a aria-label="Follow @mastercorg" href="https://twitter.com/mastercorg">
45
+ <picture>
46
+ <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/static/v1?label=%20&message=twitter&color=212022&logo=twitter&style=for-the-badge">
47
+ <source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/static/v1?label=%20&message=twitter&color=f6f7f8&logo=twitter&style=for-the-badge">
48
+ <img alt="Follow @mastercorg" src="https://img.shields.io/static/v1?label=%20&message=twitter&color=f6f7f8&logo=twitter&style=for-the-badge">
49
+ </picture>
50
+ </a>
51
+ <a aria-label="Github Actions" href="https://github.com/1aron/repo/actions/workflows/release.yml">
52
+ <picture>
53
+ <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/master-co/css/release.yml?branch=beta&label=%20&message=twitter&color=212022&logo=githubactions&style=for-the-badge">
54
+ <source media="(prefers-color-scheme: light)" srcset="https://img.shields.io/github/actions/workflow/status/master-co/css/release.yml?branch=beta&label=%20&message=twitter&color=f6f7f8&logo=githubactions&style=for-the-badge&logoColor=%23000">
55
+ <img alt="Github release actions" src="https://img.shields.io/github/actions/workflow/status/master-co/css/release.yml?branch=beta&label=%20&message=twitter&color=f6f7f8&logo=githubactions&style=for-the-badge&logoColor=%23000">
56
+ </picture>
57
+ </a>
9
58
  </p>
10
- <p align="center"><!-- package.description -->A Virtual CSS language with enhanced syntax. ~13KB<!----></p>
11
-
12
- [![MIT License](https://flat.badgen.net/github/license/master-co/css?color=yellow)](https://github.com/master-co/css/blob/main/LICENSE)
13
- [![Latest Release](https://flat.badgen.net/npm/v/@master/css?icon=npm&label&color=yellow)](https://www.npmjs.com/package/@master/css)
14
- [![Bundle Size](https://flat.badgen.net/bundlephobia/minzip/@master/css?icon=packagephobia&label&color=yellow)](https://bundlephobia.com/package/@master/css 'gzip bundle size (including dependencies)')
15
- [![Package Size](https://flat.badgen.net/badgesize/brotli/https://cdn.jsdelivr.net/npm/@master/css?icon=jsdelivr&label&color=yellow)](https://unpkg.com/@master/css 'brotli package size (without dependencies)')
16
- [![Documentation](https://flat.badgen.net/badge/icon/Documentation?icon=awesome&label&color=yellow)](https://css.master.co)
17
- [![Github](https://flat.badgen.net/badge/icon/master-co%2Fcss?icon=github&label&color=yellow)](https://github.com/master-co/css)
18
- [![Discord](https://flat.badgen.net/badge/icon/discord?icon=discord&label&color=yellow)](https://discord.gg/sZNKpAAAw6)
19
- [![CI](https://flat.badgen.net/github/status/master-co/css/main/ci/circleci?icon=circleci)](https://circleci.com/gh/master-co/workflows/css/tree/main)
20
59
 
21
60
  </div>
22
61
 
23
- ![image](https://raw.githubusercontent.com/master-co/css-language-service/alpha/images/cover.jpg)
24
-
25
- - Visit [css.master.co](https://css.master.co) for full documentation.
26
- - Browse our [discussion community](https://github.com/master-co/css/discussions).
27
- - Join our [discord channel](https://discord.gg/sZNKpAAAw6).
28
- - Follow our [twitter](https://twitter.com/mastercorg).
29
-
30
- ##### On this page
31
-
32
- - [Features](#features)
33
- - [Why Master CSS](#why-master-css)
34
- - [Quick Start](#quick-start)
35
- - [Developer Tools](#developer-tools)
36
- - [Inspiration](#inspiration)
37
- - [Related](#related)
38
-
39
- # Features
40
- Let's have a quick overview of the **groundbreaking features** of Master CSS:
41
-
42
- - 🔥 A whole new **CSS language** instead of utilities/libraries.
43
- - 🔓 Write CSS properties, functions, selectors and even media queries directly in `class="..."`.
44
- - 🧠 Automatically generate corresponding CSS rules based on class names.
45
- - 💖 With enhanced CSS syntax, you can **build UIs with less code**.
46
- - ⚡️ Directly use **performant JIT in production**. **~13KB**
47
- - 🧬 [An enhanced and structured CSS syntax](https://docs.master.co/css/syntax-tutorial) for class names.
48
- - 🌈 [A forerunner to syntax highlighting](https://docs.master.co/css/why-master-css#a-forerunner-to-syntax-highlighting) for class names.
49
- - ✨ [Hybrid Rendering](https://docs.master.co/css/hybrid-rendering) that allows you to **pre-generate CSS from HTML on the server side**, and then continue to **use JIT on the client side**.
50
- - ✨ [Group Styles](https://docs.master.co/css/syntax-tutorial#group-styles) that allows you to extract the same selectors and media query styles and make it short.
51
- - ✨ [Reactive Styles](https://docs.master.co/css/syntax-tutorial#style-an-element-based-on-target-state) that allows you to style an element based on parent/sibling state.
52
-
53
- To learn more, check out the [documentation](https://docs.master.co/css/why-master-css).
54
-
55
- # [Why Master CSS](https://docs.master.co/css/why-master-css)
56
- A brief introduction starts by giving you an understanding of **markup-driven CSS**.
57
-
58
- 😐 Traditional
59
- ```html
60
- <style>
61
- .home-section {
62
- background-color: blue;
63
- padding: 2rem;
64
- text-align: center;
65
- }
66
-
67
- .home-section:hover {
68
- background-color: red;
69
- }
70
-
71
- @media (min-width: 1024px) {
72
- .home-section {
73
- padding: 3rem;
74
- }
75
- }
76
- </style>
77
-
78
- <section class="home-section">...</section>
79
- ```
80
- 🤩 Now, refactor it with a whole new CSS language to make it easier. ↓ 86% code
81
- ```html
82
- <section class="bg:blue bg:red:hover p:32 p:48@md text:center">...</section>
83
- ```
84
- To learn more, check out the [Why Master CSS](https://docs.master.co/css/why-master-css) documentation.
85
-
86
- # Quick Start
87
- This is a quick start guide, check out the [full setup guide](https://docs.master.co/css/setup) to integrate with your build tools and frameworks.
88
-
89
- ```shell
90
- npm install @master/css
91
- ```
92
- ```js
93
- import '@master/css';
94
- ```
95
- or use a CDN
96
- ```html
97
- <script src="https://cdn.master.co/css"></script>
98
- ```
99
- Now, start styling HTML with Master CSS. 🎉
100
- ```html
101
- <h1 class="font:40 font:heavy italic m:50 text:center">Hello World</h1>
102
- ```
103
- To learn more, check out the [Syntax tutorial](https://docs.master.co/css/syntax-tutorial) documentation.
104
-
105
- # Developer Tools
106
- - [Master CSS Language Service](https://marketplace.visualstudio.com/items?itemName=masterco.master-css-language-service) - A Visual Studio Code extension for Master CSS. Provides code-completion and syntax highlighting.
107
-
108
- # Inspiration
109
- Some of our core concepts and designs are inspired by these giants.
110
- - __Language__ - Master is a language, but it was originally inspired by [ACSS](https://acss.io/)'s concept of atomic classes.
111
- - __Virtual CSS__ - Difference algorithms, virtual models, etc. are inspired by [Virtual DOM](https://reactjs.org/docs/faq-internals.html).
112
-
113
- # Related
114
- - [@master/css.react](https://github.com/master-co/css.react) - React hooks for Master CSS
115
- - [@master/css-compiler](https://github.com/master-co/css-compiler) - Compile Master CSS ahead of time with zero-configuration integration with build tools
116
- - [@master/normal.css](https://github.com/master-co/normal.css) - Normalize browser's styles. ~1KB
117
- - [@master/keyframes.css](https://github.com/master-co/keyframes.css) - Simple and useful CSS keyframes. ~0.4KB
118
- - [@master/style-element.react](https://github.com/master-co/style-element.react) - Quickly create styled React elements with conditional class names. ~800B
62
+ ## Documentation
63
+ Visit [css.master.co](https://css.master.co) to view the full documentation
64
+
65
+ ## Getting Started
66
+ Check out the [guides](https://css.master.co/docs/guides) to get started with Master CSS
67
+
68
+ ## Ecosystem
69
+ We've built various integrations and tools around Master CSS:
70
+
71
+ ##### Build Tools
72
+
73
+ - [Vite Plugin](https://github.com/master-co/css/tree/beta/packages/vite) - A vite plugin for integrating Master CSS AOT compilation
74
+ - [Webpack Plugin](https://github.com/master-co/css/tree/beta/packages/webpack) - A webpack plugin for integrating Master CSS AOT compilation
75
+ - [Compiler](https://github.com/master-co/css/tree/beta/packages/compiler) - The ahead-of-time compiler of Master CSS
76
+
77
+ ##### Frameworks
78
+ - [React](https://github.com/master-co/css/tree/beta/packages/react) - React hooks for Master CSS
79
+ - [Style Element](https://github.com/master-co/style-element) <sub><sup>React, Vue, ...</sup></sub> - Create reusable style elements using class names in one-linear.
80
+
81
+ ##### Native Plugins
82
+
83
+ - [Normal CSS](https://github.com/master-co/css/tree/beta/packages/normal.css) - Normalize the browser's styles
84
+ - [Keyframes CSS](https://github.com/master-co/css/tree/beta/packages/keyframes.css) - Simple and useful CSS keyframes
85
+
86
+ ##### Extensions
87
+ - [Language Service](https://github.com/master-co/css/tree/beta/packages/language-service) <sub><sup>Visual Studio Code</sup></sub> - Includes code completion, syntax highlighting, CSS hover preview, and inline color decorators
88
+
89
+ ## Community
90
+ The Master CSS community can be found here:
91
+
92
+ - [Discuss on GitHub](https://github.com/master-co/css/discussions) - Ask questions, voice ideas, and do any other discussion
93
+ - [Join our Discord Server](https://discord.com/invite/sZNKpAAAw6) - Casually chat with other people using the language <sup><sub>✓ 中文</sub></sup>
94
+
95
+ <sub>Our [《 Code of Conduct 》](https://github.com/master-co/css/blob/main/CODE_OF_CONDUCT.md) applies to all Master CSS community channels.</sub>
96
+
97
+ ## Contributing
98
+ Please see our [CONTRIBUTING.md](https://github.com/master-co/css/blob/beta/.github/CONTRIBUTING.md) for workflow.
99
+
100
+ ## Inspiration
101
+ Some of the core concepts and designs are inspired by these giants.
102
+ - The concept of enhanced syntax is inspired by [SASS](https://sass-lang.com/) and [TypeScript](https://www.typescriptlang.org/)
103
+ - The concept of Virtual CSS is inspired by the [Virtual DOM](https://reactjs.org/docs/faq-internals.html)
@@ -1,3 +1,3 @@
1
- import MasterCSS from '../css';
1
+ import type { Config } from '../config';
2
2
  import '../polyfills/css-escape';
3
- export default function renderFromHTML(html: string, css?: MasterCSS): string;
3
+ export default function renderFromHTML(html: string, config?: Config): string;
@@ -1,3 +1,3 @@
1
- import MasterCSS from '../css';
1
+ import type { Config } from '../config';
2
2
  import '../polyfills/css-escape';
3
- export default function renderIntoHTML(html: string, css?: MasterCSS): string;
3
+ export default function renderIntoHTML(html: string, config?: Config): string;
@@ -1,3 +1,3 @@
1
- import MasterCSS from '../css';
1
+ import type { Config } from '../config';
2
2
  import '../polyfills/css-escape';
3
- export default function render(classes: string[], css?: MasterCSS): string;
3
+ export default function render(classes: string[], config?: Config): string;
@@ -1,4 +1,4 @@
1
- declare const defaultBreakpoints: {
1
+ declare const breakpoints: {
2
2
  '3xs': number;
3
3
  '2xs': number;
4
4
  xs: number;
@@ -10,4 +10,4 @@ declare const defaultBreakpoints: {
10
10
  '3xl': number;
11
11
  '4xl': number;
12
12
  };
13
- export default defaultBreakpoints;
13
+ export default breakpoints;
@@ -1,4 +1,4 @@
1
- declare const defaultColors: {
1
+ declare const colors: {
2
2
  slate: any;
3
3
  gray: any;
4
4
  brown: any;
@@ -22,4 +22,4 @@ declare const defaultColors: {
22
22
  black: string;
23
23
  white: string;
24
24
  };
25
- export default defaultColors;
25
+ export default colors;
@@ -1,22 +1,44 @@
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 Rules from './rules';
2
+ import Rule from '../rule';
3
+ declare const config: Config;
4
+ export default config;
5
+ type Classes = {
6
+ [key: string]: string | Classes;
7
+ };
8
+ type Colors = {
9
+ [key: string]: string | Colors;
10
+ };
11
+ type Breakpoints = {
12
+ [key: string]: number | Breakpoints;
13
+ };
14
+ type MediaQueries = {
15
+ [key: string]: string | MediaQueries;
16
+ };
17
+ type Selectors = {
18
+ [key: string]: string | string[] | Selectors;
19
+ };
20
+ type Semantics = {
21
+ [key: string]: string | number | Record<string, string | number | Semantics>;
22
+ };
23
+ type Values = {
24
+ [key: string]: string | number | Values;
25
+ };
26
+ export interface Config {
27
+ classes?: Classes;
28
+ colors?: Colors;
29
+ breakpoints?: Breakpoints;
30
+ mediaQueries?: MediaQueries;
31
+ selectors?: Selectors;
32
+ semantics?: Semantics;
33
+ values?: {
34
+ [id in typeof Rules[number]['id']]?: Values;
35
+ } & Values;
36
+ Rules?: typeof Rule[];
14
37
  themes?: Record<string, {
15
- classes?: Record<string, string>;
16
- colors?: Record<string, string | Record<string, string>>;
38
+ classes?: Classes;
39
+ colors?: Colors;
17
40
  }> | string[];
18
41
  rootSize?: number;
19
- validateRule?: (rule: MasterCSSRule, css?: MasterCSS) => boolean;
20
42
  scheme?: {
21
43
  preference?: string;
22
44
  storage?: {
@@ -1,2 +1,2 @@
1
- declare const defaultRootSize = 16;
2
- export default defaultRootSize;
1
+ declare const rootSize = 16;
2
+ export default rootSize;
@@ -1,3 +1,199 @@
1
1
  import FontWeight from '../rules/font-weight';
2
- declare const DefaultRules: (typeof FontWeight)[];
3
- export default DefaultRules;
2
+ import FontFamily from '../rules/font-family';
3
+ import FontSize from '../rules/font-size';
4
+ import Spacing from '../rules/spacing';
5
+ import Width from '../rules/width';
6
+ import Height from '../rules/height';
7
+ import MinWidth from '../rules/min-width';
8
+ import MinHeight from '../rules/min-height';
9
+ import LetterSpacing from '../rules/letter-spacing';
10
+ import FontSmoothing from '../rules/font-smoothing';
11
+ import FontStyle from '../rules/font-style';
12
+ import FontVariantNumeric from '../rules/font-variant-numeric';
13
+ import FontFeatureSettings from '../rules/font-feature-settings';
14
+ import LineHeight from '../rules/line-height';
15
+ import ObjectFit from '../rules/object-fit';
16
+ import ObjectPosition from '../rules/object-position';
17
+ import TextAlign from '../rules/text-align';
18
+ import TextDecoration from '../rules/text-decoration';
19
+ import TextTransform from '../rules/text-transform';
20
+ import VerticalAlign from '../rules/vertical-align';
21
+ import Lines from '../rules/lines';
22
+ import TransformOrigin from '../rules/transform-origin';
23
+ import TransformStyle from '../rules/transform-style';
24
+ import TransformBox from '../rules/transform-box';
25
+ import Transform from '../rules/transform';
26
+ import Transition from '../rules/transition';
27
+ import TransitionDelay from '../rules/transition-delay';
28
+ import TransitionDuration from '../rules/transition-duration';
29
+ import TransitionProperty from '../rules/transition-property';
30
+ import TransitionTimingFunction from '../rules/transition-timing-function';
31
+ import MaxHeight from '../rules/max-height';
32
+ import MaxWidth from '../rules/max-width';
33
+ import Display from '../rules/display';
34
+ import BoxSizing from '../rules/box-sizing';
35
+ import Opacity from '../rules/opacity';
36
+ import Visibility from '../rules/visibility';
37
+ import Clear from '../rules/clear';
38
+ import Float from '../rules/float';
39
+ import Isolation from '../rules/isolation';
40
+ import Overflow from '../rules/overflow';
41
+ import OverscrollBehavior from '../rules/overscroll-behavior';
42
+ import ZIndex from '../rules/z-index';
43
+ import AnimationDelay from '../rules/animation-delay';
44
+ import AnimationDirection from '../rules/animation-direction';
45
+ import AnimationFillMode from '../rules/animation-fill-mode';
46
+ import AnimationIterationCount from '../rules/animation-iteration-count';
47
+ import AnimationName from '../rules/animation-name';
48
+ import AnimationPlayState from '../rules/animation-play-state';
49
+ import AnimationTimingFunction from '../rules/animation-timing-function';
50
+ import Animation from '../rules/animation';
51
+ import BorderColor from '../rules/border-color';
52
+ import BorderRadius from '../rules/border-radius';
53
+ import BorderStyle from '../rules/border-style';
54
+ import BorderWidth from '../rules/border-width';
55
+ import Border from '../rules/border';
56
+ import BackgroundAttachment from '../rules/background-attachment';
57
+ import BackgroundBlendMode from '../rules/background-blend-mode';
58
+ import BackgroundClip from '../rules/background-clip';
59
+ import BackgroundColor from '../rules/background-color';
60
+ import BackgroundOrigin from '../rules/background-origin';
61
+ import BackgroundPosition from '../rules/background-position';
62
+ import BackgroundRepeat from '../rules/background-repeat';
63
+ import BackgroundSize from '../rules/background-size';
64
+ import BackgroundImage from '../rules/background-image';
65
+ import Background from '../rules/background';
66
+ import MixBlendMode from '../rules/mix-blend-mode';
67
+ import Position from '../rules/position';
68
+ import BackdropFilter from '../rules/backdrop-filter';
69
+ import Fill from '../rules/fill';
70
+ import Stroke from '../rules/stroke';
71
+ import StrokeWidth from '../rules/stroke-width';
72
+ import Filter from '../rules/filter';
73
+ import Cursor from '../rules/cursor';
74
+ import PointerEvents from '../rules/pointer-events';
75
+ import Resize from '../rules/resize';
76
+ import TouchAction from '../rules/touch-action';
77
+ import UserDrag from '../rules/user-drag';
78
+ import UserSelect from '../rules/user-select';
79
+ import BoxShadow from '../rules/box-shadow';
80
+ import TextShadow from '../rules/text-shadow';
81
+ import TextSize from '../rules/text-size';
82
+ import WordBreak from '../rules/word-break';
83
+ import GridColumns from '../rules/grid-columns';
84
+ import GridRows from '../rules/grid-rows';
85
+ import Gap from '../rules/gap';
86
+ import WordSpacing from '../rules/word-spacing';
87
+ import Variable from '../rules/variable';
88
+ import AspectRatio from '../rules/aspect-ratio';
89
+ import BoxDecorationBreak from '../rules/box-decoration-break';
90
+ import BreakAfter from '../rules/break-after';
91
+ import BreakBefore from '../rules/break-before';
92
+ import BreakInside from '../rules/break-inside';
93
+ import FlexShrink from '../rules/flex-shrink';
94
+ import FlexDirection from '../rules/flex-direction';
95
+ import FlexGrow from '../rules/flex-grow';
96
+ import FlexWrap from '../rules/flex-wrap';
97
+ import FlexBasis from '../rules/flex-basis';
98
+ import Flex from '../rules/flex';
99
+ import Order from '../rules/order';
100
+ import GridColumn from '../rules/grid-column';
101
+ import ColumnSpan from '../rules/column-span';
102
+ import GridRow from '../rules/grid-row';
103
+ import Color from '../rules/color';
104
+ import AlignContent from '../rules/align-content';
105
+ import AlignItems from '../rules/align-items';
106
+ import AlignSelf from '../rules/align-self';
107
+ import GridAutoColumns from '../rules/grid-auto-columns';
108
+ import GridAutoFlow from '../rules/grid-auto-flow';
109
+ import GridAutoRows from '../rules/grid-auto-rows';
110
+ import JustifyContent from '../rules/justify-content';
111
+ import JustifyItems from '../rules/justify-items';
112
+ import JustifySelf from '../rules/justify-self';
113
+ import PlaceContent from '../rules/place-content';
114
+ import PlaceItems from '../rules/place-items';
115
+ import PlaceSelf from '../rules/place-self';
116
+ import Padding from '../rules/padding';
117
+ import Margin from '../rules/margin';
118
+ import TextOverflow from '../rules/text-overflow';
119
+ import ListStylePosition from '../rules/list-style-position';
120
+ import ListStyleType from '../rules/list-style-type';
121
+ import ListStyle from '../rules/list-style';
122
+ import TextDecorationColor from '../rules/text-decoration-color';
123
+ import TextDecorationStyle from '../rules/text-decoration-style';
124
+ import TextDecorationThickness from '../rules/text-decoration-thickness';
125
+ import TextIndent from '../rules/text-indent';
126
+ import Content from '../rules/content';
127
+ import OutlineColor from '../rules/outline-color';
128
+ import OutlineOffset from '../rules/outline-offset';
129
+ import OutlineStyle from '../rules/outline-style';
130
+ import OutlineWidth from '../rules/outline-width';
131
+ import Outline from '../rules/outline';
132
+ import BorderCollapse from '../rules/border-collapse';
133
+ import BorderSpacing from '../rules/border-spacing';
134
+ import TableLayout from '../rules/table-layout';
135
+ import AccentColor from '../rules/accent-color';
136
+ import Appearance from '../rules/appearance';
137
+ import CaretColor from '../rules/caret-color';
138
+ import ScrollBehavior from '../rules/scroll-behavior';
139
+ import ScrollMargin from '../rules/scroll-margin';
140
+ import ScrollPadding from '../rules/scroll-padding';
141
+ import ScrollSnapAlign from '../rules/scroll-snap-align';
142
+ import ScrollSnapStop from '../rules/scroll-snap-stop';
143
+ import ScrollSnapType from '../rules/scroll-snap-type';
144
+ import WillChange from '../rules/will-change';
145
+ import TextUnderlineOffset from '../rules/text-underline-offset';
146
+ import Inset from '../rules/inset';
147
+ import Columns from '../rules/columns';
148
+ import WhiteSpace from '../rules/white-space';
149
+ import TextOrientation from '../rules/text-orientation';
150
+ import WritingMode from '../rules/writing-mode';
151
+ import Contain from '../rules/contain';
152
+ import AnimationDuration from '../rules/animation-duration';
153
+ import TextRendering from '../rules/text-rendering';
154
+ import Direction from '../rules/direction';
155
+ import TextDecorationLine from '../rules/text-decoration-line';
156
+ import GridColumnStart from '../rules/grid-column-start';
157
+ import ListStyleImage from '../rules/list-style-image';
158
+ import ShapeOutside from '../rules/shape-outside';
159
+ import ShapeMargin from '../rules/shape-margin';
160
+ import ShapeImageThreshold from '../rules/shape-image-threshold';
161
+ import ClipPath from '../rules/clip-path';
162
+ import Grid from '../rules/grid';
163
+ import Font from '../rules/font';
164
+ import Quotes from '../rules/quotes';
165
+ import GridTemplate from '../rules/grid-template';
166
+ import GridRowStart from '../rules/grid-row-start';
167
+ import GridTemplateAreas from '../rules/grid-template-areas';
168
+ import GridTemplateColumns from '../rules/grid-template-columns';
169
+ import GridTemplateRows from '../rules/grid-template-rows';
170
+ import GridArea from '../rules/grid-area';
171
+ import GridColumnEnd from '../rules/grid-column-end';
172
+ import GridRowEnd from '../rules/grid-row-end';
173
+ import MaskImage from '../rules/mask-image';
174
+ import TextFillColor from '../rules/text-fill-color';
175
+ import TextStroke from '../rules/text-stroke';
176
+ import TextStrokeWidth from '../rules/text-stroke-width';
177
+ import TextStrokeColor from '../rules/text-stroke-color';
178
+ import StrokeDasharray from '../rules/stroke-dasharray';
179
+ import StrokeDashoffset from '../rules/stroke-dashoffset';
180
+ import X from '../rules/x';
181
+ import Y from '../rules/y';
182
+ import Cx from '../rules/cx';
183
+ import Cy from '../rules/cy';
184
+ import Rx from '../rules/rx';
185
+ import Ry from '../rules/ry';
186
+ import BorderImageOutset from '../rules/border-image-outset';
187
+ import BorderImageRepeat from '../rules/border-image-repeat';
188
+ import BorderImageSlice from '../rules/border-image-slice';
189
+ import BorderImageSource from '../rules/border-image-source';
190
+ import BorderImageWidth from '../rules/border-image-width';
191
+ import BorderImage from '../rules/border-image';
192
+ import Group from '../rules/group';
193
+ import CounterIncrement from '../rules/counter-increment';
194
+ import counterReset from '../rules/counter-reset';
195
+ import WH from '../rules/wh';
196
+ import MinWH from '../rules/min-wh';
197
+ import MaxWH from '../rules/max-wh';
198
+ declare const Rules: (typeof FontWeight | typeof FontFamily | typeof FontSize | typeof Spacing | typeof Width | typeof Height | typeof MinWidth | typeof MinHeight | typeof LetterSpacing | typeof FontSmoothing | typeof FontStyle | typeof FontVariantNumeric | typeof FontFeatureSettings | typeof LineHeight | typeof ObjectFit | typeof ObjectPosition | typeof TextAlign | typeof TextDecoration | typeof TextTransform | typeof VerticalAlign | typeof Lines | typeof TransformOrigin | typeof TransformStyle | typeof TransformBox | typeof Transform | typeof Transition | typeof TransitionDelay | typeof TransitionDuration | typeof TransitionProperty | typeof TransitionTimingFunction | typeof MaxHeight | typeof MaxWidth | typeof Display | typeof BoxSizing | typeof Opacity | typeof Visibility | typeof Clear | typeof Float | typeof Isolation | typeof Overflow | typeof OverscrollBehavior | typeof ZIndex | typeof AnimationDelay | typeof AnimationDirection | typeof AnimationFillMode | typeof AnimationIterationCount | typeof AnimationName | typeof AnimationPlayState | typeof AnimationTimingFunction | typeof Animation | typeof BorderColor | typeof BorderRadius | typeof BorderStyle | typeof BorderWidth | typeof Border | typeof BackgroundAttachment | typeof BackgroundBlendMode | typeof BackgroundClip | typeof BackgroundColor | typeof BackgroundOrigin | typeof BackgroundPosition | typeof BackgroundRepeat | typeof BackgroundSize | typeof BackgroundImage | typeof Background | typeof MixBlendMode | typeof Position | typeof BackdropFilter | typeof Fill | typeof Stroke | typeof StrokeWidth | typeof Filter | typeof Cursor | typeof PointerEvents | typeof Resize | typeof TouchAction | typeof UserDrag | typeof UserSelect | typeof BoxShadow | typeof TextShadow | typeof TextSize | typeof WordBreak | typeof GridColumns | typeof GridRows | typeof Gap | typeof WordSpacing | typeof Variable | typeof AspectRatio | typeof BoxDecorationBreak | typeof BreakAfter | typeof BreakBefore | typeof BreakInside | typeof FlexShrink | typeof FlexDirection | typeof FlexGrow | typeof FlexWrap | typeof FlexBasis | typeof Flex | typeof Order | typeof GridColumn | typeof ColumnSpan | typeof GridRow | typeof Color | typeof AlignContent | typeof AlignItems | typeof AlignSelf | typeof GridAutoColumns | typeof GridAutoFlow | typeof GridAutoRows | typeof JustifyContent | typeof JustifyItems | typeof JustifySelf | typeof PlaceContent | typeof PlaceItems | typeof PlaceSelf | typeof Padding | typeof Margin | typeof TextOverflow | typeof ListStylePosition | typeof ListStyleType | typeof ListStyle | typeof TextDecorationColor | typeof TextDecorationStyle | typeof TextDecorationThickness | typeof TextIndent | typeof Content | typeof OutlineColor | typeof OutlineOffset | typeof OutlineStyle | typeof OutlineWidth | typeof Outline | typeof BorderCollapse | typeof BorderSpacing | typeof TableLayout | typeof AccentColor | typeof Appearance | typeof CaretColor | typeof ScrollBehavior | typeof ScrollMargin | typeof ScrollPadding | typeof ScrollSnapAlign | typeof ScrollSnapStop | typeof ScrollSnapType | typeof WillChange | typeof TextUnderlineOffset | typeof Inset | typeof Columns | typeof WhiteSpace | typeof TextOrientation | typeof WritingMode | typeof Contain | typeof AnimationDuration | typeof TextRendering | typeof Direction | typeof TextDecorationLine | typeof GridColumnStart | typeof ListStyleImage | typeof ShapeOutside | typeof ShapeMargin | typeof ShapeImageThreshold | typeof ClipPath | typeof Grid | typeof Font | typeof Quotes | typeof GridTemplate | typeof GridRowStart | typeof GridTemplateAreas | typeof GridTemplateColumns | typeof GridTemplateRows | typeof GridArea | typeof GridColumnEnd | typeof GridRowEnd | typeof MaskImage | typeof TextFillColor | typeof TextStroke | typeof TextStrokeWidth | typeof TextStrokeColor | typeof StrokeDasharray | typeof StrokeDashoffset | typeof X | typeof Y | typeof Cx | typeof Cy | typeof Rx | typeof Ry | typeof BorderImageOutset | typeof BorderImageRepeat | typeof BorderImageSlice | typeof BorderImageSource | typeof BorderImageWidth | typeof BorderImage | typeof Group | typeof CounterIncrement | typeof counterReset | typeof WH | typeof MinWH | typeof MaxWH)[];
199
+ export default Rules;
@@ -1,8 +1,7 @@
1
- declare const defaultScheme: {
2
- preference: string;
1
+ declare const scheme: {
3
2
  storage: {
4
3
  sync: boolean;
5
4
  key: string;
6
5
  };
7
6
  };
8
- export default defaultScheme;
7
+ export default scheme;
@@ -1,4 +1,4 @@
1
- declare const defaultSelectors: {
1
+ declare const selectors: {
2
2
  '::scrollbar': string;
3
3
  '::scrollbar-button': string;
4
4
  '::scrollbar-thumb': string;
@@ -16,4 +16,4 @@ declare const defaultSelectors: {
16
16
  ':odd': string;
17
17
  ':nth(': string;
18
18
  };
19
- export default defaultSelectors;
19
+ export default selectors;
@@ -1,4 +1,4 @@
1
- declare const defaultSemantics: {
1
+ declare const semantics: {
2
2
  square: string;
3
3
  video: string;
4
4
  rounded: string;
@@ -79,4 +79,4 @@ declare const defaultSemantics: {
79
79
  overflow: string;
80
80
  };
81
81
  };
82
- export default defaultSemantics;
82
+ export default semantics;
@@ -1,2 +1,2 @@
1
- declare const defaultThemes: string[];
2
- export default defaultThemes;
1
+ declare const themes: string[];
2
+ export default themes;
@@ -1,4 +1,4 @@
1
- declare const defaultValues: {
1
+ declare const values: {
2
2
  BackgroundClip: {
3
3
  content: string;
4
4
  border: string;
@@ -123,4 +123,4 @@ declare const defaultValues: {
123
123
  min: string;
124
124
  };
125
125
  };
126
- export default defaultValues;
126
+ export default values;
@@ -1,5 +1,6 @@
1
1
  export declare const START_SYMBOL: {
2
2
  '(': string;
3
3
  '\'': string;
4
+ '"': string;
4
5
  '{': string;
5
6
  };