Theories of thin structures