In this picture you can see a street in Largo do Carmo, with its colorful houses.
The length of your stay in Salvador da Bahia should be between two and three days, if you only want to visit the city itself. If you also want to go on some excursions to the neighboring beaches, you should add a day per beach.