It’s used to describe something that is distant from the speaker but is still within the same context or topic. "そんな" refers to a specific quality or thing that has already been mentioned or is understood in the conversation.
Sonnani :
It’s used to express an extent or degree, especially when referring to a large amount or a high degree of something. It often appears with adjectives or verbs to convey an emphasis on how much or to what extent something is tru
そんな is a descriptive term referring to a type or quality of something.そんなに expresses a degree, meaning "to such an extent" or "so much."