A quantitative theory based on cation–solvent and anion–solvent affinity has been developed to elucidate the solvation microstructure of electrolytes. This unified framework can simultaneously predict electrolyte structure, transport properties, and interfacial behaviour. Thus, the framework provides a solvent-specific design platform for the development of high-performance electrolytes.