diff --git a/packages/tailwindcss/src/utilities.ts b/packages/tailwindcss/src/utilities.ts index 71db2dac0..e1b098c2a 100644 --- a/packages/tailwindcss/src/utilities.ts +++ b/packages/tailwindcss/src/utilities.ts @@ -5092,7 +5092,7 @@ export function createUtilities(theme: Theme) { { let value = theme.resolveWith( candidate.value.value, - ['--text'], + ['--text', '--spacing'], ['--line-height', '--letter-spacing', '--font-weight'], ) if (value) { @@ -5159,7 +5159,7 @@ export function createUtilities(theme: Theme) { }, { values: [], - valueThemeKeys: ['--text'], + valueThemeKeys: ['--text', '--spacing'], modifiers: [], modifierThemeKeys: ['--leading', '--spacing'], },