以 + [noun] + 为 + [noun]
以 + [noun] + 为主 / 为中心 / 为目标 / 为荣
以 A 为 B is a written frame: it takes A as B, or makes A the B of something. 为 here is read wéi, "to be, to serve as". The frame mostly turns up with a small set of B words.
以…为例 "take … as an example" and 以…为准 "go by …" use the same frame and have their own points.
以为 written together is a different word, "to think (wrongly)". In 以…为… the two characters are split by A, and 为 reads wéi.
The frame belongs to notices, reports and descriptions of a school or a company. In conversation 主要 does the job of 以…为主: 这家饭馆主要做四川菜.