diff --git a/src/utils.ts b/src/utils.ts index 1684958..3fb6351 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -18,7 +18,13 @@ export const makeNestedObject = ( } obj = obj[key] } - obj[camelCase(keys[lastIndex])] = value + + // https://v2.tailwindcss.com/docs/upgrading-to-v2#update-default-theme-keys-to-default + if (keys[lastIndex] === 'DEFAULT') { + obj[keys[lastIndex]] = value + } else { + obj[camelCase(keys[lastIndex])] = value + } } export const getConfigValue = (value: T | undefined, defaultValue: T) => {