@keycloakify/angular-email 0.0.1 → 0.0.3
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 +7 -3
- package/bin/build.mjs +4 -3
- package/fesm2022/keycloakify-angular-email-tailwindcss-preset-email.mjs +1229 -0
- package/fesm2022/keycloakify-angular-email-tailwindcss-preset-email.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-email.mjs +58 -59
- package/fesm2022/keycloakify-angular-email.mjs.map +1 -1
- package/lib/components/button/button.component.d.ts +2 -2
- package/lib/render.d.ts +1 -1
- package/node/index.cjs +1 -1
- package/node/index.js +1 -1
- package/package.json +6 -2
- package/tailwindcss-preset-email/filters.d.ts +95 -0
- package/tailwindcss-preset-email/index.d.ts +1 -0
- package/tailwindcss-preset-email/msoColors.d.ts +209 -0
- package/tailwindcss-preset-email/tailwindcss-email-variants.d.ts +5 -0
- package/tailwindcss-preset-email/tailwindcss-mso.d.ts +8 -0
- package/tailwindcss-preset-email/tailwindcss-preset-email.d.ts +187 -0
|
@@ -0,0 +1,1229 @@
|
|
|
1
|
+
import plugin from 'tailwindcss-v3/plugin.js';
|
|
2
|
+
|
|
3
|
+
var internalFilterPlugins = {
|
|
4
|
+
disabledFilterPlugins: {
|
|
5
|
+
blur: false,
|
|
6
|
+
brightness: false,
|
|
7
|
+
contrast: false,
|
|
8
|
+
dropShadow: false,
|
|
9
|
+
grayscale: false,
|
|
10
|
+
hueRotate: false,
|
|
11
|
+
invert: false,
|
|
12
|
+
saturate: false,
|
|
13
|
+
sepia: false,
|
|
14
|
+
backdropBlur: false,
|
|
15
|
+
backdropBrightness: false,
|
|
16
|
+
backdropContrast: false,
|
|
17
|
+
backdropGrayscale: false,
|
|
18
|
+
backdropHueRotate: false,
|
|
19
|
+
backdropInvert: false,
|
|
20
|
+
backdropOpacity: false,
|
|
21
|
+
backdropSaturate: false,
|
|
22
|
+
backdropSepia: false,
|
|
23
|
+
},
|
|
24
|
+
blur: plugin(function ({ matchUtilities, theme }) {
|
|
25
|
+
matchUtilities({
|
|
26
|
+
blur: (value) => ({
|
|
27
|
+
filter: `blur(${value})`,
|
|
28
|
+
}),
|
|
29
|
+
}, { values: theme('blur') });
|
|
30
|
+
}),
|
|
31
|
+
brightness: plugin(function ({ matchUtilities, theme }) {
|
|
32
|
+
matchUtilities({
|
|
33
|
+
brightness: (value) => ({
|
|
34
|
+
filter: `brightness(${value})`,
|
|
35
|
+
}),
|
|
36
|
+
}, { values: theme('brightness') });
|
|
37
|
+
}),
|
|
38
|
+
contrast: plugin(function ({ matchUtilities, theme }) {
|
|
39
|
+
matchUtilities({
|
|
40
|
+
contrast: (value) => ({
|
|
41
|
+
filter: `contrast(${value})`,
|
|
42
|
+
}),
|
|
43
|
+
}, { values: theme('contrast') });
|
|
44
|
+
}),
|
|
45
|
+
dropShadow: plugin(function ({ matchUtilities, theme }) {
|
|
46
|
+
matchUtilities({
|
|
47
|
+
'drop-shadow': (value) => ({
|
|
48
|
+
filter: Array.isArray(value) ? value.map((v) => `drop-shadow(${v})`).join(' ') : `drop-shadow(${value})`,
|
|
49
|
+
}),
|
|
50
|
+
}, { values: theme('dropShadow') });
|
|
51
|
+
}),
|
|
52
|
+
grayscale: plugin(function ({ matchUtilities, theme }) {
|
|
53
|
+
matchUtilities({
|
|
54
|
+
grayscale: (value) => ({
|
|
55
|
+
filter: `grayscale(${value})`,
|
|
56
|
+
}),
|
|
57
|
+
}, { values: theme('grayscale') });
|
|
58
|
+
}),
|
|
59
|
+
hueRotate: plugin(function ({ matchUtilities, theme }) {
|
|
60
|
+
matchUtilities({
|
|
61
|
+
'hue-rotate': (value) => ({
|
|
62
|
+
filter: `hue-rotate(${value})`,
|
|
63
|
+
}),
|
|
64
|
+
}, { values: theme('hueRotate'), supportsNegativeValues: true });
|
|
65
|
+
}),
|
|
66
|
+
invert: plugin(function ({ matchUtilities, theme }) {
|
|
67
|
+
matchUtilities({
|
|
68
|
+
invert: (value) => ({
|
|
69
|
+
filter: `invert(${value})`,
|
|
70
|
+
}),
|
|
71
|
+
}, { values: theme('invert') });
|
|
72
|
+
}),
|
|
73
|
+
saturate: plugin(function ({ matchUtilities, theme }) {
|
|
74
|
+
matchUtilities({
|
|
75
|
+
saturate: (value) => ({
|
|
76
|
+
filter: `saturate(${value})`,
|
|
77
|
+
}),
|
|
78
|
+
}, { values: theme('saturate') });
|
|
79
|
+
}),
|
|
80
|
+
sepia: plugin(function ({ matchUtilities, theme }) {
|
|
81
|
+
matchUtilities({
|
|
82
|
+
sepia: (value) => ({
|
|
83
|
+
filter: `sepia(${value})`,
|
|
84
|
+
}),
|
|
85
|
+
}, { values: theme('sepia') });
|
|
86
|
+
}),
|
|
87
|
+
backdropBlur: plugin(function ({ matchUtilities, theme }) {
|
|
88
|
+
matchUtilities({
|
|
89
|
+
'backdrop-blur': (value) => ({
|
|
90
|
+
backdropFilter: `blur(${value})`,
|
|
91
|
+
}),
|
|
92
|
+
}, { values: theme('backdropBlur') });
|
|
93
|
+
}),
|
|
94
|
+
backdropBrightness: plugin(function ({ matchUtilities, theme }) {
|
|
95
|
+
matchUtilities({
|
|
96
|
+
'backdrop-brightness': (value) => ({
|
|
97
|
+
backdropFilter: `brightness(${value})`,
|
|
98
|
+
}),
|
|
99
|
+
}, { values: theme('backdropBrightness') });
|
|
100
|
+
}),
|
|
101
|
+
backdropContrast: plugin(function ({ matchUtilities, theme }) {
|
|
102
|
+
matchUtilities({
|
|
103
|
+
'backdrop-contrast': (value) => ({
|
|
104
|
+
backdropFilter: `contrast(${value})`,
|
|
105
|
+
}),
|
|
106
|
+
}, { values: theme('backdropContrast') });
|
|
107
|
+
}),
|
|
108
|
+
backdropGrayscale: plugin(function ({ matchUtilities, theme }) {
|
|
109
|
+
matchUtilities({
|
|
110
|
+
'backdrop-grayscale': (value) => ({
|
|
111
|
+
backdropFilter: `grayscale(${value})`,
|
|
112
|
+
}),
|
|
113
|
+
}, { values: theme('backdropGrayscale') });
|
|
114
|
+
}),
|
|
115
|
+
backdropHueRotate: plugin(function ({ matchUtilities, theme }) {
|
|
116
|
+
matchUtilities({
|
|
117
|
+
'backdrop-hue-rotate': (value) => ({
|
|
118
|
+
backdropFilter: `hue-rotate(${value})`,
|
|
119
|
+
}),
|
|
120
|
+
}, { values: theme('backdropHueRotate'), supportsNegativeValues: true });
|
|
121
|
+
}),
|
|
122
|
+
backdropInvert: plugin(function ({ matchUtilities, theme }) {
|
|
123
|
+
matchUtilities({
|
|
124
|
+
'backdrop-invert': (value) => ({
|
|
125
|
+
backdropFilter: `invert(${value})`,
|
|
126
|
+
}),
|
|
127
|
+
}, { values: theme('backdropInvert') });
|
|
128
|
+
}),
|
|
129
|
+
backdropOpacity: plugin(function ({ matchUtilities, theme }) {
|
|
130
|
+
matchUtilities({
|
|
131
|
+
'backdrop-opacity': (value) => ({
|
|
132
|
+
backdropFilter: `opacity(${value})`,
|
|
133
|
+
}),
|
|
134
|
+
}, { values: theme('backdropOpacity') });
|
|
135
|
+
}),
|
|
136
|
+
backdropSaturate: plugin(function ({ matchUtilities, theme }) {
|
|
137
|
+
matchUtilities({
|
|
138
|
+
'backdrop-saturate': (value) => ({
|
|
139
|
+
backdropFilter: `saturate(${value})`,
|
|
140
|
+
}),
|
|
141
|
+
}, { values: theme('backdropSaturate') });
|
|
142
|
+
}),
|
|
143
|
+
backdropSepia: plugin(function ({ matchUtilities, theme }) {
|
|
144
|
+
matchUtilities({
|
|
145
|
+
'backdrop-sepia': (value) => ({
|
|
146
|
+
backdropFilter: `sepia(${value})`,
|
|
147
|
+
}),
|
|
148
|
+
}, { values: theme('backdropSepia') });
|
|
149
|
+
}),
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
const emailClientVariants = plugin(function ({ addVariant }) {
|
|
153
|
+
// Outlook.com dark mode
|
|
154
|
+
addVariant('ogsc', '[data-ogsc] &');
|
|
155
|
+
addVariant('ogsb', '[data-ogsb] &');
|
|
156
|
+
// Gmail (webmail)
|
|
157
|
+
addVariant('gmail', 'u + .body &');
|
|
158
|
+
// Gmail (Android)
|
|
159
|
+
addVariant('gmail-android', 'div > u + .body &');
|
|
160
|
+
// Apple Mail
|
|
161
|
+
addVariant('apple-mail', '.Singleton &');
|
|
162
|
+
// iOS Mail 10+
|
|
163
|
+
addVariant('ios', '@supports (-webkit-overflow-scrolling:touch) and (color:#ffff)');
|
|
164
|
+
// iOS Mail 15+
|
|
165
|
+
addVariant('ios-15', '@supports (-webkit-overflow-scrolling:touch) and (aspect-ratio: 1 / 1)');
|
|
166
|
+
// Open-Xchange (multiple clients)
|
|
167
|
+
addVariant('ox', '&[class^="ox-"]');
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
/* eslint-disable */
|
|
171
|
+
var msoBorderColors = {
|
|
172
|
+
auto: "auto",
|
|
173
|
+
windowtext: "windowtext",
|
|
174
|
+
apples: "apples",
|
|
175
|
+
"arched-scallops": "arched-scallops",
|
|
176
|
+
"baby-pacifier": "baby-pacifier",
|
|
177
|
+
"baby-rattle": "baby-rattle",
|
|
178
|
+
"balloons-3-colors": "balloons-3-colors",
|
|
179
|
+
"balloons-hot-air": "balloons-hot-air",
|
|
180
|
+
"basic-black-dashes": "basic-black-dashes",
|
|
181
|
+
"basic-black-dots": "basic-black-dots",
|
|
182
|
+
"basic-black-squares": "basic-black-squares",
|
|
183
|
+
"basic-thin-lines": "basic-thin-lines",
|
|
184
|
+
"basic-white-dashes": "basic-white-dashes",
|
|
185
|
+
"basic-white-dots": "basic-white-dots",
|
|
186
|
+
"basic-white-squares": "basic-white-squares",
|
|
187
|
+
"basic-wide-inline": "basic-wide-inline",
|
|
188
|
+
"basic-wide-midline": "basic-wide-midline",
|
|
189
|
+
"basic-wide-outline": "basic-wide-outline",
|
|
190
|
+
bats: "bats",
|
|
191
|
+
birds: "birds",
|
|
192
|
+
"birds-flight": "birds-flight",
|
|
193
|
+
cabins: "cabins",
|
|
194
|
+
"cake-slice": "cake-slice",
|
|
195
|
+
"candy-corn": "candy-corn",
|
|
196
|
+
"celtic-knotwork": "celtic-knotwork",
|
|
197
|
+
"certificate-banner": "certificate-banner",
|
|
198
|
+
"chain-link": "chain-link",
|
|
199
|
+
"champagne-bottle": "champagne-bottle",
|
|
200
|
+
"checked-bar-black": "checked-bar-black",
|
|
201
|
+
"checked-bar-color": "checked-bar-color",
|
|
202
|
+
checkered: "checkered",
|
|
203
|
+
"christmas-tree": "christmas-tree",
|
|
204
|
+
"circles-lines": "circles-lines",
|
|
205
|
+
"circles-rectangles": "circles-rectangles",
|
|
206
|
+
"classical-wave": "classical-wave",
|
|
207
|
+
clocks: "clocks",
|
|
208
|
+
"<color>": "<color>",
|
|
209
|
+
compass: "compass",
|
|
210
|
+
confetti: "confetti",
|
|
211
|
+
"confetti-grays": "confetti-grays",
|
|
212
|
+
"confetti-outline": "confetti-outline",
|
|
213
|
+
"confetti-streamers": "confetti-streamers",
|
|
214
|
+
"confetti-white": "confetti-white",
|
|
215
|
+
"corner-triangles": "corner-triangles",
|
|
216
|
+
"coupon-cutout-dashes": "coupon-cutout-dashes",
|
|
217
|
+
"coupon-cutout-dots": "coupon-cutout-dots",
|
|
218
|
+
"crazy-maze": "crazy-maze",
|
|
219
|
+
"creatures-butterfly": "creatures-butterfly",
|
|
220
|
+
"creatures-fish": "creatures-fish",
|
|
221
|
+
"creatures-insects": "creatures-insects",
|
|
222
|
+
"creatures-lady-bug": "creatures-lady-bug",
|
|
223
|
+
"cross-stitch": "cross-stitch",
|
|
224
|
+
cup: "cup",
|
|
225
|
+
"dash-dot-stroked": "dash-dot-stroked",
|
|
226
|
+
dashed: "dashed",
|
|
227
|
+
"dash-large-gap": "dash-large-gap",
|
|
228
|
+
"dash-small-gap": "dash-small-gap",
|
|
229
|
+
"deco-arch": "deco-arch",
|
|
230
|
+
"deco-arch-color": "deco-arch-color",
|
|
231
|
+
"deco-blocks": "deco-blocks",
|
|
232
|
+
"diamonds-gray": "diamonds-gray",
|
|
233
|
+
"dot-dash": "dot-dash",
|
|
234
|
+
"dot-dash-slanted": "dot-dash-slanted",
|
|
235
|
+
"dot-dot-dash": "dot-dot-dash",
|
|
236
|
+
dotted: "dotted",
|
|
237
|
+
double: "double",
|
|
238
|
+
"double-d": "double-d",
|
|
239
|
+
"double-diamonds": "double-diamonds",
|
|
240
|
+
"double-wave": "double-wave",
|
|
241
|
+
"earth-1": "earth-1",
|
|
242
|
+
"earth-2": "earth-2",
|
|
243
|
+
"eclipsing-squares-1": "eclipsing-squares-1",
|
|
244
|
+
"eclipsing-squares-2": "eclipsing-squares-2",
|
|
245
|
+
"eggs-black": "eggs-black",
|
|
246
|
+
"emboss-3d": "emboss-3d",
|
|
247
|
+
"engrave-3d": "engrave-3d",
|
|
248
|
+
fans: "fans",
|
|
249
|
+
film: "film",
|
|
250
|
+
firecrackers: "firecrackers",
|
|
251
|
+
"flowers-block-print": "flowers-block-print",
|
|
252
|
+
"flowers-daisies": "flowers-daisies",
|
|
253
|
+
"flowers-modern-1": "flowers-modern-1",
|
|
254
|
+
"flowers-modern-2": "flowers-modern-2",
|
|
255
|
+
"flowers-pansy": "flowers-pansy",
|
|
256
|
+
"flowers-red-rose": "flowers-red-rose",
|
|
257
|
+
"flowers-roses": "flowers-roses",
|
|
258
|
+
"flowers-teacup": "flowers-teacup",
|
|
259
|
+
"flowers-tiny": "flowers-tiny",
|
|
260
|
+
gems: "gems",
|
|
261
|
+
"gingerbread-man": "gingerbread-man",
|
|
262
|
+
gradient: "gradient",
|
|
263
|
+
groove: "groove",
|
|
264
|
+
hairline: "hairline",
|
|
265
|
+
"handmade-1": "handmade-1",
|
|
266
|
+
"handmade-2": "handmade-2",
|
|
267
|
+
"heart-balloon": "heart-balloon",
|
|
268
|
+
"heart-gray": "heart-gray",
|
|
269
|
+
hearts: "hearts",
|
|
270
|
+
"heebie-jeebies": "heebie-jeebies",
|
|
271
|
+
holly: "holly",
|
|
272
|
+
"house-funky": "house-funky",
|
|
273
|
+
hypnotic: "hypnotic",
|
|
274
|
+
"ice-cream-cones": "ice-cream-cones",
|
|
275
|
+
inset: "inset",
|
|
276
|
+
"<length>": "<length>",
|
|
277
|
+
"light-bulb": "light-bulb",
|
|
278
|
+
"lightning-1": "lightning-1",
|
|
279
|
+
"lightning-2": "lightning-2",
|
|
280
|
+
"maple-leaf": "maple-leaf",
|
|
281
|
+
"maple-muffins": "maple-muffins",
|
|
282
|
+
"map-pins": "map-pins",
|
|
283
|
+
marquee: "marquee",
|
|
284
|
+
"marquee-toothed": "marquee-toothed",
|
|
285
|
+
medium: "medium",
|
|
286
|
+
moons: "moons",
|
|
287
|
+
mosaic: "mosaic",
|
|
288
|
+
"music-notes": "music-notes",
|
|
289
|
+
none: "none",
|
|
290
|
+
northwest: "northwest",
|
|
291
|
+
outset: "outset",
|
|
292
|
+
ovals: "ovals",
|
|
293
|
+
packages: "packages",
|
|
294
|
+
"palms-black": "palms-black",
|
|
295
|
+
"palms-color": "palms-color",
|
|
296
|
+
"paper-clips": "paper-clips",
|
|
297
|
+
papyrus: "papyrus",
|
|
298
|
+
"party-favor": "party-favor",
|
|
299
|
+
"party-glass": "party-glass",
|
|
300
|
+
pencils: "pencils",
|
|
301
|
+
people: "people",
|
|
302
|
+
"people-hats": "people-hats",
|
|
303
|
+
"people-waving": "people-waving",
|
|
304
|
+
poinsettias: "poinsettias",
|
|
305
|
+
"postage-stamp": "postage-stamp",
|
|
306
|
+
"pumpkin-1": "pumpkin-1",
|
|
307
|
+
"push-pin-note-1": "push-pin-note-1",
|
|
308
|
+
"push-pin-note-2": "push-pin-note-2",
|
|
309
|
+
pyramids: "pyramids",
|
|
310
|
+
"pyramids-above": "pyramids-above",
|
|
311
|
+
quadrants: "quadrants",
|
|
312
|
+
ridge: "ridge",
|
|
313
|
+
rings: "rings",
|
|
314
|
+
safari: "safari",
|
|
315
|
+
sawtooth: "sawtooth",
|
|
316
|
+
"sawtooth-gray": "sawtooth-gray",
|
|
317
|
+
"scared-cat": "scared-cat",
|
|
318
|
+
seattle: "seattle",
|
|
319
|
+
"shadowed-squares": "shadowed-squares",
|
|
320
|
+
"sharks-teeth": "sharks-teeth",
|
|
321
|
+
"shorebird-tracks": "shorebird-tracks",
|
|
322
|
+
"short-dash": "short-dash",
|
|
323
|
+
skyrocket: "skyrocket",
|
|
324
|
+
"snowflake-fancy": "snowflake-fancy",
|
|
325
|
+
snowflakes: "snowflakes",
|
|
326
|
+
solid: "solid",
|
|
327
|
+
"solid-thick": "solid-thick",
|
|
328
|
+
sombrero: "sombrero",
|
|
329
|
+
southwest: "southwest",
|
|
330
|
+
stars: "stars",
|
|
331
|
+
"stars-3d": "stars-3d",
|
|
332
|
+
"stars-black": "stars-black",
|
|
333
|
+
"stars-shadowed": "stars-shadowed",
|
|
334
|
+
"stars-top": "stars-top",
|
|
335
|
+
sun: "sun",
|
|
336
|
+
swirligig: "swirligig",
|
|
337
|
+
thick: "thick",
|
|
338
|
+
"thick-thin-large-gap": "thick-thin-large-gap",
|
|
339
|
+
"thick-thin-medium-gap": "thick-thin-medium-gap",
|
|
340
|
+
"thick-thin-small-gap": "thick-thin-small-gap",
|
|
341
|
+
"thick-thin-thick-small-gap": "thick-thin-thick-small-gap",
|
|
342
|
+
thin: "thin",
|
|
343
|
+
"thin-thick-large-gap": "thin-thick-large-gap",
|
|
344
|
+
"thin-thick-medium-gap": "thin-thick-medium-gap",
|
|
345
|
+
"thin-thick-small-gap": "thin-thick-small-gap",
|
|
346
|
+
"thin-thick-thin-large-gap": "thin-thick-thin-large-gap",
|
|
347
|
+
"thin-thick-thin-medium-gap": "thin-thick-thin-medium-gap",
|
|
348
|
+
"thin-thick-thin-small-gap": "thin-thick-thin-small-gap",
|
|
349
|
+
"three-d-emboss": "three-d-emboss",
|
|
350
|
+
"three-d-engrave": "three-d-engrave",
|
|
351
|
+
"torn-paper": "torn-paper",
|
|
352
|
+
"torn-paper-black": "torn-paper-black",
|
|
353
|
+
trees: "trees",
|
|
354
|
+
"triangle-party": "triangle-party",
|
|
355
|
+
triangles: "triangles",
|
|
356
|
+
"tribal-1": "tribal-1",
|
|
357
|
+
"tribal-2": "tribal-2",
|
|
358
|
+
"tribal-3": "tribal-3",
|
|
359
|
+
"tribal-4": "tribal-4",
|
|
360
|
+
"tribal-5": "tribal-5",
|
|
361
|
+
"tribal-6": "tribal-6",
|
|
362
|
+
triple: "triple",
|
|
363
|
+
"twisted-lines-1": "twisted-lines-1",
|
|
364
|
+
"twisted-lines-2": "twisted-lines-2",
|
|
365
|
+
vine: "vine",
|
|
366
|
+
wave: "wave",
|
|
367
|
+
waveline: "waveline",
|
|
368
|
+
"weaving-angles": "weaving-angles",
|
|
369
|
+
"weaving-braid": "weaving-braid",
|
|
370
|
+
"weaving-ribbon": "weaving-ribbon",
|
|
371
|
+
"weaving-strips": "weaving-strips",
|
|
372
|
+
"white-flowers": "white-flowers",
|
|
373
|
+
woodwork: "woodwork",
|
|
374
|
+
"x-illusions": "x-illusions",
|
|
375
|
+
"zany-triangles": "zany-triangles",
|
|
376
|
+
"zig-zag": "zig-zag",
|
|
377
|
+
"zig-zag-stitch": "zig-zag-stitch",
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
381
|
+
const flattenColorPalette = (colors) => Object.assign({}, ...Object.entries(colors !== null && colors !== void 0 ? colors : {}).flatMap(([color, values]) => typeof values == 'object'
|
|
382
|
+
? Object.entries(flattenColorPalette(values)).map(([number, hex]) => ({
|
|
383
|
+
[color + (number === 'DEFAULT' ? '' : `-${number}`)]: hex,
|
|
384
|
+
}))
|
|
385
|
+
: [
|
|
386
|
+
{
|
|
387
|
+
[`${color}`]: values,
|
|
388
|
+
},
|
|
389
|
+
]));
|
|
390
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
391
|
+
const mso = plugin.withOptions(function (options = {}) {
|
|
392
|
+
const respectImportant = Boolean(options.respectImportant);
|
|
393
|
+
return function ({ matchUtilities, theme }) {
|
|
394
|
+
/*
|
|
395
|
+
|-------------------------------------------------------------------------------
|
|
396
|
+
| Utilities with predefined values
|
|
397
|
+
|-------------------------------------------------------------------------------
|
|
398
|
+
|
|
|
399
|
+
| These utilities use predefined values, and some also support values from
|
|
400
|
+
| your config, like spacing or colors.
|
|
401
|
+
|
|
|
402
|
+
*/
|
|
403
|
+
// mso-ansi-font-size, mso-bidi-font-size
|
|
404
|
+
matchUtilities({
|
|
405
|
+
'mso-ansi-font-size': (value) => ({
|
|
406
|
+
'mso-ansi-font-size': value,
|
|
407
|
+
}),
|
|
408
|
+
'mso-bidi-font-size': (value) => ({
|
|
409
|
+
'mso-bidi-font-size': value,
|
|
410
|
+
}),
|
|
411
|
+
}, {
|
|
412
|
+
values: {
|
|
413
|
+
large: 'large',
|
|
414
|
+
larger: 'larger',
|
|
415
|
+
medium: 'medium',
|
|
416
|
+
small: 'small',
|
|
417
|
+
smaller: 'smaller',
|
|
418
|
+
'x-large': 'x-large',
|
|
419
|
+
'x-small': 'x-small',
|
|
420
|
+
'xx-large': 'xx-large',
|
|
421
|
+
'xx-small': 'xx-small',
|
|
422
|
+
...theme('spacing'),
|
|
423
|
+
},
|
|
424
|
+
respectImportant,
|
|
425
|
+
});
|
|
426
|
+
// mso-ansi-font-style, mso-ansi-font-style
|
|
427
|
+
matchUtilities({
|
|
428
|
+
'mso-ansi-font-style': (value) => ({
|
|
429
|
+
'mso-ansi-font-style': value,
|
|
430
|
+
}),
|
|
431
|
+
'mso-bidi-font-style': (value) => ({
|
|
432
|
+
'mso-bidi-font-style': value,
|
|
433
|
+
}),
|
|
434
|
+
}, {
|
|
435
|
+
values: {
|
|
436
|
+
italic: 'italic',
|
|
437
|
+
normal: 'normal',
|
|
438
|
+
oblique: 'oblique',
|
|
439
|
+
},
|
|
440
|
+
respectImportant,
|
|
441
|
+
});
|
|
442
|
+
// mso-ansi-font-weight, mso-bidi-font-weight
|
|
443
|
+
matchUtilities({
|
|
444
|
+
'mso-ansi-font-weight': (value) => ({
|
|
445
|
+
'mso-ansi-font-weight': value,
|
|
446
|
+
}),
|
|
447
|
+
'mso-bidi-font-weight': (value) => ({
|
|
448
|
+
'mso-bidi-font-weight': value,
|
|
449
|
+
}),
|
|
450
|
+
}, {
|
|
451
|
+
values: {
|
|
452
|
+
lighter: 'lighter',
|
|
453
|
+
normal: 'normal',
|
|
454
|
+
bold: 'bold',
|
|
455
|
+
bolder: 'bolder',
|
|
456
|
+
},
|
|
457
|
+
respectImportant,
|
|
458
|
+
});
|
|
459
|
+
// mso-ascii-font-family, mso-bidi-font-family
|
|
460
|
+
matchUtilities({
|
|
461
|
+
'mso-ascii-font-family': (value) => ({
|
|
462
|
+
'mso-ascii-font-family': value,
|
|
463
|
+
}),
|
|
464
|
+
'mso-bidi-font-family': (value) => ({
|
|
465
|
+
'mso-bidi-font-family': value,
|
|
466
|
+
}),
|
|
467
|
+
'mso-arabic-font-family': (value) => ({
|
|
468
|
+
'mso-arabic-font-family': value,
|
|
469
|
+
}),
|
|
470
|
+
}, {
|
|
471
|
+
values: {
|
|
472
|
+
auto: 'auto',
|
|
473
|
+
cursive: 'cursive',
|
|
474
|
+
fantasy: 'fantasy',
|
|
475
|
+
monospace: 'monospace',
|
|
476
|
+
'sans-serif': 'sans-serif',
|
|
477
|
+
serif: 'serif',
|
|
478
|
+
},
|
|
479
|
+
respectImportant,
|
|
480
|
+
});
|
|
481
|
+
// mso-bidi-flag
|
|
482
|
+
matchUtilities({
|
|
483
|
+
'mso-bidi-flag': (value) => ({
|
|
484
|
+
'mso-bidi-flag': value,
|
|
485
|
+
}),
|
|
486
|
+
}, {
|
|
487
|
+
values: {
|
|
488
|
+
on: 'on',
|
|
489
|
+
off: 'off',
|
|
490
|
+
},
|
|
491
|
+
respectImportant,
|
|
492
|
+
});
|
|
493
|
+
// mso-highlight
|
|
494
|
+
matchUtilities({
|
|
495
|
+
'mso-highlight': (value) => ({
|
|
496
|
+
'mso-highlight': value,
|
|
497
|
+
}),
|
|
498
|
+
}, {
|
|
499
|
+
values: {
|
|
500
|
+
auto: 'auto',
|
|
501
|
+
windowtext: 'windowtext',
|
|
502
|
+
...flattenColorPalette(theme('colors')),
|
|
503
|
+
},
|
|
504
|
+
respectImportant,
|
|
505
|
+
});
|
|
506
|
+
// mso-generic-font-family
|
|
507
|
+
matchUtilities({
|
|
508
|
+
'mso-generic-font-family': (value) => ({
|
|
509
|
+
'mso-generic-font-family': value,
|
|
510
|
+
}),
|
|
511
|
+
}, {
|
|
512
|
+
values: {
|
|
513
|
+
auto: 'auto',
|
|
514
|
+
decorative: 'decorative',
|
|
515
|
+
modern: 'modern',
|
|
516
|
+
roman: 'roman',
|
|
517
|
+
script: 'script',
|
|
518
|
+
swiss: 'swiss',
|
|
519
|
+
},
|
|
520
|
+
respectImportant,
|
|
521
|
+
});
|
|
522
|
+
// mso-font-alt
|
|
523
|
+
matchUtilities({
|
|
524
|
+
'mso-font-alt': (value) => ({
|
|
525
|
+
'mso-font-alt': value.toString(),
|
|
526
|
+
}),
|
|
527
|
+
}, {
|
|
528
|
+
values: {
|
|
529
|
+
...theme('fontFamily'),
|
|
530
|
+
},
|
|
531
|
+
respectImportant,
|
|
532
|
+
});
|
|
533
|
+
// mso-element-frame-width, mso-element-frame-height
|
|
534
|
+
matchUtilities({
|
|
535
|
+
'mso-element-frame-width': (value) => ({
|
|
536
|
+
'mso-element-frame-width': value,
|
|
537
|
+
}),
|
|
538
|
+
'mso-element-frame-height': (value) => ({
|
|
539
|
+
'mso-element-frame-height': value,
|
|
540
|
+
}),
|
|
541
|
+
}, {
|
|
542
|
+
values: {
|
|
543
|
+
auto: 'auto',
|
|
544
|
+
...theme('spacing'),
|
|
545
|
+
},
|
|
546
|
+
respectImportant,
|
|
547
|
+
});
|
|
548
|
+
// mso-element
|
|
549
|
+
matchUtilities({
|
|
550
|
+
'mso-element': (value) => ({
|
|
551
|
+
'mso-element': value,
|
|
552
|
+
}),
|
|
553
|
+
}, {
|
|
554
|
+
values: {
|
|
555
|
+
comment: 'comment',
|
|
556
|
+
'comment-list': 'comment-list',
|
|
557
|
+
'dropcap-dropped': 'dropcap-dropped',
|
|
558
|
+
'dropcap-in-margin': 'dropcap-in-margin',
|
|
559
|
+
endnote: 'endnote',
|
|
560
|
+
'endnote-continuation-notice': 'endnote-continuation-notice',
|
|
561
|
+
'endnote-continuation-separator': 'endnote-continuation-separator',
|
|
562
|
+
'endnote-list': 'endnote-list',
|
|
563
|
+
'endnote-separator': 'endnote-separator',
|
|
564
|
+
'field-begin': 'field-begin',
|
|
565
|
+
'field-end': 'field-end',
|
|
566
|
+
'field-separator': 'field-separator',
|
|
567
|
+
footer: 'footer',
|
|
568
|
+
footnote: 'footnote',
|
|
569
|
+
'footnote-continuation-notice': 'footnote-continuation-notice',
|
|
570
|
+
'footnote-continuation-separator': 'footnote-continuation-separator',
|
|
571
|
+
'footnote-list': 'footnote-list',
|
|
572
|
+
'footnote-separator': 'footnote-separator',
|
|
573
|
+
frame: 'frame',
|
|
574
|
+
header: 'header',
|
|
575
|
+
none: 'none',
|
|
576
|
+
'paragraph-mark-properties': 'paragraph-mark-properties',
|
|
577
|
+
'table-head': 'table-head',
|
|
578
|
+
},
|
|
579
|
+
respectImportant,
|
|
580
|
+
});
|
|
581
|
+
// mso-element-wrap
|
|
582
|
+
matchUtilities({
|
|
583
|
+
'mso-element-wrap': (value) => ({
|
|
584
|
+
'mso-element-wrap': value,
|
|
585
|
+
}),
|
|
586
|
+
}, {
|
|
587
|
+
values: {
|
|
588
|
+
around: 'around',
|
|
589
|
+
auto: 'auto',
|
|
590
|
+
none: 'none',
|
|
591
|
+
'no-wrap-beside': 'no-wrap-beside',
|
|
592
|
+
},
|
|
593
|
+
respectImportant,
|
|
594
|
+
});
|
|
595
|
+
// mso-element-left
|
|
596
|
+
matchUtilities({
|
|
597
|
+
'mso-element-left': (value) => ({
|
|
598
|
+
'mso-element-left': value,
|
|
599
|
+
}),
|
|
600
|
+
}, {
|
|
601
|
+
values: {
|
|
602
|
+
center: 'center',
|
|
603
|
+
inside: 'inside',
|
|
604
|
+
left: 'left',
|
|
605
|
+
outside: 'outside',
|
|
606
|
+
right: 'right',
|
|
607
|
+
...theme('spacing'),
|
|
608
|
+
},
|
|
609
|
+
supportsNegativeValues: true,
|
|
610
|
+
respectImportant,
|
|
611
|
+
});
|
|
612
|
+
// mso-element-top
|
|
613
|
+
matchUtilities({
|
|
614
|
+
'mso-element-top': (value) => ({
|
|
615
|
+
'mso-element-top': value,
|
|
616
|
+
}),
|
|
617
|
+
}, {
|
|
618
|
+
values: {
|
|
619
|
+
bottom: 'bottom',
|
|
620
|
+
inside: 'inside',
|
|
621
|
+
middle: 'middle',
|
|
622
|
+
outside: 'outside',
|
|
623
|
+
top: 'top',
|
|
624
|
+
...theme('spacing'),
|
|
625
|
+
},
|
|
626
|
+
supportsNegativeValues: true,
|
|
627
|
+
respectImportant,
|
|
628
|
+
});
|
|
629
|
+
// mso-hide
|
|
630
|
+
matchUtilities({
|
|
631
|
+
'mso-hide': (value) => ({
|
|
632
|
+
'mso-hide': value,
|
|
633
|
+
}),
|
|
634
|
+
}, {
|
|
635
|
+
values: {
|
|
636
|
+
all: 'all',
|
|
637
|
+
none: 'none',
|
|
638
|
+
screen: 'screen',
|
|
639
|
+
},
|
|
640
|
+
respectImportant,
|
|
641
|
+
});
|
|
642
|
+
// mso-color-alt
|
|
643
|
+
matchUtilities({
|
|
644
|
+
'mso-color-alt': (value) => ({
|
|
645
|
+
'mso-color-alt': value,
|
|
646
|
+
}),
|
|
647
|
+
}, {
|
|
648
|
+
values: {
|
|
649
|
+
auto: 'auto',
|
|
650
|
+
windowtext: 'windowtext',
|
|
651
|
+
...flattenColorPalette(theme('colors')),
|
|
652
|
+
},
|
|
653
|
+
respectImportant,
|
|
654
|
+
});
|
|
655
|
+
// mso-line-height-rule
|
|
656
|
+
matchUtilities({
|
|
657
|
+
'mso-line-height-rule': (value) => ({
|
|
658
|
+
'mso-line-height-rule': value,
|
|
659
|
+
}),
|
|
660
|
+
}, {
|
|
661
|
+
values: {
|
|
662
|
+
'at-least': 'at-least',
|
|
663
|
+
exactly: 'exactly',
|
|
664
|
+
},
|
|
665
|
+
respectImportant,
|
|
666
|
+
});
|
|
667
|
+
// mso-line-height-alt
|
|
668
|
+
matchUtilities({
|
|
669
|
+
'mso-line-height-alt': (value) => ({
|
|
670
|
+
'mso-line-height-alt': value,
|
|
671
|
+
}),
|
|
672
|
+
}, {
|
|
673
|
+
values: {
|
|
674
|
+
normal: 'normal',
|
|
675
|
+
...theme('spacing'),
|
|
676
|
+
},
|
|
677
|
+
supportsNegativeValues: true,
|
|
678
|
+
respectImportant,
|
|
679
|
+
});
|
|
680
|
+
// text-underline, text-underline-style
|
|
681
|
+
matchUtilities({
|
|
682
|
+
'text-underline': (value) => ({
|
|
683
|
+
'text-underline': value,
|
|
684
|
+
}),
|
|
685
|
+
'text-underline-style': (value) => ({
|
|
686
|
+
'text-underline-style': value,
|
|
687
|
+
}),
|
|
688
|
+
}, {
|
|
689
|
+
values: {
|
|
690
|
+
auto: 'auto',
|
|
691
|
+
dash: 'dash',
|
|
692
|
+
'dash-dot-dot-heavy': 'dash-dot-dot-heavy',
|
|
693
|
+
'dash-dot-heavy': 'dash-dot-heavy',
|
|
694
|
+
'dashed-heavy': 'dashed-heavy',
|
|
695
|
+
'dash-long': 'dash-long',
|
|
696
|
+
'dash-long-heavy': 'dash-long-heavy',
|
|
697
|
+
'dot-dash': 'dot-dash',
|
|
698
|
+
'dot-dot-dash': 'dot-dot-dash',
|
|
699
|
+
dotted: 'dotted',
|
|
700
|
+
'dotted-heavy': 'dotted-heavy',
|
|
701
|
+
double: 'double',
|
|
702
|
+
'double-accounting': 'double-accounting',
|
|
703
|
+
none: 'none',
|
|
704
|
+
single: 'single',
|
|
705
|
+
'single-accounting': 'single-accounting',
|
|
706
|
+
thick: 'thick',
|
|
707
|
+
wave: 'wave',
|
|
708
|
+
'wavy-double': 'wavy-double',
|
|
709
|
+
'wavy-heavy': 'wavy-heavy',
|
|
710
|
+
windowtext: 'windowtext',
|
|
711
|
+
word: 'word',
|
|
712
|
+
},
|
|
713
|
+
respectImportant,
|
|
714
|
+
});
|
|
715
|
+
// text-underline-color
|
|
716
|
+
matchUtilities({
|
|
717
|
+
'text-underline-color': (value) => ({
|
|
718
|
+
'text-underline-color': value,
|
|
719
|
+
}),
|
|
720
|
+
}, {
|
|
721
|
+
values: {
|
|
722
|
+
auto: 'auto',
|
|
723
|
+
windowtext: 'windowtext',
|
|
724
|
+
...flattenColorPalette(theme('colors')),
|
|
725
|
+
},
|
|
726
|
+
respectImportant,
|
|
727
|
+
});
|
|
728
|
+
// mso-special-format
|
|
729
|
+
matchUtilities({
|
|
730
|
+
'mso-special-format': (value) => ({
|
|
731
|
+
'mso-special-format': value,
|
|
732
|
+
}),
|
|
733
|
+
}, {
|
|
734
|
+
values: {
|
|
735
|
+
bullet: 'bullet',
|
|
736
|
+
},
|
|
737
|
+
respectImportant,
|
|
738
|
+
});
|
|
739
|
+
/*
|
|
740
|
+
|-------------------------------------------------------------------------------
|
|
741
|
+
| Spacing utilities
|
|
742
|
+
|-------------------------------------------------------------------------------
|
|
743
|
+
|
|
|
744
|
+
| These utilities are based on the spacing scale from your config. Some also
|
|
745
|
+
| support negative values.
|
|
746
|
+
|
|
|
747
|
+
*/
|
|
748
|
+
// mso-text-raise
|
|
749
|
+
matchUtilities({
|
|
750
|
+
'mso-text-raise': (value) => ({
|
|
751
|
+
'mso-text-raise': value,
|
|
752
|
+
}),
|
|
753
|
+
}, {
|
|
754
|
+
values: theme('spacing'),
|
|
755
|
+
supportsNegativeValues: true,
|
|
756
|
+
respectImportant,
|
|
757
|
+
});
|
|
758
|
+
// mso-padding-alt
|
|
759
|
+
matchUtilities({
|
|
760
|
+
'mso-padding-alt': (value) => ({
|
|
761
|
+
'mso-padding-alt': value,
|
|
762
|
+
}),
|
|
763
|
+
'mso-padding-top-alt': (value) => ({
|
|
764
|
+
'mso-padding-top-alt': value,
|
|
765
|
+
}),
|
|
766
|
+
'mso-padding-right-alt': (value) => ({
|
|
767
|
+
'mso-padding-right-alt': value,
|
|
768
|
+
}),
|
|
769
|
+
'mso-padding-bottom-alt': (value) => ({
|
|
770
|
+
'mso-padding-bottom-alt': value,
|
|
771
|
+
}),
|
|
772
|
+
'mso-padding-left-alt': (value) => ({
|
|
773
|
+
'mso-padding-left-alt': value,
|
|
774
|
+
}),
|
|
775
|
+
}, {
|
|
776
|
+
values: theme('spacing'),
|
|
777
|
+
respectImportant,
|
|
778
|
+
});
|
|
779
|
+
// mso-margin-alt
|
|
780
|
+
matchUtilities({
|
|
781
|
+
'mso-margin-alt': (value) => ({
|
|
782
|
+
'mso-margin-alt': value,
|
|
783
|
+
}),
|
|
784
|
+
'mso-margin-top-alt': (value) => ({
|
|
785
|
+
'mso-margin-top-alt': value,
|
|
786
|
+
}),
|
|
787
|
+
'mso-margin-right-alt': (value) => ({
|
|
788
|
+
'mso-margin-right-alt': value,
|
|
789
|
+
}),
|
|
790
|
+
'mso-margin-bottom-alt': (value) => ({
|
|
791
|
+
'mso-margin-bottom-alt': value,
|
|
792
|
+
}),
|
|
793
|
+
'mso-margin-left-alt': (value) => ({
|
|
794
|
+
'mso-margin-left-alt': value,
|
|
795
|
+
}),
|
|
796
|
+
}, {
|
|
797
|
+
values: theme('spacing'),
|
|
798
|
+
supportsNegativeValues: true,
|
|
799
|
+
respectImportant,
|
|
800
|
+
});
|
|
801
|
+
// mso-para-margin
|
|
802
|
+
matchUtilities({
|
|
803
|
+
'mso-para-margin': (value) => ({
|
|
804
|
+
'mso-para-margin': value,
|
|
805
|
+
}),
|
|
806
|
+
'mso-para-margin-top': (value) => ({
|
|
807
|
+
'mso-para-margin-top': value,
|
|
808
|
+
}),
|
|
809
|
+
'mso-para-margin-right': (value) => ({
|
|
810
|
+
'mso-para-margin-right': value,
|
|
811
|
+
}),
|
|
812
|
+
'mso-para-margin-bottom': (value) => ({
|
|
813
|
+
'mso-para-margin-bottom': value,
|
|
814
|
+
}),
|
|
815
|
+
'mso-para-margin-left': (value) => ({
|
|
816
|
+
'mso-para-margin-left': value,
|
|
817
|
+
}),
|
|
818
|
+
}, {
|
|
819
|
+
values: theme('spacing'),
|
|
820
|
+
supportsNegativeValues: true,
|
|
821
|
+
respectImportant,
|
|
822
|
+
});
|
|
823
|
+
// mso-text-indent-alt
|
|
824
|
+
matchUtilities({
|
|
825
|
+
'mso-text-indent-alt': (value) => ({
|
|
826
|
+
'mso-text-indent-alt': value,
|
|
827
|
+
}),
|
|
828
|
+
}, {
|
|
829
|
+
values: theme('spacing'),
|
|
830
|
+
supportsNegativeValues: true,
|
|
831
|
+
respectImportant,
|
|
832
|
+
});
|
|
833
|
+
// mso-table-{?}space
|
|
834
|
+
matchUtilities({
|
|
835
|
+
'mso-table-tspace': (value) => ({
|
|
836
|
+
'mso-table-tspace': value,
|
|
837
|
+
}),
|
|
838
|
+
'mso-table-rspace': (value) => ({
|
|
839
|
+
'mso-table-rspace': value,
|
|
840
|
+
}),
|
|
841
|
+
'mso-table-bspace': (value) => ({
|
|
842
|
+
'mso-table-bspace': value,
|
|
843
|
+
}),
|
|
844
|
+
'mso-table-lspace': (value) => ({
|
|
845
|
+
'mso-table-lspace': value,
|
|
846
|
+
}),
|
|
847
|
+
}, {
|
|
848
|
+
values: theme('spacing'),
|
|
849
|
+
supportsNegativeValues: true,
|
|
850
|
+
respectImportant,
|
|
851
|
+
});
|
|
852
|
+
// mso-font-width
|
|
853
|
+
matchUtilities({
|
|
854
|
+
'mso-font-width': (value) => ({
|
|
855
|
+
'mso-font-width': value,
|
|
856
|
+
}),
|
|
857
|
+
}, {
|
|
858
|
+
values: theme('width'),
|
|
859
|
+
respectImportant,
|
|
860
|
+
});
|
|
861
|
+
// mso-shading
|
|
862
|
+
matchUtilities({
|
|
863
|
+
'mso-shading': (value) => ({
|
|
864
|
+
'mso-shading': value,
|
|
865
|
+
}),
|
|
866
|
+
}, {
|
|
867
|
+
values: {
|
|
868
|
+
auto: 'auto',
|
|
869
|
+
windowtext: 'windowtext',
|
|
870
|
+
transparent: 'transparent',
|
|
871
|
+
...flattenColorPalette(theme('colors')),
|
|
872
|
+
},
|
|
873
|
+
respectImportant,
|
|
874
|
+
});
|
|
875
|
+
// mso-shadow-color
|
|
876
|
+
matchUtilities({
|
|
877
|
+
'mso-shadow-color': (value) => ({
|
|
878
|
+
'mso-shadow-color': value,
|
|
879
|
+
}),
|
|
880
|
+
}, {
|
|
881
|
+
values: {
|
|
882
|
+
auto: 'auto',
|
|
883
|
+
windowtext: 'windowtext',
|
|
884
|
+
...flattenColorPalette(theme('colors')),
|
|
885
|
+
},
|
|
886
|
+
respectImportant,
|
|
887
|
+
});
|
|
888
|
+
// mso-element-frame-vspace, mso-element-frame-hspace
|
|
889
|
+
matchUtilities({
|
|
890
|
+
'mso-element-frame-vspace': (value) => ({
|
|
891
|
+
'mso-element-frame-vspace': value,
|
|
892
|
+
}),
|
|
893
|
+
'mso-element-frame-hspace': (value) => ({
|
|
894
|
+
'mso-element-frame-hspace': value,
|
|
895
|
+
}),
|
|
896
|
+
}, {
|
|
897
|
+
values: theme('spacing'),
|
|
898
|
+
supportsNegativeValues: true,
|
|
899
|
+
respectImportant,
|
|
900
|
+
});
|
|
901
|
+
// mso-border colors
|
|
902
|
+
matchUtilities({
|
|
903
|
+
'mso-border-alt': (value) => ({
|
|
904
|
+
'mso-border-alt': value,
|
|
905
|
+
}),
|
|
906
|
+
'mso-border-between': (value) => ({
|
|
907
|
+
'mso-border-between': value,
|
|
908
|
+
}),
|
|
909
|
+
'mso-border-bottom-alt': (value) => ({
|
|
910
|
+
'mso-border-bottom-alt': value,
|
|
911
|
+
}),
|
|
912
|
+
'mso-border-left-alt': (value) => ({
|
|
913
|
+
'mso-border-left-alt': value,
|
|
914
|
+
}),
|
|
915
|
+
'mso-border-right-alt': (value) => ({
|
|
916
|
+
'mso-border-right-alt': value,
|
|
917
|
+
}),
|
|
918
|
+
'mso-border-top-alt': (value) => ({
|
|
919
|
+
'mso-border-top-alt': value,
|
|
920
|
+
}),
|
|
921
|
+
}, {
|
|
922
|
+
values: {
|
|
923
|
+
...msoBorderColors,
|
|
924
|
+
...flattenColorPalette(theme('colors')),
|
|
925
|
+
},
|
|
926
|
+
respectImportant,
|
|
927
|
+
});
|
|
928
|
+
// mso-border widths
|
|
929
|
+
matchUtilities({
|
|
930
|
+
'mso-border-between-width': (value) => ({
|
|
931
|
+
'mso-border-between-width': value,
|
|
932
|
+
}),
|
|
933
|
+
'mso-border-width-alt': (value) => ({
|
|
934
|
+
'mso-border-width-alt': value,
|
|
935
|
+
}),
|
|
936
|
+
'mso-border-bottom-width-alt': (value) => ({
|
|
937
|
+
'mso-border-bottom-width-alt': value,
|
|
938
|
+
}),
|
|
939
|
+
'mso-border-left-width-alt': (value) => ({
|
|
940
|
+
'mso-border-left-width-alt': value,
|
|
941
|
+
}),
|
|
942
|
+
'mso-border-right-width-alt': (value) => ({
|
|
943
|
+
'mso-border-right-width-alt': value,
|
|
944
|
+
}),
|
|
945
|
+
'mso-border-top-width-alt': (value) => ({
|
|
946
|
+
'mso-border-top-width-alt': value,
|
|
947
|
+
}),
|
|
948
|
+
}, {
|
|
949
|
+
values: {
|
|
950
|
+
medium: 'medium',
|
|
951
|
+
thick: 'thick',
|
|
952
|
+
thin: 'thin',
|
|
953
|
+
...theme('spacing'),
|
|
954
|
+
},
|
|
955
|
+
respectImportant,
|
|
956
|
+
});
|
|
957
|
+
// mso-border-*-source
|
|
958
|
+
matchUtilities({
|
|
959
|
+
'mso-border-bottom-source': (value) => ({
|
|
960
|
+
'mso-border-bottom-source': value,
|
|
961
|
+
}),
|
|
962
|
+
'mso-border-left-source': (value) => ({
|
|
963
|
+
'mso-border-left-source': value,
|
|
964
|
+
}),
|
|
965
|
+
'mso-border-right-source': (value) => ({
|
|
966
|
+
'mso-border-right-source': value,
|
|
967
|
+
}),
|
|
968
|
+
'mso-border-top-source': (value) => ({
|
|
969
|
+
'mso-border-top-source': value,
|
|
970
|
+
}),
|
|
971
|
+
}, {
|
|
972
|
+
values: {
|
|
973
|
+
auto: 'auto',
|
|
974
|
+
background: 'background',
|
|
975
|
+
foreground: 'foreground',
|
|
976
|
+
},
|
|
977
|
+
respectImportant,
|
|
978
|
+
});
|
|
979
|
+
// mso-border-shadow
|
|
980
|
+
matchUtilities({
|
|
981
|
+
'mso-border-shadow': (value) => ({
|
|
982
|
+
'mso-border-shadow': value,
|
|
983
|
+
}),
|
|
984
|
+
}, {
|
|
985
|
+
values: {
|
|
986
|
+
no: 'no',
|
|
987
|
+
yes: 'yes',
|
|
988
|
+
},
|
|
989
|
+
respectImportant,
|
|
990
|
+
});
|
|
991
|
+
// mso-border-effect
|
|
992
|
+
matchUtilities({
|
|
993
|
+
'mso-border-effect': (value) => ({
|
|
994
|
+
'mso-border-effect': value,
|
|
995
|
+
}),
|
|
996
|
+
}, {
|
|
997
|
+
values: {
|
|
998
|
+
'3d': '3d',
|
|
999
|
+
box: 'box',
|
|
1000
|
+
},
|
|
1001
|
+
respectImportant,
|
|
1002
|
+
});
|
|
1003
|
+
};
|
|
1004
|
+
});
|
|
1005
|
+
|
|
1006
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1007
|
+
const { disabledFilterPlugins, ...filterPlugins } = internalFilterPlugins;
|
|
1008
|
+
/** @type {import('tailwindcss-v3').Config} */
|
|
1009
|
+
const tailwindcssPresetEmail = {
|
|
1010
|
+
important: true,
|
|
1011
|
+
theme: {
|
|
1012
|
+
screens: {
|
|
1013
|
+
sm: { max: '600px' },
|
|
1014
|
+
xs: { max: '430px' },
|
|
1015
|
+
},
|
|
1016
|
+
extend: {
|
|
1017
|
+
colors: {
|
|
1018
|
+
black: '#000001',
|
|
1019
|
+
white: '#fffffe',
|
|
1020
|
+
},
|
|
1021
|
+
spacing: {
|
|
1022
|
+
screen: '100vw',
|
|
1023
|
+
full: '100%',
|
|
1024
|
+
0: '0',
|
|
1025
|
+
0.5: '2px',
|
|
1026
|
+
1: '4px',
|
|
1027
|
+
1.5: '6px',
|
|
1028
|
+
2: '8px',
|
|
1029
|
+
2.5: '10px',
|
|
1030
|
+
3: '12px',
|
|
1031
|
+
3.5: '14px',
|
|
1032
|
+
4: '16px',
|
|
1033
|
+
4.5: '18px',
|
|
1034
|
+
5: '20px',
|
|
1035
|
+
5.5: '22px',
|
|
1036
|
+
6: '24px',
|
|
1037
|
+
6.5: '26px',
|
|
1038
|
+
7: '28px',
|
|
1039
|
+
7.5: '30px',
|
|
1040
|
+
8: '32px',
|
|
1041
|
+
8.5: '34px',
|
|
1042
|
+
9: '36px',
|
|
1043
|
+
9.5: '38px',
|
|
1044
|
+
10: '40px',
|
|
1045
|
+
11: '44px',
|
|
1046
|
+
12: '48px',
|
|
1047
|
+
14: '56px',
|
|
1048
|
+
16: '64px',
|
|
1049
|
+
18: '72px',
|
|
1050
|
+
20: '80px',
|
|
1051
|
+
22: '88px',
|
|
1052
|
+
24: '96px',
|
|
1053
|
+
26: '104px',
|
|
1054
|
+
28: '112px',
|
|
1055
|
+
30: '120px',
|
|
1056
|
+
32: '128px',
|
|
1057
|
+
34: '136px',
|
|
1058
|
+
36: '144px',
|
|
1059
|
+
38: '152px',
|
|
1060
|
+
40: '160px',
|
|
1061
|
+
42: '168px',
|
|
1062
|
+
44: '176px',
|
|
1063
|
+
46: '184px',
|
|
1064
|
+
48: '192px',
|
|
1065
|
+
50: '200px',
|
|
1066
|
+
52: '208px',
|
|
1067
|
+
54: '216px',
|
|
1068
|
+
56: '224px',
|
|
1069
|
+
58: '232px',
|
|
1070
|
+
60: '240px',
|
|
1071
|
+
62: '248px',
|
|
1072
|
+
64: '256px',
|
|
1073
|
+
66: '264px',
|
|
1074
|
+
68: '272px',
|
|
1075
|
+
70: '280px',
|
|
1076
|
+
72: '288px',
|
|
1077
|
+
74: '296px',
|
|
1078
|
+
76: '304px',
|
|
1079
|
+
78: '312px',
|
|
1080
|
+
80: '320px',
|
|
1081
|
+
82: '328px',
|
|
1082
|
+
84: '336px',
|
|
1083
|
+
86: '344px',
|
|
1084
|
+
88: '352px',
|
|
1085
|
+
90: '360px',
|
|
1086
|
+
92: '368px',
|
|
1087
|
+
94: '376px',
|
|
1088
|
+
96: '384px',
|
|
1089
|
+
},
|
|
1090
|
+
borderRadius: {
|
|
1091
|
+
none: '0px',
|
|
1092
|
+
sm: '2px',
|
|
1093
|
+
DEFAULT: '4px',
|
|
1094
|
+
md: '6px',
|
|
1095
|
+
lg: '8px',
|
|
1096
|
+
xl: '12px',
|
|
1097
|
+
'2xl': '16px',
|
|
1098
|
+
'3xl': '24px',
|
|
1099
|
+
},
|
|
1100
|
+
boxShadow: {
|
|
1101
|
+
sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
|
|
1102
|
+
DEFAULT: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)',
|
|
1103
|
+
md: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)',
|
|
1104
|
+
lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)',
|
|
1105
|
+
xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)',
|
|
1106
|
+
'2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
|
|
1107
|
+
inner: 'inset 0 2px 4px 0 rgba(0, 0, 0, 0.05)',
|
|
1108
|
+
},
|
|
1109
|
+
dropShadow: {
|
|
1110
|
+
sm: '0 1px 1px rgba(0, 0, 0, 0.05)',
|
|
1111
|
+
DEFAULT: ['0 1px 2px rgba(0, 0, 0, 0.1)', '0 1px 1px rgba(0, 0, 0, 0.06)'],
|
|
1112
|
+
md: ['0 4px 3px rgba(0, 0, 0, 0.07)', '0 2px 2px rgba(0, 0, 0, 0.06)'],
|
|
1113
|
+
lg: ['0 10px 8px rgba(0, 0, 0, 0.04)', '0 4px 3px rgba(0, 0, 0, 0.1)'],
|
|
1114
|
+
xl: ['0 20px 13px rgba(0, 0, 0, 0.03)', '0 8px 5px rgba(0, 0, 0, 0.08)'],
|
|
1115
|
+
'2xl': '0 25px 25px rgba(0, 0, 0, 0.15)',
|
|
1116
|
+
none: '0 0 #000',
|
|
1117
|
+
},
|
|
1118
|
+
fontFamily: {
|
|
1119
|
+
inter: ['Inter', 'ui-sans-serif', 'system-ui', '-apple-system', '"Segoe UI"', 'sans-serif'],
|
|
1120
|
+
sans: ['ui-sans-serif', 'system-ui', '-apple-system', '"Segoe UI"', 'sans-serif'],
|
|
1121
|
+
serif: ['ui-serif', 'Georgia', 'Cambria', '"Times New Roman"', 'Times', 'serif'],
|
|
1122
|
+
mono: ['ui-monospace', 'Menlo', 'Consolas', 'monospace'],
|
|
1123
|
+
},
|
|
1124
|
+
fontSize: {
|
|
1125
|
+
0: '0',
|
|
1126
|
+
xxs: '11px',
|
|
1127
|
+
xs: '12px',
|
|
1128
|
+
'2xs': '13px',
|
|
1129
|
+
sm: '14px',
|
|
1130
|
+
'2sm': '15px',
|
|
1131
|
+
base: '16px',
|
|
1132
|
+
lg: '18px',
|
|
1133
|
+
xl: '20px',
|
|
1134
|
+
'2xl': '24px',
|
|
1135
|
+
'3xl': '30px',
|
|
1136
|
+
'4xl': '36px',
|
|
1137
|
+
'5xl': '48px',
|
|
1138
|
+
'6xl': '60px',
|
|
1139
|
+
'7xl': '72px',
|
|
1140
|
+
'8xl': '96px',
|
|
1141
|
+
'9xl': '128px',
|
|
1142
|
+
},
|
|
1143
|
+
letterSpacing: (theme) => ({
|
|
1144
|
+
...theme('width'),
|
|
1145
|
+
}),
|
|
1146
|
+
lineHeight: (theme) => ({
|
|
1147
|
+
...theme('width'),
|
|
1148
|
+
}),
|
|
1149
|
+
maxWidth: (theme) => ({
|
|
1150
|
+
...theme('width'),
|
|
1151
|
+
xs: '160px',
|
|
1152
|
+
sm: '192px',
|
|
1153
|
+
md: '224px',
|
|
1154
|
+
lg: '256px',
|
|
1155
|
+
xl: '288px',
|
|
1156
|
+
'2xl': '336px',
|
|
1157
|
+
'3xl': '384px',
|
|
1158
|
+
'4xl': '448px',
|
|
1159
|
+
'5xl': '512px',
|
|
1160
|
+
'6xl': '576px',
|
|
1161
|
+
'7xl': '640px',
|
|
1162
|
+
}),
|
|
1163
|
+
minHeight: (theme) => ({
|
|
1164
|
+
...theme('width'),
|
|
1165
|
+
}),
|
|
1166
|
+
minWidth: (theme) => ({
|
|
1167
|
+
...theme('width'),
|
|
1168
|
+
}),
|
|
1169
|
+
},
|
|
1170
|
+
},
|
|
1171
|
+
// We disable all core plugins that we redefine
|
|
1172
|
+
corePlugins: {
|
|
1173
|
+
preflight: false,
|
|
1174
|
+
backgroundOpacity: false,
|
|
1175
|
+
borderOpacity: false,
|
|
1176
|
+
borderSpacing: false,
|
|
1177
|
+
boxShadow: false,
|
|
1178
|
+
boxShadowColor: false,
|
|
1179
|
+
divideOpacity: false,
|
|
1180
|
+
placeholderOpacity: false,
|
|
1181
|
+
textOpacity: false,
|
|
1182
|
+
textDecoration: false,
|
|
1183
|
+
...disabledFilterPlugins,
|
|
1184
|
+
},
|
|
1185
|
+
plugins: [
|
|
1186
|
+
plugin(function ({ matchUtilities, addUtilities, theme }) {
|
|
1187
|
+
// Border-spacing utilities
|
|
1188
|
+
matchUtilities({
|
|
1189
|
+
'border-spacing': (value) => ({
|
|
1190
|
+
'border-spacing': value,
|
|
1191
|
+
}),
|
|
1192
|
+
'border-spacing-y': (value) => ({
|
|
1193
|
+
'border-spacing': `0 ${value}`,
|
|
1194
|
+
}),
|
|
1195
|
+
'border-spacing-x': (value) => ({
|
|
1196
|
+
'border-spacing': `${value} 0`,
|
|
1197
|
+
}),
|
|
1198
|
+
}, { values: theme('borderSpacing') });
|
|
1199
|
+
// Box-shadow utilities
|
|
1200
|
+
matchUtilities({
|
|
1201
|
+
shadow: (value) => ({
|
|
1202
|
+
boxShadow: value,
|
|
1203
|
+
}),
|
|
1204
|
+
}, {
|
|
1205
|
+
values: theme('boxShadow'),
|
|
1206
|
+
});
|
|
1207
|
+
// Text decoration utilities
|
|
1208
|
+
addUtilities({
|
|
1209
|
+
'.underline': { 'text-decoration': 'underline' },
|
|
1210
|
+
'.overline': { 'text-decoration': 'overline' },
|
|
1211
|
+
'.line-through': { 'text-decoration': 'line-through' },
|
|
1212
|
+
'.no-underline': { 'text-decoration': 'none' },
|
|
1213
|
+
});
|
|
1214
|
+
}),
|
|
1215
|
+
// Filters
|
|
1216
|
+
...Object.values(filterPlugins),
|
|
1217
|
+
// MSO utilities
|
|
1218
|
+
mso,
|
|
1219
|
+
// Email client targeting variants
|
|
1220
|
+
emailClientVariants,
|
|
1221
|
+
],
|
|
1222
|
+
};
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* Generated bundle index. Do not edit.
|
|
1226
|
+
*/
|
|
1227
|
+
|
|
1228
|
+
export { tailwindcssPresetEmail };
|
|
1229
|
+
//# sourceMappingURL=keycloakify-angular-email-tailwindcss-preset-email.mjs.map
|