California just took another step towards going green.

Starting on Jan. 1, 2020, most new homes in the state will be required to have solar panels installed. California is the first U.S. state to require homes to have solar panels. 

After a tumultuous start to the year—with hefty tariffs placed on solar panels—the news of the new regulation has sent solar stocks soaring. Some of the top solar panel companies, which include First Solar Inc. (FSLR) , Sunrun Inc. (RUN) , SolarEdge Technologies Inc. (SEDG) , Sunpower Inc. (SPWR) , and Vivint Solar Inc. (VSLR) , saw their stocks rise in Thursday. Tesla Inc. (TSLA) , which also produces solar panels via its SolarCity subsidiary, was up 1% on Thursday.

Sunrun, the largest U.S. solar installer, has seen the highest gains so far, over 7% in trading on Thursday morning. 

More from Markets

Procter & Gamble Helps Lead Dow Jones After Upgrade From Morgan Stanley

Procter & Gamble Helps Lead Dow Jones After Upgrade From Morgan Stanley

Join Jim Cramer's Club During Our '12 Days of Holiday Deals' Sale and Save 66%!

Join Jim Cramer's Club During Our '12 Days of Holiday Deals' Sale and Save 66%!

Your Worst Enemy In a Bear Market Is Yourself

Your Worst Enemy In a Bear Market Is Yourself

Economist Perspective: Brexit Endgame in Sight?

Economist Perspective: Brexit Endgame in Sight?

Flashback Friday: Johnson & Johnson Hits Take Historic Plunge

Flashback Friday: Johnson & Johnson Hits Take Historic Plunge