converting original theme to a markment-compatible form