A theory of dark energy that matches dark matter