Text this: Unravelling chromism in metal-organic frameworks