
The principle works wherever there are fermions: in atoms, metals, white dwarf stars. In an atom, electrons fill orbitals sequentially, and this defines the Periodic Table. In metals, thanks to the Pauli principle, electrons are distributed by energy, creating degenerate gas pressure that resists the compression of white dwarfs.