diff --git a/packages/@tailwindcss-upgrade/src/migrate-js-config.ts b/packages/@tailwindcss-upgrade/src/migrate-js-config.ts index 5d4e5b0c8810..795b9b271d64 100644 --- a/packages/@tailwindcss-upgrade/src/migrate-js-config.ts +++ b/packages/@tailwindcss-upgrade/src/migrate-js-config.ts @@ -87,10 +87,10 @@ async function migrateTheme( base, config: { ...unresolvedConfig, plugins: [], presets: undefined }, } - let { resolvedConfig, resetThemeKeys } = resolveConfig(designSystem, [configToResolve]) + let { resolvedConfig, replacedThemeKeys } = resolveConfig(designSystem, [configToResolve]) let resetNamespaces = new Map( - Array.from(resetThemeKeys.entries()).map(([key]) => [key, false]), + Array.from(replacedThemeKeys.entries()).map(([key]) => [key, false]), ) let prevSectionKey = '' diff --git a/packages/tailwindcss/src/compat/apply-config-to-theme.ts b/packages/tailwindcss/src/compat/apply-config-to-theme.ts index 6e6c245118c6..9edf038e4dc1 100644 --- a/packages/tailwindcss/src/compat/apply-config-to-theme.ts +++ b/packages/tailwindcss/src/compat/apply-config-to-theme.ts @@ -24,8 +24,8 @@ export function applyConfigToTheme( { theme }: ResolvedConfig, replacedThemeKeys: Set, ) { - for (let resetThemeKey of replacedThemeKeys) { - let name = keyPathToCssProperty([resetThemeKey]) + for (let replacedThemeKey of replacedThemeKeys) { + let name = keyPathToCssProperty([replacedThemeKey]) if (!name) continue designSystem.theme.clearNamespace(`--${name}`, ThemeOptions.DEFAULT)