We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
{min: …}
resolveConfig
1 parent b7c02a4 commit 9a1589bCopy full SHA for 9a1589b
packages/tailwindcss/src/compat/config/resolve-config.ts
@@ -203,4 +203,19 @@ function mergeTheme(ctx: ResolutionContext) {
203
for (let key in ctx.theme) {
204
ctx.theme[key] = resolveValue(ctx.theme[key])
205
}
206
+
207
+ // Turn {min: '123px'} into '123px' in screens
208
+ if (ctx.theme.screens && typeof ctx.theme.screens === 'object') {
209
+ for (let key of Object.keys(ctx.theme.screens)) {
210
+ let screen = ctx.theme.screens[key]
211
+ if (!screen) continue
212
+ if (typeof screen !== 'object') continue
213
214
+ if ('raw' in screen) continue
215
+ if ('max' in screen) continue
216
+ if (!('min' in screen)) continue
217
218
+ ctx.theme.screens[key] = screen.min
219
+ }
220
221
0 commit comments