Enabling dark mode
Passdark to the theme prop:
Following your app’s light / dark state
The recommended pattern is to drive thetheme prop from whatever signal your app
already uses for light/dark mode, so the importer flips together with the rest of
the page:
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 thedark theme selector
in your own CSS: