@@ -2,7 +2,6 @@ import type { PresetOptions } from '@unocss/core'
2
2
import type { Theme } from './theme'
3
3
import { definePreset } from '@unocss/core'
4
4
import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants'
5
-
6
5
import { postprocessors } from './postprocess'
7
6
import { preflights } from './preflights'
8
7
import { rules } from './rules'
@@ -38,24 +37,28 @@ export interface PresetWind4Options extends PresetOptions {
38
37
* @default 'class'
39
38
*/
40
39
dark ?: 'class' | 'media' | DarkModeSelectors
40
+
41
41
/**
42
42
* Generate tagged pseudo selector as `[group=""]` instead of `.group`
43
43
*
44
44
* @default false
45
45
*/
46
46
attributifyPseudo ?: boolean
47
+
47
48
/**
48
49
* Prefix for CSS variables.
49
50
*
50
51
* @default 'un-'
51
52
*/
52
53
variablePrefix ?: string
54
+
53
55
/**
54
56
* Utils prefix. When using tagged pseudo selector, only the first truthy prefix will be used.
55
57
*
56
58
* @default undefined
57
59
*/
58
60
prefix ?: string | string [ ]
61
+
59
62
/**
60
63
* Enable arbitrary variants, for example `<div class="[&>*]:m-1 [&[open]]:p-2"></div>`.
61
64
*
@@ -64,10 +67,12 @@ export interface PresetWind4Options extends PresetOptions {
64
67
* @default true
65
68
*/
66
69
arbitraryVariants ?: boolean
70
+
67
71
/**
68
72
* Choose which theme keys to export as CSS variables.
69
73
*/
70
74
themeKeys ?: string [ ] | ( ( keys : string [ ] ) => string [ ] )
75
+
71
76
/**
72
77
* The important option lets you control whether UnoCSS’s utilities should be marked with `!important`.
73
78
*
@@ -80,6 +85,13 @@ export interface PresetWind4Options extends PresetOptions {
80
85
* @default false
81
86
*/
82
87
important ?: boolean | string
88
+
89
+ /**
90
+ * Reset the default preflight styles.
91
+ *
92
+ * @default true
93
+ */
94
+ reset ?: boolean
83
95
}
84
96
85
97
export const presetWind4 = definePreset < PresetWind4Options , Theme > ( ( options = { } ) => {
@@ -93,6 +105,9 @@ export const presetWind4 = definePreset<PresetWind4Options, Theme>((options = {}
93
105
rules,
94
106
shortcuts,
95
107
theme,
108
+ layers : {
109
+ theme : - 150 ,
110
+ } ,
96
111
preflights : preflights ( options ) ,
97
112
variants : variants ( options ) ,
98
113
prefix : options . prefix ,
0 commit comments