As electric cars become more common, we can lower gas taxes to the point that they only cover environmental externalities and switch to a weight x mileage tax for roads.
(Mileage to be measured at vehicle inspection time and incorporated in registration fees.)