A flash flood warning was in effect Thursday morning for Santa Clara, San Mateo and Santa Cruz counties, according to the National Weather Service.