Website search bar font colour is all white and it cannot be read at all.

Topic summary

Issue: After theme updates, the storefront search field rendered with white text on a white background, making input unreadable. The search function itself still worked.

Fix provided: A contributor suggested adding custom CSS to theme files:

  • component-predictive-search.css: set the predictive search results wrapper background to a darker color.
  • component-search.css: set input and predictive text color to black.
    The original poster confirmed this resolved visibility and allows color tweaking.

Root cause guidance: Another contributor noted that Shopify color Schemes can be shared across multiple sections. Editing a scheme in one place can unintentionally affect others. Recommendation: create a new color scheme in Theme settings and assign it to specific sections to avoid global side effects (screenshots provided).

Current status: The initial visibility problem is resolved for the OP. A subsequent participant confirmed the CSS fix worked and requested help to change the predictive search results’ colors (screenshot included). That follow-up request remains open with no specific code provided yet.

Summarized with AI on December 16. AI used: gpt-5.

I recently made some updates to my theme and realized that my search bar has turned all white. I assume it’s the font color that got changed because it is all white but the thing is I did not touch anything to do with the font colors. The search bar still works and I can search up products but it is all white and I have no idea how to change it back even though I’ve looked all over the theme settings.

Has anyone else ever experienced this before? Some assistance on this would be greatly appreciated!

Hi @Matt_TYH
To get the search visible properly you can add below CSS code to component-predictive-search.css, It will show like the: https://prnt.sc/TJWEAqhoPqun

div#predictive-search-results-groups-wrapper {
    background-color: #253e73;
}

And below css to component-search.css

.search__input.field__input {
    color: black;
}
[data-predictive-search-search-for-text] {
    color: black;
}
2 Likes

Did you change the color in any Scheme of your theme? If you don’t mind, please share your store URL so I can check and give you the code to solve the solution.

Thank you so so much, that’s what I was looking for. With these codes I can also play around with the color as well!

1 Like

I did play around with the theme’s colour scheme, but I tried to change some colours back and the search bar was still white so I assumed the scheme colour change wasn’t the problem but if you could search the root cause of it that would be great! so I can avoid this mistake again next time.

Some sections use the same color scheme so when you edit colors in those settings, it could affect other pages or sections. I recommend you create a new color scheme from your Theme settings

Select that scheme to edit color so it would not affect other sections or page

1 Like

Well noted on that Dan, I will keep this in mind! Thanks for your help!

Thank you, this worked for me!!

Is it possible that you can help me change the color for the results please?