Neutral dyes work by binding to various cellular components based on their chemical affinities. Acidic dyes, which are negatively charged, bind to positively charged cellular components such as proteins. Conversely, basic dyes, which are positively charged, bind to negatively charged components like nucleic acids. When combined, these dyes can provide a balanced staining of both types of cellular structures.