Statistical mechanical approach to phase transitions in colloids