Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Jan 5, 2024
1 parent ce1d0bd commit cf7d240
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,10 @@ type DarkModeConfig =
| 'class'
// Use the `class` strategy with a custom class instead of `.dark`.
| ['class', string]
// Use the `legacy` strategy — same as `class` but restores pre-v3.4 behavior
| 'legacy'
// Use the `legacy` strategy with a custom class instead of `.dark`
| ['legacy', string]
// Use the `variant` strategy, which allows you to completely customize the selector
// It takes a string or an array of strings, which are passed directly to `addVariant()`
| ['variant', string | string[]]
// Use the `selector` strategy — same as `class` but uses `:where()` for more predicable behavior
| 'selector'
// Use the `selector` strategy with a custom selector instead of `.dark`.
| ['selector', string]

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

0 comments on commit cf7d240

Please sign in to comment.