Match: Electric and magnetic fields in matter