@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.
- package/README.md +94 -109
- package/dist/apis/render-from-html.d.ts +2 -2
- package/dist/apis/render-into-html.d.ts +2 -2
- package/dist/apis/render.d.ts +2 -2
- package/dist/config/breakpoints.d.ts +2 -2
- package/dist/config/colors.d.ts +2 -2
- package/dist/config/index.d.ts +38 -16
- package/dist/config/root-size.d.ts +2 -2
- package/dist/config/rules.d.ts +198 -2
- package/dist/config/scheme.d.ts +2 -3
- package/dist/config/selectors.d.ts +2 -2
- package/dist/config/semantics.d.ts +2 -2
- package/dist/config/themes.d.ts +2 -2
- package/dist/config/values.d.ts +2 -2
- package/dist/constants/start-symbol.d.ts +1 -0
- package/dist/css.d.ts +45 -30
- package/dist/index.browser.d.ts +1 -0
- package/dist/index.browser.js +1 -2
- package/dist/index.cjs +1 -2
- package/dist/index.d.ts +16 -16
- package/dist/index.mjs +1 -2
- package/dist/rule.d.ts +26 -26
- package/dist/rules/accent-color.d.ts +3 -4
- package/dist/rules/align-content.d.ts +4 -5
- package/dist/rules/align-items.d.ts +4 -5
- package/dist/rules/align-self.d.ts +4 -5
- package/dist/rules/animation-delay.d.ts +4 -5
- package/dist/rules/animation-direction.d.ts +4 -5
- package/dist/rules/animation-duration.d.ts +4 -5
- package/dist/rules/animation-fill-mode.d.ts +4 -5
- package/dist/rules/animation-iteration-count.d.ts +4 -5
- package/dist/rules/animation-name.d.ts +4 -5
- package/dist/rules/animation-play-state.d.ts +4 -5
- package/dist/rules/animation-timing-function.d.ts +4 -5
- package/dist/rules/animation.d.ts +3 -4
- package/dist/rules/appearance.d.ts +3 -4
- package/dist/rules/aspect-ratio.d.ts +6 -0
- package/dist/rules/backdrop-filter.d.ts +7 -7
- package/dist/rules/background-attachment.d.ts +4 -5
- package/dist/rules/background-blend-mode.d.ts +3 -4
- package/dist/rules/background-clip.d.ts +4 -5
- package/dist/rules/background-color.d.ts +3 -4
- package/dist/rules/background-image.d.ts +4 -5
- package/dist/rules/background-origin.d.ts +4 -5
- package/dist/rules/background-position.d.ts +4 -5
- package/dist/rules/background-repeat.d.ts +4 -5
- package/dist/rules/background-size.d.ts +4 -5
- package/dist/rules/background.d.ts +4 -5
- package/dist/rules/border-collapse.d.ts +4 -5
- package/dist/rules/border-color.d.ts +5 -4
- package/dist/rules/border-image-outset.d.ts +3 -4
- package/dist/rules/border-image-repeat.d.ts +4 -5
- package/dist/rules/border-image-slice.d.ts +3 -4
- package/dist/rules/border-image-source.d.ts +4 -5
- package/dist/rules/border-image-width.d.ts +4 -5
- package/dist/rules/border-image.d.ts +3 -4
- package/dist/rules/border-radius.d.ts +5 -4
- package/dist/rules/border-spacing.d.ts +3 -4
- package/dist/rules/border-style.d.ts +5 -4
- package/dist/rules/border-width.d.ts +5 -4
- package/dist/rules/border.d.ts +5 -4
- package/dist/rules/box-decoration-break.d.ts +4 -5
- package/dist/rules/box-shadow.d.ts +4 -5
- package/dist/rules/box-sizing.d.ts +4 -5
- package/dist/rules/break-after.d.ts +3 -4
- package/dist/rules/break-before.d.ts +3 -4
- package/dist/rules/break-inside.d.ts +3 -4
- package/dist/rules/caret-color.d.ts +3 -4
- package/dist/rules/clear.d.ts +3 -4
- package/dist/rules/clip-path.d.ts +4 -5
- package/dist/rules/color.d.ts +4 -5
- package/dist/rules/column-span.d.ts +4 -5
- package/dist/rules/columns.d.ts +4 -5
- package/dist/rules/contain.d.ts +3 -4
- package/dist/rules/content.d.ts +3 -4
- package/dist/rules/counter-increment.d.ts +3 -4
- package/dist/rules/counter-reset.d.ts +5 -0
- package/dist/rules/cursor.d.ts +3 -4
- package/dist/rules/cx.d.ts +3 -4
- package/dist/rules/cy.d.ts +3 -4
- package/dist/rules/direction.d.ts +3 -4
- package/dist/rules/display.d.ts +4 -5
- package/dist/rules/fill.d.ts +3 -4
- package/dist/rules/filter.d.ts +7 -7
- package/dist/rules/flex-basis.d.ts +3 -4
- package/dist/rules/flex-direction.d.ts +4 -5
- package/dist/rules/flex-grow.d.ts +3 -4
- package/dist/rules/flex-shrink.d.ts +3 -4
- package/dist/rules/flex-wrap.d.ts +4 -5
- package/dist/rules/flex.d.ts +3 -4
- package/dist/rules/float.d.ts +3 -4
- package/dist/rules/font-family.d.ts +4 -5
- package/dist/rules/font-feature-settings.d.ts +5 -0
- package/dist/rules/font-size.d.ts +4 -5
- package/dist/rules/font-smoothing.d.ts +5 -4
- package/dist/rules/font-style.d.ts +4 -5
- package/dist/rules/font-variant-numeric.d.ts +4 -5
- package/dist/rules/font-weight.d.ts +4 -5
- package/dist/rules/font.d.ts +4 -5
- package/dist/rules/gap.d.ts +5 -4
- package/dist/rules/grid-area.d.ts +3 -4
- package/dist/rules/grid-auto-columns.d.ts +4 -5
- package/dist/rules/grid-auto-flow.d.ts +4 -5
- package/dist/rules/grid-auto-rows.d.ts +3 -4
- package/dist/rules/grid-column-end.d.ts +4 -5
- package/dist/rules/grid-column-start.d.ts +4 -5
- package/dist/rules/grid-column.d.ts +4 -5
- package/dist/rules/grid-columns.d.ts +4 -5
- package/dist/rules/grid-row-end.d.ts +3 -4
- package/dist/rules/grid-row-start.d.ts +3 -4
- package/dist/rules/grid-row.d.ts +4 -5
- package/dist/rules/grid-rows.d.ts +3 -4
- package/dist/rules/grid-template-areas.d.ts +3 -4
- package/dist/rules/grid-template-columns.d.ts +4 -5
- package/dist/rules/grid-template-rows.d.ts +3 -4
- package/dist/rules/grid-template.d.ts +3 -4
- package/dist/rules/grid.d.ts +3 -4
- package/dist/rules/group.d.ts +10 -6
- package/dist/rules/height.d.ts +4 -5
- package/dist/rules/inset.d.ts +4 -5
- package/dist/rules/isolation.d.ts +3 -4
- package/dist/rules/justify-content.d.ts +4 -5
- package/dist/rules/justify-items.d.ts +4 -5
- package/dist/rules/justify-self.d.ts +4 -5
- package/dist/rules/letter-spacing.d.ts +4 -5
- package/dist/rules/line-clamp.d.ts +3 -4
- package/dist/rules/line-height.d.ts +4 -5
- package/dist/rules/lines.d.ts +5 -4
- package/dist/rules/list-style-image.d.ts +4 -5
- package/dist/rules/list-style-position.d.ts +4 -5
- package/dist/rules/list-style-type.d.ts +4 -5
- package/dist/rules/list-style.d.ts +3 -4
- package/dist/rules/margin.d.ts +5 -4
- package/dist/rules/mask-image.d.ts +3 -4
- package/dist/rules/max-height.d.ts +4 -5
- package/dist/rules/max-wh.d.ts +12 -0
- package/dist/rules/max-width.d.ts +4 -5
- package/dist/rules/min-height.d.ts +4 -5
- package/dist/rules/min-wh.d.ts +12 -0
- package/dist/rules/min-width.d.ts +4 -5
- package/dist/rules/mix-blend-mode.d.ts +4 -5
- package/dist/rules/object-fit.d.ts +4 -5
- package/dist/rules/object-position.d.ts +4 -5
- package/dist/rules/opacity.d.ts +3 -4
- package/dist/rules/order.d.ts +4 -5
- package/dist/rules/outline-color.d.ts +3 -4
- package/dist/rules/outline-offset.d.ts +3 -4
- package/dist/rules/outline-style.d.ts +4 -5
- package/dist/rules/outline-width.d.ts +4 -5
- package/dist/rules/outline.d.ts +3 -4
- package/dist/rules/overflow.d.ts +5 -4
- package/dist/rules/overscroll-behavior.d.ts +5 -4
- package/dist/rules/padding.d.ts +5 -4
- package/dist/rules/place-content.d.ts +3 -4
- package/dist/rules/place-items.d.ts +3 -4
- package/dist/rules/place-self.d.ts +3 -4
- package/dist/rules/pointer-events.d.ts +3 -4
- package/dist/rules/position.d.ts +3 -4
- package/dist/rules/quotes.d.ts +3 -4
- package/dist/rules/resize.d.ts +3 -4
- package/dist/rules/rx.d.ts +3 -4
- package/dist/rules/ry.d.ts +3 -4
- package/dist/rules/scroll-behavior.d.ts +3 -4
- package/dist/rules/scroll-margin.d.ts +5 -4
- package/dist/rules/scroll-padding.d.ts +5 -4
- package/dist/rules/scroll-snap-align.d.ts +4 -5
- package/dist/rules/scroll-snap-stop.d.ts +4 -5
- package/dist/rules/scroll-snap-type.d.ts +4 -5
- package/dist/rules/shape-image-threshold.d.ts +3 -4
- package/dist/rules/shape-margin.d.ts +4 -5
- package/dist/rules/shape-outside.d.ts +4 -5
- package/dist/rules/spacing.d.ts +5 -4
- package/dist/rules/stroke-dasharray.d.ts +3 -4
- package/dist/rules/stroke-dashoffset.d.ts +3 -4
- package/dist/rules/stroke-width.d.ts +4 -5
- package/dist/rules/stroke.d.ts +3 -4
- package/dist/rules/table-layout.d.ts +3 -4
- package/dist/rules/text-align.d.ts +4 -5
- package/dist/rules/text-decoration-color.d.ts +3 -4
- package/dist/rules/text-decoration-line.d.ts +4 -5
- package/dist/rules/text-decoration-style.d.ts +4 -5
- package/dist/rules/text-decoration-thickness.d.ts +4 -5
- package/dist/rules/text-decoration.d.ts +4 -5
- package/dist/rules/text-fill-color.d.ts +5 -4
- package/dist/rules/text-indent.d.ts +3 -4
- package/dist/rules/text-orientation.d.ts +4 -5
- package/dist/rules/text-overflow.d.ts +4 -5
- package/dist/rules/text-rendering.d.ts +4 -5
- package/dist/rules/text-shadow.d.ts +3 -4
- package/dist/rules/text-size.d.ts +5 -4
- package/dist/rules/text-stroke-color.d.ts +5 -4
- package/dist/rules/text-stroke-width.d.ts +5 -4
- package/dist/rules/text-stroke.d.ts +5 -4
- package/dist/rules/text-transform.d.ts +4 -5
- package/dist/rules/text-underline-offset.d.ts +3 -4
- package/dist/rules/touch-action.d.ts +3 -4
- package/dist/rules/transform-box.d.ts +4 -5
- package/dist/rules/transform-origin.d.ts +4 -5
- package/dist/rules/transform-style.d.ts +4 -5
- package/dist/rules/transform.d.ts +6 -7
- package/dist/rules/transition-delay.d.ts +4 -5
- package/dist/rules/transition-duration.d.ts +4 -5
- package/dist/rules/transition-property.d.ts +4 -5
- package/dist/rules/transition-timing-function.d.ts +4 -5
- package/dist/rules/transition.d.ts +3 -4
- package/dist/rules/user-drag.d.ts +3 -4
- package/dist/rules/user-select.d.ts +3 -4
- package/dist/rules/variable.d.ts +5 -4
- package/dist/rules/vertical-align.d.ts +4 -5
- package/dist/rules/visibility.d.ts +3 -4
- package/dist/rules/wh.d.ts +12 -0
- package/dist/rules/white-space.d.ts +3 -4
- package/dist/rules/width.d.ts +4 -5
- package/dist/rules/will-change.d.ts +3 -4
- package/dist/rules/word-break.d.ts +3 -4
- package/dist/rules/word-spacing.d.ts +3 -4
- package/dist/rules/writing-mode.d.ts +4 -5
- package/dist/rules/x.d.ts +3 -4
- package/dist/rules/y.d.ts +3 -4
- package/dist/rules/z-index.d.ts +4 -5
- package/dist/utils/analyze-unit-value.d.ts +4 -0
- package/dist/utils/analyze-value-token.d.ts +3 -0
- package/dist/utils/delay.d.ts +2 -0
- package/dist/utils/is-plain-object.d.ts +1 -1
- package/dist/utils/normalize-css-calc-text.d.ts +1 -1
- package/dist/utils/parse-value-unit.d.ts +2 -2
- package/dist/utils/parse-value.d.ts +1 -2
- package/dist/utils/test-css.d.ts +3 -0
- package/package.json +1 -162
- package/LICENSE +0 -21
- package/dist/apis/configure.d.ts +0 -2
- package/dist/apis/extend.d.ts +0 -5
- package/dist/apis/init.d.ts +0 -3
- package/dist/index.browser.js.map +0 -7
- package/dist/index.cjs.map +0 -7
- package/dist/index.mjs.map +0 -7
- package/dist/rules/aspect-radio.d.ts +0 -7
- package/dist/rules/placement.d.ts +0 -8
- package/readme.md +0 -118
package/README.md
CHANGED
|
@@ -1,118 +1,103 @@
|
|
|
1
|
-
<br
|
|
1
|
+
<br>
|
|
2
2
|
<div align="center">
|
|
3
3
|
|
|
4
4
|
<p align="center">
|
|
5
|
-
<
|
|
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
|
-
<
|
|
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
|
-
[](https://github.com/master-co/css/blob/main/LICENSE)
|
|
13
|
-
[](https://www.npmjs.com/package/@master/css)
|
|
14
|
-
[](https://bundlephobia.com/package/@master/css 'gzip bundle size (including dependencies)')
|
|
15
|
-
[](https://unpkg.com/@master/css 'brotli package size (without dependencies)')
|
|
16
|
-
[](https://css.master.co)
|
|
17
|
-
[](https://github.com/master-co/css)
|
|
18
|
-
[](https://discord.gg/sZNKpAAAw6)
|
|
19
|
-
[](https://circleci.com/gh/master-co/workflows/css/tree/main)
|
|
20
59
|
|
|
21
60
|
</div>
|
|
22
61
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
- [
|
|
35
|
-
- [
|
|
36
|
-
- [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
|
1
|
+
import type { Config } from '../config';
|
|
2
2
|
import '../polyfills/css-escape';
|
|
3
|
-
export default function renderFromHTML(html: string,
|
|
3
|
+
export default function renderFromHTML(html: string, config?: Config): string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { Config } from '../config';
|
|
2
2
|
import '../polyfills/css-escape';
|
|
3
|
-
export default function renderIntoHTML(html: string,
|
|
3
|
+
export default function renderIntoHTML(html: string, config?: Config): string;
|
package/dist/apis/render.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { Config } from '../config';
|
|
2
2
|
import '../polyfills/css-escape';
|
|
3
|
-
export default function render(classes: string[],
|
|
3
|
+
export default function render(classes: string[], config?: Config): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
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
|
|
13
|
+
export default breakpoints;
|
package/dist/config/colors.d.ts
CHANGED
package/dist/config/index.d.ts
CHANGED
|
@@ -1,22 +1,44 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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?:
|
|
16
|
-
colors?:
|
|
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
|
|
2
|
-
export default
|
|
1
|
+
declare const rootSize = 16;
|
|
2
|
+
export default rootSize;
|
package/dist/config/rules.d.ts
CHANGED
|
@@ -1,3 +1,199 @@
|
|
|
1
1
|
import FontWeight from '../rules/font-weight';
|
|
2
|
-
|
|
3
|
-
|
|
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;
|
package/dist/config/scheme.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
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
|
|
19
|
+
export default selectors;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
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
|
|
82
|
+
export default semantics;
|
package/dist/config/themes.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const themes: string[];
|
|
2
|
+
export default themes;
|
package/dist/config/values.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
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
|
|
126
|
+
export default values;
|