Just my thoughts:
The City can also dictate design. However, the Law/Code always takes precedence. As someone said above…the HOA can be more -or- less restrictive, however LEGALLY, anything less restrictive than the governing law/code is subject to enforcement action by that jurisdiction...