File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,15 @@ type DarkModeConfig =
71
71
/** Use the `class` stategy with a custom class instead of `.dark`. */
72
72
| [ 'class' , string ]
73
73
74
+ type Screen = { raw : string } | { min : string } | { max : string } | { min : string ; max : string }
75
+ type ScreensConfig = string [ ] | KeyValuePair < string , string | Screen | Screen [ ] >
76
+
74
77
// Theme related config
75
78
interface ThemeConfig {
76
79
extend : Partial < Omit < ThemeConfig , 'extend' > >
77
80
78
81
/** Responsiveness */
79
- screens : ResolvableTo < KeyValuePair >
82
+ screens : ResolvableTo < ScreensConfig >
80
83
81
84
/** Reusable base configs */
82
85
colors : ResolvableTo < RecursiveKeyValuePair >
@@ -85,12 +88,7 @@ interface ThemeConfig {
85
88
/** Components */
86
89
container : ResolvableTo <
87
90
Partial < {
88
- screens :
89
- | string [ ] /** List of breakpoints. E.g.: '400px', '500px' */
90
- /** Named breakpoints. E.g.: { sm: '400px' } */
91
- | Record < string | number , string >
92
- /** Name breakpoints with explicit min and max values. E.g.: { sm: { min: '300px', max: '400px' } } */
93
- | Record < string , { min : string ; max : string } >
91
+ screens : ScreensConfig
94
92
center : boolean
95
93
padding : string | Record < string , string >
96
94
} >
You can’t perform that action at this time.
0 commit comments