From eb6e4d9856769ee62843f1a8c2c2c258eedaad91 Mon Sep 17 00:00:00 2001 From: Nikita Date: Sun, 25 May 2025 19:53:15 +0200 Subject: [PATCH] feat: allow `size` theme namespace in `width` and `height` --- packages/tailwindcss/src/utilities.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/tailwindcss/src/utilities.ts b/packages/tailwindcss/src/utilities.ts index 0fdb5c9f2a1d..bc51d8d9815b 100644 --- a/packages/tailwindcss/src/utilities.ts +++ b/packages/tailwindcss/src/utilities.ts @@ -1005,12 +1005,12 @@ export function createUtilities(theme: Theme) { ) for (let [name, namespaces, property] of [ - ['w', ['--width', '--spacing', '--container'], 'width'], - ['min-w', ['--min-width', '--spacing', '--container'], 'min-width'], - ['max-w', ['--max-width', '--spacing', '--container'], 'max-width'], - ['h', ['--height', '--spacing'], 'height'], - ['min-h', ['--min-height', '--height', '--spacing'], 'min-height'], - ['max-h', ['--max-height', '--height', '--spacing'], 'max-height'], + ['w', ['--width', '--size', '--spacing', '--container'], 'width'], + ['min-w', ['--min-width', '--size', '--spacing', '--container'], 'min-width'], + ['max-w', ['--max-width', '--size', '--spacing', '--container'], 'max-width'], + ['h', ['--height', '--size', '--spacing'], 'height'], + ['min-h', ['--min-height', '--size', '--height', '--spacing'], 'min-height'], + ['max-h', ['--max-height', '--size', '--height', '--spacing'], 'max-height'], ] as [string, ThemeKey[], string][]) { spacingUtility(name, namespaces, (value) => [decl(property, value)], { supportsFractions: true,