A shim is effectively a wedge to fill a gap between a cabinet (base or upper) where the mounting surface (wall or floor) is uneven.