The historical centre of Aveiro is not very big, so if you want to visit its main points of interest, you can easily do it in just one day. However, I think it makes sense to stay a bit longer to visit other places near the city, such as Costa Nova, for example. That is why I suggest 2 days to visit Aveiro.