The foundation practice for mindfulness is the development of a steady concentration which is able to then hold all things in awareness, both pleasant and unpleasant, without necessarily identifying with them:
The practice of concentration (samadhi) trains the mind’s capacity for being present in the moment,
thus augmenting our ability to bring wise attention to bear as much as possible on the experience.
Andrew Olendzki.