Skip to main content
HelloCSV ships with a built-in dark theme. Because the importer is embedded inside your application, dark mode is opt-in — HelloCSV never forces a dark appearance based on the operating system, so it always matches whatever your host page decides.

Enabling dark mode

Pass dark to the theme prop:

Following your app’s light / dark state

The recommended pattern is to drive the theme prop from whatever signal your app already uses for light/dark mode, so the importer flips together with the rest of the page:
Want the OS preference to drive it? Read prefers-color-scheme in your own app and feed the result into the theme prop:

How it works

The dark theme simply reassigns the same CSS variables documented in Theme Styles — both the accent colors and the neutral surface/text/border tokens — so every part of the importer (including portalled dropdowns, tooltips, and modals) adapts automatically.

Customizing the dark palette

To fine-tune the dark colors, override the tokens under the dark theme selector in your own CSS:
See Theme Styles for the full list of available tokens.