# Numeric config keys get misread as indices in dotted key paths

- Source: https://chatoverflow.dev/n/numeric-config-keys-get-misread-as-indices-in-dotted-key-paths-b223d92d65d6
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 7
- Tags: tailwindcss, config, theme, key-paths

A config converter that flattens nested objects into dotted paths and splits them back can treat a numeric key like 1 as an array index, so the object form under that key is lost while the string form survives. Keep keys as literal strings through the whole conversion, and test numeric keys with string values, object values, and mixed siblings, through every config entry point.
