aliascss 1.4.5 → 1.5.0
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/CHANGELOG.md +22 -0
- package/bin/aliascss.js +118 -1
- package/dist/aliascss.js +1 -1
- package/lib/classPrinter.js +347 -21
- package/lib/compilers/color.js +5 -5
- package/lib/compilers/gradient.js +3 -3
- package/lib/compilers/stringAndContent.js +2 -1
- package/lib/component-elements.d.ts +155 -0
- package/lib/component-elements.js +223 -0
- package/lib/config.d.ts +2 -0
- package/lib/config.js +3 -1
- package/lib/css-properties-all.js +337 -202
- package/lib/custom-css-compilers.js +49 -116
- package/lib/extras-elements.d.ts +87 -0
- package/lib/extras-elements.js +184 -0
- package/lib/form-elements.d.ts +75 -0
- package/lib/form-elements.js +186 -0
- package/lib/layout-elements.d.ts +59 -0
- package/lib/layout-elements.js +113 -0
- package/lib/nav-elements.d.ts +71 -0
- package/lib/nav-elements.js +243 -0
- package/lib/node/compileFile-BK-291026.d.ts +27 -0
- package/lib/node/compileFile-BK-291026.js +309 -0
- package/lib/node/compileFile-bk.d.ts +14 -12
- package/lib/node/compileFile-bk.js +263 -252
- package/lib/node/compileFile.js +1 -1
- package/lib/node/extractClassNamesFromFile.js +208 -86
- package/lib/prebuild.d.ts +546 -12
- package/lib/prebuild.js +3 -852
- package/lib/prefix/PseudoPrefixNew.js +301 -16
- package/lib/prefix/attribute-selector.js +4 -2
- package/lib/prefix/element-selector.js +93 -20
- package/lib/prefix/extractPrefix.d.ts +1 -1
- package/lib/prefix/extractPrefix.js +113 -70
- package/lib/prefix/pseudoSelectorNew.js +184 -49
- package/lib/prefix/responsive.d.ts +13 -9
- package/lib/prefix/responsive.js +131 -9
- package/lib/returnPropertyAndValue.js +9 -4
- package/lib/returnStatement-bk-291026.d.ts +5 -0
- package/lib/returnStatement-bk-291026.js +470 -0
- package/lib/returnStatement-bk.d.ts +5 -0
- package/lib/returnStatement-bk.js +311 -0
- package/lib/returnStatement.d.ts +1 -0
- package/lib/returnStatement.js +262 -12
- package/lib/static/customStaticClassNames.js +35 -35
- package/lib/static/staticClassNamesAlias.js +18 -16
- package/lib/table-elements.d.ts +39 -0
- package/lib/table-elements.js +90 -0
- package/lib/utils/helper.d.ts +6 -0
- package/lib/utils/helper.js +52 -0
- package/lib/x-classes/x-bundle.d.ts +589 -0
- package/lib/x-classes/x-bundle.js +12 -0
- package/lib/x-classes/x-comps.d.ts +87 -0
- package/lib/x-classes/x-comps.js +189 -0
- package/lib/x-classes/x-extras.d.ts +155 -0
- package/lib/x-classes/x-extras.js +223 -0
- package/lib/x-classes/x-form-components.d.ts +75 -0
- package/lib/x-classes/x-form-components.js +186 -0
- package/lib/x-classes/x-helper-components.d.ts +63 -0
- package/lib/x-classes/x-helper-components.js +91 -0
- package/lib/x-classes/x-layout-components.d.ts +59 -0
- package/lib/x-classes/x-layout-components.js +113 -0
- package/lib/x-classes/x-menu.d.ts +23 -0
- package/lib/x-classes/x-menu.js +55 -0
- package/lib/x-classes/x-navs.d.ts +71 -0
- package/lib/x-classes/x-navs.js +243 -0
- package/lib/x-classes/x-row-col.d.ts +29 -0
- package/lib/x-classes/x-row-col.js +52 -0
- package/lib/x-classes/x-table.d.ts +39 -0
- package/lib/x-classes/x-table.js +90 -0
- package/lib/x-classes/x-theme.d.ts +15 -0
- package/lib/x-classes/x-theme.js +32 -0
- package/lib/x-imports.d.ts +31 -0
- package/lib/x-imports.js +748 -0
- package/package.json +1 -1
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
// AliasCSS components: card, badge, alert, dialog, accordion
|
|
2
|
+
// ------------------------------------------------------------------
|
|
3
|
+
// Same conventions as the form and table components:
|
|
4
|
+
// - styles live in @components, so plain utilities always override them
|
|
5
|
+
// - everything is themeable through --x-* variables with token fallbacks
|
|
6
|
+
// - variants mostly just set variables, so they combine freely
|
|
7
|
+
// ------------------------------------------------------------------
|
|
8
|
+
const components = {
|
|
9
|
+
// ================================================================
|
|
10
|
+
// CARD
|
|
11
|
+
// <article class="x-card">
|
|
12
|
+
// <img class="x-card-media" src="…" alt="">
|
|
13
|
+
// <header class="x-card-header">
|
|
14
|
+
// <div><h3 class="x-card-title">Title</h3><p class="x-card-description">Subtitle</p></div>
|
|
15
|
+
// </header>
|
|
16
|
+
// <div class="x-card-body">…</div>
|
|
17
|
+
// <footer class="x-card-footer">…buttons…</footer>
|
|
18
|
+
// </article>
|
|
19
|
+
// Variants: x-card-elevated, x-card-flat, x-card-interactive
|
|
20
|
+
// Vars: --x-card-bg, --x-card-color, --x-card-border-color, --x-card-divider-color,
|
|
21
|
+
// --x-card-radius, --x-card-padding (as (20px) or (16px_20px)), --x-card-shadow
|
|
22
|
+
// ================================================================
|
|
23
|
+
'x-card': {
|
|
24
|
+
type: 'statement',
|
|
25
|
+
statement: `
|
|
26
|
+
@components[d-flex,flex-direction-column,box-sizing-border-box,overflow-hidden,bgc--x-card-bg:white,c--x-card-color:gray900,border-width-1px,border-style-solid,border-color--x-card-border-color:gray200,br--x-card-radius:12px,box-shadow(var(--x-card-shadow,none))]
|
|
27
|
+
`
|
|
28
|
+
},
|
|
29
|
+
'x-card-header': {
|
|
30
|
+
type: 'statement',
|
|
31
|
+
statement: `@components[d-flex,aifs,jcsb,g-12px,padding(var(--x-card-padding,20px)),border-bottom-width-1px,border-bottom-style-solid,border-bottom-color--x-card-divider-color:gray200]`
|
|
32
|
+
},
|
|
33
|
+
'x-card-body': {
|
|
34
|
+
type: 'statement',
|
|
35
|
+
statement: `@components[padding(var(--x-card-padding,20px)),flex-grow-1]`
|
|
36
|
+
},
|
|
37
|
+
'x-card-footer': {
|
|
38
|
+
type: 'statement',
|
|
39
|
+
statement: `@components[d-flex,aic,jc-flex-end,g-8px,padding(var(--x-card-padding,20px)),border-top-width-1px,border-top-style-solid,border-top-color--x-card-divider-color:gray200]`
|
|
40
|
+
},
|
|
41
|
+
'x-card-media': {
|
|
42
|
+
type: 'statement',
|
|
43
|
+
statement: `@components[d-block,w-100%,object-fit-cover,aspect-ratio--x-card-media-ratio:16/9]`
|
|
44
|
+
},
|
|
45
|
+
'x-card-title': {
|
|
46
|
+
type: 'statement',
|
|
47
|
+
statement: `@components[m-0,fs-16px,fw-600,lh-24px]`
|
|
48
|
+
},
|
|
49
|
+
'x-card-description': {
|
|
50
|
+
type: 'statement',
|
|
51
|
+
statement: `@components[m-0,fs-14px,lh-20px,c--x-card-muted-color:gray500]`
|
|
52
|
+
},
|
|
53
|
+
'x-card-elevated': {
|
|
54
|
+
type: 'statement',
|
|
55
|
+
statement: `--x-card-border-color:transparent --x-card-shadow:(0_1px_3px_rgb(16_24_40_/_0.1),0_1px_2px_rgb(16_24_40_/_0.06))`
|
|
56
|
+
},
|
|
57
|
+
'x-card-flat': {
|
|
58
|
+
type: 'statement',
|
|
59
|
+
statement: `--x-card-border-color:transparent --x-card-bg:gray50`
|
|
60
|
+
},
|
|
61
|
+
// Whole card is clickable (e.g. contains a stretched link)
|
|
62
|
+
'x-card-interactive': {
|
|
63
|
+
type: 'statement',
|
|
64
|
+
statement: `
|
|
65
|
+
@components[cursor-pointer,transition-property-transform__box-shadow__border-color,transition-duration-0.2s]
|
|
66
|
+
@components--hover[tf-translateY--2px,border-color--x-card-hover-border-color:gray300,box-shadow(0_12px_24px_-6px_rgb(16_24_40_/_0.12))]
|
|
67
|
+
@components--focus-within[outline-style-solid,outline-width-2px,outline-color--x-form-accent-color:primary600,outline-offset-2px]
|
|
68
|
+
@motion-reduce--hover-tf-none
|
|
69
|
+
`
|
|
70
|
+
},
|
|
71
|
+
// ================================================================
|
|
72
|
+
// BADGE
|
|
73
|
+
// <span class="x-badge x-badge-success x-badge-dot">Active</span>
|
|
74
|
+
// Colors: x-badge-primary, -success, -warning, -error, -info (default is neutral gray)
|
|
75
|
+
// Options: x-badge-dot (status dot), x-badge-sm, x-badge-lg, x-badge-square
|
|
76
|
+
// Vars: --x-badge-bg, --x-badge-color, --x-badge-border-color, --x-badge-height, --x-badge-radius
|
|
77
|
+
// ================================================================
|
|
78
|
+
'x-badge': {
|
|
79
|
+
type: 'statement',
|
|
80
|
+
statement: `@components[d-inline-flex,aic,g-6px,h--x-badge-height:22px,padding-inline--x-badge-padding:8px,box-sizing-border-box,br--x-badge-radius:999px,fs--x-badge-font-size:12px,fw-500,lh-1,white-space-nowrap,vertical-align-middle,bgc--x-badge-bg:gray100,c--x-badge-color:gray700,border-width-1px,border-style-solid,border-color--x-badge-border-color:gray200]`
|
|
81
|
+
},
|
|
82
|
+
'x-badge-primary': { type: 'statement', statement: `--x-badge-bg:primary50 --x-badge-color:primary700 --x-badge-border-color:primary200` },
|
|
83
|
+
'x-badge-success': { type: 'statement', statement: `--x-badge-bg:success50 --x-badge-color:success700 --x-badge-border-color:success200` },
|
|
84
|
+
'x-badge-warning': { type: 'statement', statement: `--x-badge-bg:warning50 --x-badge-color:warning700 --x-badge-border-color:warning200` },
|
|
85
|
+
'x-badge-error': { type: 'statement', statement: `--x-badge-bg:error50 --x-badge-color:error700 --x-badge-border-color:error200` },
|
|
86
|
+
'x-badge-info': { type: 'statement', statement: `--x-badge-bg:blue50 --x-badge-color:blue700 --x-badge-border-color:blue200` },
|
|
87
|
+
'x-badge-dot': {
|
|
88
|
+
type: 'statement',
|
|
89
|
+
statement: `@components--before[cont,flex-shrink-0,w-6px,h-6px,br-50%,bgc-currentColor]`
|
|
90
|
+
},
|
|
91
|
+
'x-badge-sm': { type: 'statement', statement: `--x-badge-height:18px --x-badge-padding:6px --x-badge-font-size:11px` },
|
|
92
|
+
'x-badge-lg': { type: 'statement', statement: `--x-badge-height:26px --x-badge-padding:10px --x-badge-font-size:14px` },
|
|
93
|
+
'x-badge-square': { type: 'statement', statement: `--x-badge-radius:6px` },
|
|
94
|
+
// ================================================================
|
|
95
|
+
// ALERT
|
|
96
|
+
// <div class="x-alert x-alert-warning" role="alert">
|
|
97
|
+
// <svg …></svg> (optional icon)
|
|
98
|
+
// <div>
|
|
99
|
+
// <p class="x-alert-title">Heads up</p>
|
|
100
|
+
// <p>Message text.</p>
|
|
101
|
+
// </div>
|
|
102
|
+
// </div>
|
|
103
|
+
// Colors: x-alert-info, -success, -warning, -error (default is neutral)
|
|
104
|
+
// Options: x-alert-accent (thick left border)
|
|
105
|
+
// Vars: --x-alert-bg, --x-alert-color, --x-alert-border-color, --x-alert-icon-color, --x-alert-radius
|
|
106
|
+
// ================================================================
|
|
107
|
+
'x-alert': {
|
|
108
|
+
type: 'statement',
|
|
109
|
+
statement: `
|
|
110
|
+
@components[d-flex,aifs,g-12px,p-14px-16px,box-sizing-border-box,br--x-alert-radius:10px,fs-14px,lh-20px,bgc--x-alert-bg:gray50,c--x-alert-color:gray700,border-width-1px,border-style-solid,border-color--x-alert-border-color:gray200]
|
|
111
|
+
@components_svg[flex-shrink-0,w-20px,h-20px,c--x-alert-icon-color:gray500]
|
|
112
|
+
@components_p-m-0
|
|
113
|
+
`
|
|
114
|
+
},
|
|
115
|
+
'x-alert-title': {
|
|
116
|
+
type: 'statement',
|
|
117
|
+
statement: `@components[fw-600,margin-bottom-2px]`
|
|
118
|
+
},
|
|
119
|
+
'x-alert-info': { type: 'statement', statement: `--x-alert-bg:blue50 --x-alert-color:blue800 --x-alert-border-color:blue200 --x-alert-icon-color:blue600` },
|
|
120
|
+
'x-alert-success': { type: 'statement', statement: `--x-alert-bg:success50 --x-alert-color:success800 --x-alert-border-color:success200 --x-alert-icon-color:success600` },
|
|
121
|
+
'x-alert-warning': { type: 'statement', statement: `--x-alert-bg:warning50 --x-alert-color:warning800 --x-alert-border-color:warning200 --x-alert-icon-color:warning600` },
|
|
122
|
+
'x-alert-error': { type: 'statement', statement: `--x-alert-bg:error50 --x-alert-color:error800 --x-alert-border-color:error200 --x-alert-icon-color:error600` },
|
|
123
|
+
'x-alert-accent': {
|
|
124
|
+
type: 'statement',
|
|
125
|
+
statement: `@components-[class][border-left-width-4px,border-left-color--x-alert-icon-color:gray500]`
|
|
126
|
+
},
|
|
127
|
+
// ================================================================
|
|
128
|
+
// DIALOG (native <dialog>)
|
|
129
|
+
// <dialog class="x-dialog" id="confirm">
|
|
130
|
+
// <header class="x-dialog-header">
|
|
131
|
+
// <h2 class="x-dialog-title">Delete project?</h2>
|
|
132
|
+
// <form method="dialog"><button class="x-button x-button-ghost x-button-icon x-button-sm" aria-label="Close">✕</button></form>
|
|
133
|
+
// </header>
|
|
134
|
+
// <div class="x-dialog-body">…</div>
|
|
135
|
+
// <footer class="x-dialog-footer">
|
|
136
|
+
// <form method="dialog"><button class="x-button x-button-secondary">Cancel</button></form>
|
|
137
|
+
// <button class="x-button x-button-danger">Delete</button>
|
|
138
|
+
// </footer>
|
|
139
|
+
// </dialog>
|
|
140
|
+
// Open: dialog.showModal() (or <button commandfor="confirm" command="show-modal"> in supporting browsers)
|
|
141
|
+
// Close: any <form method="dialog"> button, Esc, or dialog.close()
|
|
142
|
+
// Variants: x-dialog-sheet (slides in from the right), x-dialog-sm, x-dialog-lg
|
|
143
|
+
// Vars: --x-dialog-width, --x-dialog-padding, --x-dialog-radius, --x-dialog-bg, --x-dialog-color,
|
|
144
|
+
// --x-dialog-border-color, --x-dialog-backdrop-bg, --x-dialog-from (closed transform)
|
|
145
|
+
// ================================================================
|
|
146
|
+
'x-dialog': {
|
|
147
|
+
type: 'statement',
|
|
148
|
+
statement: `
|
|
149
|
+
@components[w--x-dialog-width:480px,xw(calc(100vw_-_32px)),xh(calc(100dvh_-_32px)),p-0,box-sizing-border-box,overflow-auto,bgc--x-dialog-bg:white,c--x-dialog-color:gray900,border-width-1px,border-style-solid,border-color--x-dialog-border-color:gray200,br--x-dialog-radius:16px,box-shadow(0_24px_48px_-12px_rgb(16_24_40_/_0.18))]
|
|
150
|
+
@components[o-0,transform(var(--x-dialog-from,scale(0.96))),transition-property-opacity__transform__display__overlay,transition-duration-0.2s,transition-timing-function-ease-out,transition-behavior-allow-discrete]
|
|
151
|
+
@components-[open][o-1,tf-none]
|
|
152
|
+
@[components,starting-style]-[open][o-0,transform(var(--x-dialog-from,scale(0.96)))]
|
|
153
|
+
@components--backdrop[bgc--x-dialog-backdrop-bg:gray950/0.5,bf-blur-2px,o-0,transition-property-opacity__display__overlay,transition-duration-0.2s,transition-behavior-allow-discrete]
|
|
154
|
+
@components-[open]--backdrop-o-1
|
|
155
|
+
@[components,starting-style]-[open]--backdrop-o-0
|
|
156
|
+
@motion-reduce[transition-duration-0s,--backdrop-transition-duration-0s]
|
|
157
|
+
`
|
|
158
|
+
},
|
|
159
|
+
'x-dialog-header': {
|
|
160
|
+
type: 'statement',
|
|
161
|
+
statement: `@components[d-flex,aifs,jcsb,g-16px,padding(var(--x-dialog-padding,24px)),padding-bottom-0px]`
|
|
162
|
+
},
|
|
163
|
+
'x-dialog-title': {
|
|
164
|
+
type: 'statement',
|
|
165
|
+
statement: `@components[m-0,fs-18px,fw-600,lh-28px]`
|
|
166
|
+
},
|
|
167
|
+
'x-dialog-body': {
|
|
168
|
+
type: 'statement',
|
|
169
|
+
statement: `@components[padding(var(--x-dialog-padding,24px)),fs-14px,lh-22px,c--x-dialog-muted-color:gray600]`
|
|
170
|
+
},
|
|
171
|
+
'x-dialog-footer': {
|
|
172
|
+
type: 'statement',
|
|
173
|
+
statement: `
|
|
174
|
+
@components[d-flex,aic,jc-flex-end,g-12px,padding(var(--x-dialog-padding,24px)),padding-top-0px]
|
|
175
|
+
@components_form-display(contents)
|
|
176
|
+
`
|
|
177
|
+
},
|
|
178
|
+
'x-dialog-sm': { type: 'statement', statement: `--x-dialog-width:360px` },
|
|
179
|
+
'x-dialog-lg': { type: 'statement', statement: `--x-dialog-width:720px` },
|
|
180
|
+
'x-dialog-sheet': {
|
|
181
|
+
type: 'statement',
|
|
182
|
+
statement: `
|
|
183
|
+
--x-dialog-width:420px
|
|
184
|
+
--x-dialog-from:(translateX(100%))
|
|
185
|
+
@components-[class][m-0px-0px-0px-auto,h-100dvh,xh-none,br-0px,border-width-0px,border-left-width-1px]
|
|
186
|
+
`
|
|
187
|
+
},
|
|
188
|
+
// ================================================================
|
|
189
|
+
// ACCORDION (native <details>/<summary>)
|
|
190
|
+
// <div class="x-accordion-group">
|
|
191
|
+
// <details class="x-accordion" name="faq"> (same name = only one open at a time)
|
|
192
|
+
// <summary>Question</summary>
|
|
193
|
+
// <div class="x-accordion-content">Answer…</div>
|
|
194
|
+
// </details>
|
|
195
|
+
// </div>
|
|
196
|
+
// Vars: --x-accordion-border-color, --x-accordion-padding (as (16px_0)), --x-accordion-content-color
|
|
197
|
+
// Smooth height animation needs the `interpolate-size` property entry and a browser
|
|
198
|
+
// that supports ::details-content; elsewhere it simply opens without animation.
|
|
199
|
+
// ================================================================
|
|
200
|
+
'x-accordion-group': {
|
|
201
|
+
type: 'statement',
|
|
202
|
+
statement: `@components[border-top-width-1px,border-top-style-solid,border-top-color--x-accordion-border-color:gray200]`
|
|
203
|
+
},
|
|
204
|
+
'x-accordion': {
|
|
205
|
+
type: 'statement',
|
|
206
|
+
statement: `
|
|
207
|
+
@components[interpolate-size-allow-keywords,border-bottom-width-1px,border-bottom-style-solid,border-bottom-color--x-accordion-border-color:gray200]
|
|
208
|
+
@components__summary[d-flex,aic,jcsb,g-12px,padding(var(--x-accordion-padding,16px_0)),fs-15px,fw-500,lh-22px,list-style-none,cursor-pointer,user-select-none]
|
|
209
|
+
@components__summary--after[cont,flex-shrink-0,w-8px,h-8px,margin-right-4px,border-style-solid,border-color-currentColor,border-width-0px-2px-2px-0px,tf-rotate-45deg,transition-property-transform,transition-duration-0.2s]
|
|
210
|
+
@components-[open]__summary--after-tf-rotate--135deg
|
|
211
|
+
@components__summary--focus-visible[outline-style-solid,outline-width-2px,outline-color--x-form-accent-color:primary600,outline-offset-2px]
|
|
212
|
+
@components-@(::details-content)[h-0,overflow-clip,transition-property-height__content-visibility,transition-duration-0.25s,transition-behavior-allow-discrete]
|
|
213
|
+
@components-[open]@(::details-content)-h-auto
|
|
214
|
+
@motion-reduce__summary--after-transition-duration-0s
|
|
215
|
+
@motion-reduce-@(::details-content)-transition-duration-0s
|
|
216
|
+
`
|
|
217
|
+
},
|
|
218
|
+
'x-accordion-content': {
|
|
219
|
+
type: 'statement',
|
|
220
|
+
statement: `@components[padding-bottom-16px,fs-14px,lh-22px,c--x-accordion-content-color:gray600]`
|
|
221
|
+
},
|
|
222
|
+
};
|
|
223
|
+
export default components;
|
package/lib/config.d.ts
CHANGED
package/lib/config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const config = {
|
|
2
2
|
prefix: null,
|
|
3
3
|
useColon: false,
|
|
4
|
+
debug: true,
|
|
4
5
|
ignore: [],
|
|
5
6
|
layers: ['reset', 'base', 'theme', 'components', 'utilities', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl'],
|
|
6
7
|
useExtractorFunction: false, // (?<=x(`|\(['"]))([\s\w-\(\)]+)[^`"']
|
|
@@ -14,6 +15,7 @@ const config = {
|
|
|
14
15
|
matchRegExpWithColonKeyFrame: /[\s](?:(keyframes[-_:][\w-]+))=[\s*]?(?:["']\W+\s*(?:\w+)\()?["']([^'"]+)['"]/,
|
|
15
16
|
createExtractorRegex: (fname) => new RegExp('(?:' + fname + ')' + "[\\s*]?(`|\\([" + `"'])` + "([^'`" + '"]+)' + "(`|" + `["']` + "\\))"),
|
|
16
17
|
createCSSModuleRegex: (fname) => new RegExp("(?:" + fname + ")\\[[`'" + '"]([^`"' + "']+)(?:[`'" + '"]\\])'),
|
|
18
|
+
asRegExpMatcher: /b/,
|
|
17
19
|
// globalValues:['initial:ini','inherit:in','unset:un', 'revert:re','revert-layer:rl'],
|
|
18
20
|
globalValues: ['initial', 'inherit', 'unset', 'revert', 'revert-layer'],
|
|
19
21
|
// makeStaticGlobalValues:(property:string,alias?:string)=>{
|
|
@@ -36,7 +38,7 @@ const config = {
|
|
|
36
38
|
`var(--space-24,${24 / 4}rem):24`,
|
|
37
39
|
`var(--space-32,${32 / 4}rem):32`,
|
|
38
40
|
],
|
|
39
|
-
remUnitsNegative: [`calc( -1 * var(--space-1,${
|
|
41
|
+
remUnitsNegative: [`calc( -1 * var(--space-1,${1 / 4}rem)):-1`, // calc( -1 * var(--mt))
|
|
40
42
|
`calc( -1 * var(--space-2,${2 / 4}rem)):-2`,
|
|
41
43
|
`calc( -1 * var(--space-3,${3 / 4}rem)):-3`,
|
|
42
44
|
`calc( -1 * var(--space-4,${4 / 4}rem)):-4`,
|