@pikacss/plugin-reset 0.0.37

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/dist/index.mjs ADDED
@@ -0,0 +1,880 @@
1
+ import { defineEnginePlugin } from "@pikacss/core";
2
+
3
+ //#region src/resets/andy-bell.ts
4
+ var andy_bell_default = `
5
+ /* Box sizing rules */
6
+ *,
7
+ *::before,
8
+ *::after {
9
+ box-sizing: border-box;
10
+ }
11
+
12
+ /* Remove default margin */
13
+ body,
14
+ h1,
15
+ h2,
16
+ h3,
17
+ h4,
18
+ p,
19
+ figure,
20
+ blockquote,
21
+ dl,
22
+ dd {
23
+ margin: 0;
24
+ }
25
+
26
+ /* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
27
+ ul[role='list'],
28
+ ol[role='list'] {
29
+ list-style: none;
30
+ }
31
+
32
+ /* Set core root defaults */
33
+ html:focus-within {
34
+ scroll-behavior: smooth;
35
+ }
36
+
37
+ /* Set core body defaults */
38
+ body {
39
+ min-height: 100vh;
40
+ text-rendering: optimizeSpeed;
41
+ line-height: 1.5;
42
+ }
43
+
44
+ /* A elements that don't have a class get default styles */
45
+ a:not([class]) {
46
+ text-decoration-skip-ink: auto;
47
+ }
48
+
49
+ /* Make images easier to work with */
50
+ img,
51
+ picture {
52
+ max-width: 100%;
53
+ display: block;
54
+ }
55
+
56
+ /* Inherit fonts for inputs and buttons */
57
+ input,
58
+ button,
59
+ textarea,
60
+ select {
61
+ font: inherit;
62
+ }
63
+
64
+ /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
65
+ @media (prefers-reduced-motion: reduce) {
66
+ html:focus-within {
67
+ scroll-behavior: auto;
68
+ }
69
+
70
+ *,
71
+ *::before,
72
+ *::after {
73
+ animation-duration: 0.01ms !important;
74
+ animation-iteration-count: 1 !important;
75
+ transition-duration: 0.01ms !important;
76
+ scroll-behavior: auto !important;
77
+ }
78
+ }
79
+ `;
80
+
81
+ //#endregion
82
+ //#region src/resets/eric-meyer.ts
83
+ var eric_meyer_default = `
84
+ /* http://meyerweb.com/eric/tools/css/reset/
85
+ v5.0.2 | 20191019
86
+ License: none (public domain)
87
+ */
88
+
89
+ html, body, div, span, applet, object, iframe,
90
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
91
+ a, abbr, acronym, address, big, cite, code,
92
+ del, dfn, em, img, ins, kbd, q, s, samp,
93
+ small, strike, strong, sub, sup, tt, var,
94
+ b, u, i, center,
95
+ dl, dt, dd, ol, ul, li,
96
+ fieldset, form, label, legend,
97
+ table, caption, tbody, tfoot, thead, tr, th, td,
98
+ article, aside, canvas, details, embed,
99
+ figure, figcaption, footer, header, hgroup,
100
+ main, menu, nav, output, ruby, section, summary,
101
+ time, mark, audio, video {
102
+ margin: 0;
103
+ padding: 0;
104
+ border: 0;
105
+ font-size: 100%;
106
+ font: inherit;
107
+ vertical-align: baseline;
108
+ }
109
+ /* HTML5 display-role reset for older browsers */
110
+ article, aside, details, figcaption, figure,
111
+ footer, header, hgroup, main, menu, nav, section {
112
+ display: block;
113
+ }
114
+ /* HTML5 hidden-attribute fix for newer browsers */
115
+ *[hidden] {
116
+ display: none;
117
+ }
118
+ body {
119
+ line-height: 1;
120
+ }
121
+ menu, ol, ul {
122
+ list-style: none;
123
+ }
124
+ blockquote, q {
125
+ quotes: none;
126
+ }
127
+ blockquote:before, blockquote:after,
128
+ q:before, q:after {
129
+ content: '';
130
+ content: none;
131
+ }
132
+ table {
133
+ border-collapse: collapse;
134
+ border-spacing: 0;
135
+ }
136
+ `;
137
+
138
+ //#endregion
139
+ //#region src/resets/modern-normalize.ts
140
+ var modern_normalize_default = `
141
+ /*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
142
+
143
+ /*
144
+ Document
145
+ ========
146
+ */
147
+
148
+ /**
149
+ Use a better box model (opinionated).
150
+ */
151
+
152
+ *,
153
+ ::before,
154
+ ::after {
155
+ box-sizing: border-box;
156
+ }
157
+
158
+ /**
159
+ 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
160
+ 2. Correct the line height in all browsers.
161
+ 3. Prevent adjustments of font size after orientation changes in iOS.
162
+ 4. Use a more readable tab size (opinionated).
163
+ */
164
+
165
+ html {
166
+ font-family:
167
+ system-ui,
168
+ 'Segoe UI',
169
+ Roboto,
170
+ Helvetica,
171
+ Arial,
172
+ sans-serif,
173
+ 'Apple Color Emoji',
174
+ 'Segoe UI Emoji'; /* 1 */
175
+ line-height: 1.15; /* 2 */
176
+ -webkit-text-size-adjust: 100%; /* 3 */
177
+ tab-size: 4; /* 4 */
178
+ }
179
+
180
+ /*
181
+ Sections
182
+ ========
183
+ */
184
+
185
+ /**
186
+ Remove the margin in all browsers.
187
+ */
188
+
189
+ body {
190
+ margin: 0;
191
+ }
192
+
193
+ /*
194
+ Grouping content
195
+ ================
196
+ */
197
+
198
+ /**
199
+ 1. Add the correct height in Firefox.
200
+ 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
201
+ */
202
+
203
+ hr {
204
+ height: 0; /* 1 */
205
+ color: inherit; /* 2 */
206
+ }
207
+
208
+ /*
209
+ Text-level semantics
210
+ ====================
211
+ */
212
+
213
+ /**
214
+ Add the correct font weight in Chrome and Safari.
215
+ */
216
+
217
+ b,
218
+ strong {
219
+ font-weight: bolder;
220
+ }
221
+
222
+ /**
223
+ 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
224
+ 2. Correct the odd 'em' font sizing in all browsers.
225
+ */
226
+
227
+ code,
228
+ kbd,
229
+ samp,
230
+ pre {
231
+ font-family:
232
+ ui-monospace,
233
+ SFMono-Regular,
234
+ Consolas,
235
+ 'Liberation Mono',
236
+ Menlo,
237
+ monospace; /* 1 */
238
+ font-size: 1em; /* 2 */
239
+ }
240
+
241
+ /**
242
+ Add the correct font size in all browsers.
243
+ */
244
+
245
+ small {
246
+ font-size: 80%;
247
+ }
248
+
249
+ /**
250
+ Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
251
+ */
252
+
253
+ sub,
254
+ sup {
255
+ font-size: 75%;
256
+ line-height: 0;
257
+ position: relative;
258
+ vertical-align: baseline;
259
+ }
260
+
261
+ sub {
262
+ bottom: -0.25em;
263
+ }
264
+
265
+ sup {
266
+ top: -0.5em;
267
+ }
268
+
269
+ /*
270
+ Tabular data
271
+ ============
272
+ */
273
+
274
+ /**
275
+ Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
276
+ */
277
+
278
+ table {
279
+ border-color: currentcolor;
280
+ }
281
+
282
+ /*
283
+ Forms
284
+ =====
285
+ */
286
+
287
+ /**
288
+ 1. Change the font styles in all browsers.
289
+ 2. Remove the margin in Firefox and Safari.
290
+ */
291
+
292
+ button,
293
+ input,
294
+ optgroup,
295
+ select,
296
+ textarea {
297
+ font-family: inherit; /* 1 */
298
+ font-size: 100%; /* 1 */
299
+ line-height: 1.15; /* 1 */
300
+ margin: 0; /* 2 */
301
+ }
302
+
303
+ /**
304
+ Correct the inability to style clickable types in iOS and Safari.
305
+ */
306
+
307
+ button,
308
+ [type='button'],
309
+ [type='reset'],
310
+ [type='submit'] {
311
+ -webkit-appearance: button;
312
+ }
313
+
314
+ /**
315
+ Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
316
+ */
317
+
318
+ legend {
319
+ padding: 0;
320
+ }
321
+
322
+ /**
323
+ Add the correct vertical alignment in Chrome and Firefox.
324
+ */
325
+
326
+ progress {
327
+ vertical-align: baseline;
328
+ }
329
+
330
+ /**
331
+ Correct the cursor style of increment and decrement buttons in Safari.
332
+ */
333
+
334
+ ::-webkit-inner-spin-button,
335
+ ::-webkit-outer-spin-button {
336
+ height: auto;
337
+ }
338
+
339
+ /**
340
+ 1. Correct the odd appearance in Chrome and Safari.
341
+ 2. Correct the outline style in Safari.
342
+ */
343
+
344
+ [type='search'] {
345
+ -webkit-appearance: textfield; /* 1 */
346
+ outline-offset: -2px; /* 2 */
347
+ }
348
+
349
+ /**
350
+ Remove the inner padding in Chrome and Safari on macOS.
351
+ */
352
+
353
+ ::-webkit-search-decoration {
354
+ -webkit-appearance: none;
355
+ }
356
+
357
+ /**
358
+ 1. Correct the inability to style clickable types in iOS and Safari.
359
+ 2. Change font properties to 'inherit' in Safari.
360
+ */
361
+
362
+ ::-webkit-file-upload-button {
363
+ -webkit-appearance: button; /* 1 */
364
+ font: inherit; /* 2 */
365
+ }
366
+
367
+ /*
368
+ Interactive
369
+ ===========
370
+ */
371
+
372
+ /*
373
+ Add the correct display in Chrome and Safari.
374
+ */
375
+
376
+ summary {
377
+ display: list-item;
378
+ }
379
+ `;
380
+
381
+ //#endregion
382
+ //#region src/resets/normalize.ts
383
+ var normalize_default = `
384
+ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
385
+
386
+ /* Document
387
+ ========================================================================== */
388
+
389
+ /**
390
+ * 1. Correct the line height in all browsers.
391
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
392
+ */
393
+
394
+ html {
395
+ line-height: 1.15; /* 1 */
396
+ -webkit-text-size-adjust: 100%; /* 2 */
397
+ }
398
+
399
+ /* Sections
400
+ ========================================================================== */
401
+
402
+ /**
403
+ * Remove the margin in all browsers.
404
+ */
405
+
406
+ body {
407
+ margin: 0;
408
+ }
409
+
410
+ /**
411
+ * Render the main element consistently in IE.
412
+ */
413
+
414
+ main {
415
+ display: block;
416
+ }
417
+
418
+ /**
419
+ * Correct the font size and margin on h1 elements within section and
420
+ * article contexts in Chrome, Firefox, and Safari.
421
+ */
422
+
423
+ h1 {
424
+ font-size: 2em;
425
+ margin: 0.67em 0;
426
+ }
427
+
428
+ /* Grouping content
429
+ ========================================================================== */
430
+
431
+ /**
432
+ * 1. Add the correct box sizing in Firefox.
433
+ * 2. Show the overflow in Edge and IE.
434
+ */
435
+
436
+ hr {
437
+ box-sizing: content-box; /* 1 */
438
+ height: 0; /* 1 */
439
+ overflow: visible; /* 2 */
440
+ }
441
+
442
+ /**
443
+ * 1. Correct the inheritance and scaling of font size in all browsers.
444
+ * 2. Correct the odd em font sizing in all browsers.
445
+ */
446
+
447
+ pre {
448
+ font-family: monospace, monospace; /* 1 */
449
+ font-size: 1em; /* 2 */
450
+ }
451
+
452
+ /* Text-level semantics
453
+ ========================================================================== */
454
+
455
+ /**
456
+ * Remove the gray background on active links in IE 10.
457
+ */
458
+
459
+ a {
460
+ background-color: transparent;
461
+ }
462
+
463
+ /**
464
+ * 1. Remove the bottom border in Chrome 57-
465
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
466
+ */
467
+
468
+ abbr[title] {
469
+ border-bottom: none; /* 1 */
470
+ text-decoration: underline; /* 2 */
471
+ text-decoration: underline dotted; /* 2 */
472
+ }
473
+
474
+ /**
475
+ * Add the correct font weight in Chrome, Edge, and Safari.
476
+ */
477
+
478
+ b,
479
+ strong {
480
+ font-weight: bolder;
481
+ }
482
+
483
+ /**
484
+ * 1. Correct the inheritance and scaling of font size in all browsers.
485
+ * 2. Correct the odd em font sizing in all browsers.
486
+ */
487
+
488
+ code,
489
+ kbd,
490
+ samp {
491
+ font-family: monospace, monospace; /* 1 */
492
+ font-size: 1em; /* 2 */
493
+ }
494
+
495
+ /**
496
+ * Add the correct font size in all browsers.
497
+ */
498
+
499
+ small {
500
+ font-size: 80%;
501
+ }
502
+
503
+ /**
504
+ * Prevent sub and sup elements from affecting the line height in
505
+ * all browsers.
506
+ */
507
+
508
+ sub,
509
+ sup {
510
+ font-size: 75%;
511
+ line-height: 0;
512
+ position: relative;
513
+ vertical-align: baseline;
514
+ }
515
+
516
+ sub {
517
+ bottom: -0.25em;
518
+ }
519
+
520
+ sup {
521
+ top: -0.5em;
522
+ }
523
+
524
+ /* Embedded content
525
+ ========================================================================== */
526
+
527
+ /**
528
+ * Remove the border on images inside links in IE 10.
529
+ */
530
+
531
+ img {
532
+ border-style: none;
533
+ }
534
+
535
+ /* Forms
536
+ ========================================================================== */
537
+
538
+ /**
539
+ * 1. Change the font styles in all browsers.
540
+ * 2. Remove the margin in Firefox and Safari.
541
+ */
542
+
543
+ button,
544
+ input,
545
+ optgroup,
546
+ select,
547
+ textarea {
548
+ font-family: inherit; /* 1 */
549
+ font-size: 100%; /* 1 */
550
+ line-height: 1.15; /* 1 */
551
+ margin: 0; /* 2 */
552
+ }
553
+
554
+ /**
555
+ * Show the overflow in IE.
556
+ * 1. Show the overflow in Edge.
557
+ */
558
+
559
+ button,
560
+ input { /* 1 */
561
+ overflow: visible;
562
+ }
563
+
564
+ /**
565
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
566
+ * 1. Remove the inheritance of text transform in Firefox.
567
+ */
568
+
569
+ button,
570
+ select { /* 1 */
571
+ text-transform: none;
572
+ }
573
+
574
+ /**
575
+ * Correct the inability to style clickable types in iOS and Safari.
576
+ */
577
+
578
+ button,
579
+ [type="button"],
580
+ [type="reset"],
581
+ [type="submit"] {
582
+ -webkit-appearance: button;
583
+ }
584
+
585
+ /**
586
+ * Remove the inner border and padding in Firefox.
587
+ */
588
+
589
+ button::-moz-focus-inner,
590
+ [type="button"]::-moz-focus-inner,
591
+ [type="reset"]::-moz-focus-inner,
592
+ [type="submit"]::-moz-focus-inner {
593
+ border-style: none;
594
+ padding: 0;
595
+ }
596
+
597
+ /**
598
+ * Restore the focus styles unset by the previous rule.
599
+ */
600
+
601
+ button:-moz-focusring,
602
+ [type="button"]:-moz-focusring,
603
+ [type="reset"]:-moz-focusring,
604
+ [type="submit"]:-moz-focusring {
605
+ outline: 1px dotted ButtonText;
606
+ }
607
+
608
+ /**
609
+ * Correct the padding in Firefox.
610
+ */
611
+
612
+ fieldset {
613
+ padding: 0.35em 0.75em 0.625em;
614
+ }
615
+
616
+ /**
617
+ * 1. Correct the text wrapping in Edge and IE.
618
+ * 2. Correct the color inheritance from fieldset elements in IE.
619
+ * 3. Remove the padding so developers are not caught out when they zero out
620
+ * fieldset elements in all browsers.
621
+ */
622
+
623
+ legend {
624
+ box-sizing: border-box; /* 1 */
625
+ color: inherit; /* 2 */
626
+ display: table; /* 1 */
627
+ max-width: 100%; /* 1 */
628
+ padding: 0; /* 3 */
629
+ white-space: normal; /* 1 */
630
+ }
631
+
632
+ /**
633
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
634
+ */
635
+
636
+ progress {
637
+ vertical-align: baseline;
638
+ }
639
+
640
+ /**
641
+ * Remove the default vertical scrollbar in IE 10+.
642
+ */
643
+
644
+ textarea {
645
+ overflow: auto;
646
+ }
647
+
648
+ /**
649
+ * 1. Add the correct box sizing in IE 10.
650
+ * 2. Remove the padding in IE 10.
651
+ */
652
+
653
+ [type="checkbox"],
654
+ [type="radio"] {
655
+ box-sizing: border-box; /* 1 */
656
+ padding: 0; /* 2 */
657
+ }
658
+
659
+ /**
660
+ * Correct the cursor style of increment and decrement buttons in Chrome.
661
+ */
662
+
663
+ [type="number"]::-webkit-inner-spin-button,
664
+ [type="number"]::-webkit-outer-spin-button {
665
+ height: auto;
666
+ }
667
+
668
+ /**
669
+ * 1. Correct the odd appearance in Chrome and Safari.
670
+ * 2. Correct the outline style in Safari.
671
+ */
672
+
673
+ [type="search"] {
674
+ -webkit-appearance: textfield; /* 1 */
675
+ outline-offset: -2px; /* 2 */
676
+ }
677
+
678
+ /**
679
+ * Remove the inner padding in Chrome and Safari on macOS.
680
+ */
681
+
682
+ [type="search"]::-webkit-search-decoration {
683
+ -webkit-appearance: none;
684
+ }
685
+
686
+ /**
687
+ * 1. Correct the inability to style clickable types in iOS and Safari.
688
+ * 2. Change font properties to inherit in Safari.
689
+ */
690
+
691
+ ::-webkit-file-upload-button {
692
+ -webkit-appearance: button; /* 1 */
693
+ font: inherit; /* 2 */
694
+ }
695
+
696
+ /* Interactive
697
+ ========================================================================== */
698
+
699
+ /*
700
+ * Add the correct display in Edge, IE 10+, and Firefox.
701
+ */
702
+
703
+ details {
704
+ display: block;
705
+ }
706
+
707
+ /*
708
+ * Add the correct display in all browsers.
709
+ */
710
+
711
+ summary {
712
+ display: list-item;
713
+ }
714
+
715
+ /* Misc
716
+ ========================================================================== */
717
+
718
+ /**
719
+ * Add the correct display in IE 10+.
720
+ */
721
+
722
+ template {
723
+ display: none;
724
+ }
725
+
726
+ /**
727
+ * Add the correct display in IE 10.
728
+ */
729
+
730
+ [hidden] {
731
+ display: none;
732
+ }
733
+ `;
734
+
735
+ //#endregion
736
+ //#region src/resets/the-new-css-reset.ts
737
+ var the_new_css_reset_default = `
738
+ /***
739
+ The new CSS reset - version 1.11.3 (last updated 25.08.2024)
740
+ GitHub page: https://github.com/elad2412/the-new-css-reset
741
+ ***/
742
+
743
+ /*
744
+ Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
745
+ - The "symbol *" part is to solve Firefox SVG sprite bug
746
+ - The "html" element is excluded, otherwise a bug in Chrome breaks the CSS hyphens property (https://github.com/elad2412/the-new-css-reset/issues/36)
747
+ */
748
+ *:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
749
+ all: unset;
750
+ display: revert;
751
+ }
752
+
753
+ /* Preferred box-sizing value */
754
+ *,
755
+ *::before,
756
+ *::after {
757
+ box-sizing: border-box;
758
+ }
759
+
760
+ /* Fix mobile Safari increase font-size on landscape mode */
761
+ html {
762
+ -moz-text-size-adjust: none;
763
+ -webkit-text-size-adjust: none;
764
+ text-size-adjust: none;
765
+ }
766
+
767
+ /* Reapply the pointer cursor for anchor tags */
768
+ a, button {
769
+ cursor: revert;
770
+ }
771
+
772
+ /* Remove list styles (bullets/numbers) */
773
+ ol, ul, menu, summary {
774
+ list-style: none;
775
+ }
776
+
777
+ /* Firefox: solve issue where nested ordered lists continue numbering from parent (https://bugzilla.mozilla.org/show_bug.cgi?id=1881517) */
778
+ ol {
779
+ counter-reset: revert;
780
+ }
781
+
782
+ /* For images to not be able to exceed their container */
783
+ img {
784
+ max-inline-size: 100%;
785
+ max-block-size: 100%;
786
+ }
787
+
788
+ /* removes spacing between cells in tables */
789
+ table {
790
+ border-collapse: collapse;
791
+ }
792
+
793
+ /* Safari - solving issue when using user-select:none on the <body> text input doesn't working */
794
+ input, textarea {
795
+ -webkit-user-select: auto;
796
+ }
797
+
798
+ /* revert the 'white-space' property for textarea elements on Safari */
799
+ textarea {
800
+ white-space: revert;
801
+ }
802
+
803
+ /* minimum style to allow to style meter element */
804
+ meter {
805
+ -webkit-appearance: revert;
806
+ appearance: revert;
807
+ }
808
+
809
+ /* preformatted text - use only for this feature */
810
+ :where(pre) {
811
+ all: revert;
812
+ box-sizing: border-box;
813
+ }
814
+
815
+ /* reset default text opacity of input placeholder */
816
+ ::placeholder {
817
+ color: unset;
818
+ }
819
+
820
+ /* fix the feature of 'hidden' attribute.
821
+ display:revert; revert to element instead of attribute
822
+ */
823
+ :where([hidden]) {
824
+ display: none;
825
+ }
826
+
827
+ /* revert for bug in Chromium browsers
828
+ - fix for the content editable attribute will work properly.
829
+ - webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element*/
830
+ :where([contenteditable]:not([contenteditable="false"])) {
831
+ -moz-user-modify: read-write;
832
+ -webkit-user-modify: read-write;
833
+ overflow-wrap: break-word;
834
+ -webkit-line-break: after-white-space;
835
+ -webkit-user-select: auto;
836
+ }
837
+
838
+ /* apply back the draggable feature - exist only in Chromium and Safari */
839
+ :where([draggable="true"]) {
840
+ -webkit-user-drag: element;
841
+ }
842
+
843
+ /* Revert Modal native behavior */
844
+ :where(dialog:modal) {
845
+ all: revert;
846
+ box-sizing: border-box;
847
+ }
848
+
849
+ /* Remove details summary webkit styles */
850
+ ::-webkit-details-marker {
851
+ display: none;
852
+ }
853
+ `;
854
+
855
+ //#endregion
856
+ //#region src/index.ts
857
+ const resetStyles = {
858
+ "andy-bell": andy_bell_default,
859
+ "eric-meyer": eric_meyer_default,
860
+ "modern-normalize": modern_normalize_default,
861
+ "normalize": normalize_default,
862
+ "the-new-css-reset": the_new_css_reset_default
863
+ };
864
+ function reset() {
865
+ let style = "modern-normalize";
866
+ return defineEnginePlugin({
867
+ name: "reset",
868
+ order: "pre",
869
+ configureRawConfig: (config) => {
870
+ if (config.reset) style = config.reset;
871
+ },
872
+ configureEngine: async (engine) => {
873
+ const resetCss = resetStyles[style];
874
+ if (resetCss) engine.addPreflight(resetCss);
875
+ }
876
+ });
877
+ }
878
+
879
+ //#endregion
880
+ export { reset };