na-adjective
Used as a na-adjective to describe something of the same type or nature as previously mentioned. Often appears in formal or written contexts.
そのようなことは二度と起こらないでしょう。
That kind of thing will not happen again.
彼はそのような問題に詳
He is knowledgeable about such problems.
こんな is more casual and refers to something close to the speaker, while そのよう is more formal and refers to something previously mentioned.
そういう is a more common and slightly less formal way to say 'that kind of', often used in conversation.
Compound of その (that) and よう (appearance, manner). The kanji 様 is used for よう, but the word is now predominantly written in kana.