@@ -77,6 +77,13 @@ test('generates default utilities and responsive variants', () => {
77
77
.text-stroke-8 { text-stroke-width: 8px }
78
78
.text-stroke { text-stroke-width: 1px }
79
79
80
+ .paint-fsm { paint-order: fill, stroke, markers }
81
+ .paint-fms { paint-order: fill, markers, stroke }
82
+ .paint-sfm { paint-order: stroke, fill, markers }
83
+ .paint-smf { paint-order: stroke, markers, fill }
84
+ .paint-mfs { paint-order: markers, fill, stroke }
85
+ .paint-msf { paint-order: markers, stroke, fill }
86
+
80
87
@media (min-width: 640px) {
81
88
.sm\\:text-fill-transparent { text-fill-color: transparent }
82
89
.sm\\:text-fill-black { text-fill-color: #000 }
@@ -111,6 +118,13 @@ test('generates default utilities and responsive variants', () => {
111
118
.sm\\:text-stroke-4 { text-stroke-width: 4px }
112
119
.sm\\:text-stroke-8 { text-stroke-width: 8px }
113
120
.sm\\:text-stroke { text-stroke-width: 1px }
121
+
122
+ .sm\\:paint-fsm { paint-order: fill, stroke, markers }
123
+ .sm\\:paint-fms { paint-order: fill, markers, stroke }
124
+ .sm\\:paint-sfm { paint-order: stroke, fill, markers }
125
+ .sm\\:paint-smf { paint-order: stroke, markers, fill }
126
+ .sm\\:paint-mfs { paint-order: markers, fill, stroke }
127
+ .sm\\:paint-msf { paint-order: markers, stroke, fill }
114
128
}
115
129
`
116
130
@@ -123,6 +137,7 @@ test('variants can be customized', () => {
123
137
textFillColor : [ 'hover' ] ,
124
138
textStrokeColor : [ 'focus' ] ,
125
139
textStrokeWidth : [ 'active' ] ,
140
+ paintOrder : [ 'responsive' ] ,
126
141
} ,
127
142
}
128
143
const expectedCss = `
@@ -193,6 +208,22 @@ test('variants can be customized', () => {
193
208
.active\\:text-stroke-4:active { text-stroke-width: 4px }
194
209
.active\\:text-stroke-8:active { text-stroke-width: 8px }
195
210
.active\\:text-stroke:active { text-stroke-width: 1px }
211
+
212
+ .paint-fsm { paint-order: fill, stroke, markers }
213
+ .paint-fms { paint-order: fill, markers, stroke }
214
+ .paint-sfm { paint-order: stroke, fill, markers }
215
+ .paint-smf { paint-order: stroke, markers, fill }
216
+ .paint-mfs { paint-order: markers, fill, stroke }
217
+ .paint-msf { paint-order: markers, stroke, fill }
218
+
219
+ @media (min-width: 640px) {
220
+ .sm\\:paint-fsm { paint-order: fill, stroke, markers }
221
+ .sm\\:paint-fms { paint-order: fill, markers, stroke }
222
+ .sm\\:paint-sfm { paint-order: stroke, fill, markers }
223
+ .sm\\:paint-smf { paint-order: stroke, markers, fill }
224
+ .sm\\:paint-mfs { paint-order: markers, fill, stroke }
225
+ .sm\\:paint-msf { paint-order: markers, stroke, fill }
226
+ }
196
227
`
197
228
198
229
return generatePluginCss ( testConfig ) . then ( css => expect ( css ) . toMatchCss ( expectedCss ) )
@@ -204,6 +235,7 @@ test('utilities can be customized', () => {
204
235
textFillColor : theme => ( { ...theme ( 'colors' ) , gray : theme ( 'colors.gray.500' ) , default : '#38b2ac' } ) ,
205
236
textStrokeColor : theme => ( { transparent : theme ( 'colors.transparent' ) , default : '#38b2ac' } ) ,
206
237
textStrokeWidth : { default : '1px' , sm : '2px' , md : '4px' , lg : '8px' } ,
238
+ paintOrder : { stroke : 'stroke' }
207
239
} ,
208
240
}
209
241
const expectedCss = `
@@ -221,6 +253,8 @@ test('utilities can be customized', () => {
221
253
.text-stroke-md { text-stroke-width: 4px }
222
254
.text-stroke-lg { text-stroke-width: 8px }
223
255
256
+ .paint-stroke { paint-order: stroke }
257
+
224
258
@media (min-width: 640px) {
225
259
.sm\\:text-fill-transparent { text-fill-color: transparent }
226
260
.sm\\:text-fill-black { text-fill-color: #000 }
@@ -235,6 +269,8 @@ test('utilities can be customized', () => {
235
269
.sm\\:text-stroke-sm { text-stroke-width: 2px }
236
270
.sm\\:text-stroke-md { text-stroke-width: 4px }
237
271
.sm\\:text-stroke-lg { text-stroke-width: 8px }
272
+
273
+ .sm\\:paint-stroke { paint-order: stroke }
238
274
}
239
275
`
240
276
0 commit comments