Theory of van der Waals materials