Crystal-design principle reveals how competing molecular forces control structure, color and phase transitions