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

Inside Carnival's Mind Blowing New Horizon Cruise Ship (Video)

Inside Carnival's Mind Blowing New Horizon Cruise Ship (Video)

Jim Cramer: The 10-Year Yield Could Go to 2.75%

Jim Cramer: The 10-Year Yield Could Go to 2.75%

Oil Slumps, Gas Spikes Ahead of Holiday Weekend; Assessing the Chipmakers--ICYMI

Oil Slumps, Gas Spikes Ahead of Holiday Weekend; Assessing the Chipmakers--ICYMI

Week Ahead: Wall Street Looks to Jobs Report as North Korea Meeting Less Certain

Week Ahead: Wall Street Looks to Jobs Report as North Korea Meeting Less Certain

Dow and S&P 500 Decline, Energy Shares Fall as U.S. Crude Oil Slides 4%

Dow and S&P 500 Decline, Energy Shares Fall as U.S. Crude Oil Slides 4%