File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,15 @@ type DarkModeConfig =
7171 /** Use the `class` stategy with a custom class instead of `.dark`. */
7272 | [ 'class' , string ]
7373
74+ type Screen = { raw : string } | { min : string } | { max : string } | { min : string ; max : string }
75+ type ScreensConfig = string [ ] | KeyValuePair < string , string | Screen | Screen [ ] >
76+
7477// Theme related config
7578interface ThemeConfig {
7679 extend : Partial < Omit < ThemeConfig , 'extend' > >
7780
7881 /** Responsiveness */
79- screens : ResolvableTo < KeyValuePair >
82+ screens : ResolvableTo < ScreensConfig >
8083
8184 /** Reusable base configs */
8285 colors : ResolvableTo < RecursiveKeyValuePair >
@@ -85,12 +88,7 @@ interface ThemeConfig {
8588 /** Components */
8689 container : ResolvableTo <
8790 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
9492 center : boolean
9593 padding : string | Record < string , string >
9694 } >
You can’t perform that action at this time.
0 commit comments