Capital Gains in CA on sale in Texas

I’m not familiar with CA taxes, but I thought capital gains was a federal tax? Any accountants want to chime in?