Silicon Valley executives take to Twitter to react to a Trump presidency

Donald Trump Rubs Hands

Silicon Valley reacted on Twitter to a Trump presidency with a mix of humor, despair and a small trace of hope.

Silicon Valley reacted on Twitter to a Donald Trump presidency with a mix of humor, despair and a small trace of hope.

Tech workers gave 60 times more cash to Clinton than to Trump , so it's fair to say he was not the favorite to win among this crowd.

Facebook director and Silicon Valley investor Peter Thiel — who addressed the Republican National Convention and spent more than $1 million supporting Trump — got it right, venture capitalist and entrepreneur Shervin Pishevar noted in a Tweet.

Pishevar also Tweeted that his next investment will be in support of California's secession from the U.S. He was not joking, it's the most patriotic thing he can do now, he told CNBC.

"We can re-enter the union after California becomes a nation. As the 6th largest economy in the world, the economic engine of the nation and provider of a large percentage of the federal budget, California carries a lot of weight. We can then convene a new constitutional convention to make systemic changes needed to our nation," wrote Pishevar in an email to CNBC.

"At the same time we need to have a serious national dialogue about our culture, values and the rampant sexism, racism and hate that Trump campaign has exposed.This is a tipping point for our nation and we must confront the systemic problems that this election has exposed," wrote Pishevar.

Big tech companies have yet to speak out on what a Trump presidency means for Silicon Valley, but Google Ventures partner M.G.Siegler tweeted the outlook is not good.

Box CEO Aaron Levie bought a certain levity to the situation with his Tweet.

Meanwhile, Khosla Ventures partner Keith Rabois, who is known for being conservative, joked about preventing Trump from getting hold of nuclear weapons.

And Slack CEO Stewart Butterfield joined roughly half of the adult U.S. population, and turned to alcohol.

Others in the Valley struggled to come to terms with the vote tally as it stood. Sam Altman heads up Silicon Valley start-up incubator Y Combinator and spent the night in a room full of people feeling totally alone, he tweeted.

Homebrew partner Hunter Walk — who has led a movement to encourage tech companies to give employees time off to vote — was similarly distraught.

Katie Jacobs Stanton, CMO at Color Genomics and a former Twitter executive, as well as one of the more prominent female executives in Silicon Valley mixed disbelief with despair, and Tweeted that she was afraid to go to sleep for fear of the nightmare that awaits.

Tristan Walker, founder of Walker & Co. and entrepreneur-in-residence at venture capital firm Andreessen Horowitz tweeted in support for Democratic nominee Hillary Clinton and that he is terrified of what the future holds.

That said, there was a ray of hope and a positive note sounded by some West Coast investors and Silicon Valley executives. Upfront Ventures partner Mark Suster, who was tweeting all night tried to find a silver lining to a Trump victory.

The most positive sentiment seemed to come from LinkedIn CEO Jeff Weiner, who reminded his Twitter followers of America's resilience.

— With reporting from CNBC's Mary Catherine Wellons.