I could be wrong, but I think the most popular version of this phrase uses the plural of "line": "along the same lines."
By style, do you mean the actual writing style or are you describing its content or themes?
To me, this is a phrase more suited to informal contexts or writing that seeks to establish a more conversational tone. In many contexts, I'd prefer "similar to" or even "reminiscent of." You could say that "it shares many elements?"