Skip to content

Commit cf7d240

Browse files
committed
Update types
1 parent ce1d0bd commit cf7d240

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

types/config.d.ts

+4-7
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,10 @@ type DarkModeConfig =
7575
| 'class'
7676
// Use the `class` strategy with a custom class instead of `.dark`.
7777
| ['class', string]
78-
// Use the `legacy` strategy — same as `class` but restores pre-v3.4 behavior
79-
| 'legacy'
80-
// Use the `legacy` strategy with a custom class instead of `.dark`
81-
| ['legacy', string]
82-
// Use the `variant` strategy, which allows you to completely customize the selector
83-
// It takes a string or an array of strings, which are passed directly to `addVariant()`
84-
| ['variant', string | string[]]
78+
// Use the `selector` strategy — same as `class` but uses `:where()` for more predicable behavior
79+
| 'selector'
80+
// Use the `selector` strategy with a custom selector instead of `.dark`.
81+
| ['selector', string]
8582

8683
type Screen = { raw: string } | { min: string } | { max: string } | { min: string; max: string }
8784
type ScreensConfig = string[] | KeyValuePair<string, string | Screen | Screen[]>

0 commit comments

Comments
 (0)