Most types of fireworks are illegal in all towns in the SF Bay Area. While my town is one of the few that does allow "safe and sane" fireworks to be sold by nonprofit charities, there will be a public vote later this year that would outlaw their sale in the future.
But what has always been illegal are fireworks that shoot up in the air and explode - or just explode and leave holes in the asphalt and shake the neighborhood.
There were illuminated signs on all of the major highways, as well as constant TV and radio announcements advising the public that if you were caught using illegal fireworks you would be subject to a minimum $1000 fine and a possible year in jail.
Last night down the street from me there were explosions and exploding rockets shooting a hundred feet in the air that went on for hours. And right across the street is a hillside with very dry vegetation. Even though you could see these fireworks from a couple of miles away, not a single cop passed by and put a stop to the action. You can have all the laws and penalties that you want, but if no one will enforce the laws, why bother.
Fortunately, no fires were started that I saw last night. So we got lucky in that regard.