The first returns are in from Tuesday's primary election. Here's what we've got, along with a look at what to watch as the night rolls.

Proposition B

Update: Prop B wins

With 79 percent of the precincts counted, Yes has 59.37 percent, No has 40.63 percent.

Earlier: Prop. B on the San Francisco ballot would require voter approval for any new building on port property that exceeds height limits.

Backed by former San Francisco Mayor Art Agnos and the Sierra Club, Prop. B had an impact before a single vote was counted: The Golden State Warriors scrapped their plan to build an arena on Piers 30-32 for a site in Mission Bay that wouldn't be covered by Prop. B. And the San Francisco Giants, who sued unsuccessfully to remove Prop. B from the ballot, changed plans for three towers they had intended to build on an AT&T Park parking lot, one of them 380 feet tall. Prop. B was opposed by the Chamber of Commerce, construction trade unions, and commercial property owners.

Governor

Update: With 47.9 percent of precincts reporting, Gov. Jerry Brown has 55.1 percent, Neel Kashkari has 18.1 percent and Assemblyman Tim Donnelly has 14.7 percent.

Update #2: Near midnight, Tim Donnelly conceded.

Earlier: Gov. Jerry Brown isn't expected to break a sweat Tuesday night, a fitting coda to his near-nonexistent campaigning thus far. Meanwhile, the sweating will be profuse in the battle between two Republicans for the right to face Brown in November.

For months, Tea Party-friendly Assemblyman Tim Donnelly, R-Twin Peaks (San Bernardino County), has been leading former Treasury official Neel Kashkari in most polls. But since Kashkari doubled his campaign coffers by putting $2 million of his own money into the race, he has pulled into a statistical tie with Donnellly according to a USC/Dornsife/Los Angeles Times poll released Sunday.

Establishment Republicans fear disaster for the GOP in an increasingly Latino state if its fall ticket is headed by Donnelly, a fierce gun-rights advocate who may be best known for co-founding the California Minutemen, a self-styled border patrol.

But Donnelly is tapped into a subset of conservative GOP voters who traditionally dominate primaries. He doesn't have much money in the bank, but if he can get his voters to the polls, this could be close.

16th Assembly District

Update: With 66 percent of the ballots counted so far, GOP attorney Catharine Baker has 41.0 percent, Orinda City Councilman Steve Glazer has 25.3 percent, Dublin Mayor Tim Sbranti has 20 percent and Danville Mayor Newell Arnerich has 13.7 percent.

Earlier: Union political power will be tested in this East Bay Assembly race, where Orinda City Councilman and longtime Brown adviser Steve Glazer has been brawling for weeks with Tim Sbranti, mayor of Dublin and a longtime teachers union political director. Also in line for a piece of the Democratic vote is Danville Mayor Newell Arnerich. Key to watch: Can Republican attorney Catharine Baker of Pleasanton sneak into the general election while the Democrats beat each other up?

17th Congressional District

Update: With 22.2 percent of precincts counted, Rep. Mike Honda has 50.7 percent, Ro Khanna has 25.6 percent, Vanila Singh has 15.9 percent, and Joel VanLandingham has 7.8 percent.

Earlier: The Silicon Valley race between seven-term Democrat Rep. Mike Honda and fellow Democrat and former Obama trade representative Ro Khanna has been closely watched nationally. Polls have shown that two GOP challengers whose campaigns have been barely visible — physician Vanila Singh and business executive recruiter Joel VanLandingham — trail badly. Still, a week ago, polls showed that nearly one in four voters were undecided.

10th State Senate District

Update: With 32.9 percent of precincts counted, Assemblyman Bob Wieckowski has 34.0 percent, Peter Kul has 26.2 percent, Mary Hayashi has 21.5 percent, Roman Reed has 14.4 percent, and Audie Bock has 3.9 percent.

Earlier: In a political spring where more mud than usual was slung, the normally sleepy state Senate district in southern Alameda County was covered in slime.

The race between Assemblyman Bob Wieckowski and former Assemblywoman Mary Hayashi was lowlighted by dueling websites. The anti-Hayashi forces crafted www.mugshotmary.com, which is all about Hayashi's conviction for shoplifting $2,450 worth of Neiman Marcus clothing in 2011 — including two minutes of store surveillance video of Hayashi pocketing items in the store.

Anti-Wieckowski forces countered with www.bobprotectedrapists.com, which highlights Wieckowski's 2012 vote in committee against a bill to halt spousal support for convicted domestic abusers. Wieckowski later voted for an amended version that addressed his concerns about mixing criminal and civil court cases.

State controller:

Update: With 27.7 percent of precincts reporting, Betty Yee has 22.0 percent, David Evans has 22.7 percent, Ashley Swearengin has 23.5 percent, John Perez has 20.4 percent, Tammy Blair has 5.7 percent, and Laura Wells has 5.8 percent.

Earlier: This battle to replace termed-out Democrat John Chiang promises to be an interesting test case of the top-two primary. Two prominent Democrats with statewide recognition — Democratic Assemblyman John Pérez of Los Angeles, a former Assembly speaker, and San Francisco Democrat Betty Yee, a member of the Board of Equalization are squaring off with Republican Ashley Swearengin, the mayor of Fresno. This could break any number of ways, depending on which voters cast ballots Tuesday.

Secretary of state:

Update: With 25.2 percent of precincts reporting, Alex Padilla has 29.0 percent, Pete Peterson has 29.5 percent, Leland Yee has 10.7 percent, Dan Schnur has 9.2 percent, and Derek Cressman has 7.2 percent.

UPDATE No. 2: Schnur has dropped out of the race.

Earlier: The race to replace to replace termed-out Democrat Debra Bowen is the most wide open statewide race. Los Angeles state Sen. Alex Padilla and Derek Cressman, a voter rights advocate from Sacramento, both Democrats, are in the ring along with Republican Pete Peterson, a Los Angeles educator, and Dan Schnur, a former GOP consultant from Willows (Glenn County) running as an independent. Also on the ballot: state Sen. Leland Yee, D-San Francisco, who dropped out of the race after being indicted on multiple public corruption and gun trafficking charges in March.

17th Assembly District

Update: With 79.8 percent of precincts counted, David Chiu has 49 percent, David Campos has 42.3 and David Salaverry has 8.8 percent.

Earlier: Many San Francisco voters will be watching this battle between "The Two Davids" — Democratic San Francisco supervisors David Campos and David Chiu. However, the results are only for bragging rights. Because of the top two primary and San Francisco's dearth of Republicans, voters are likely to see the same two Davids going head-to-head in November. There's only other candidate on the ballot, Republican David Salaverry, who isn't expected to get many votes. In San Francisco, only 8 percent of the voters are registered Republicans.