Turn on dark mode in Overleaf.
Overleaf has a built-in dark mode in its redesigned interface, which changes the code editor and inverts the PDF preview. If your menu looks different, you need to switch to the new look before the setting appears.
The short answer: open your project settings, go to the appearance tab, and toggle dark mode on. If the setting is missing, switch your project to Overleaf's new interface first.
How to turn on dark mode
Open any project in your browser.
Click the gear icon in the top right corner of the editor panel to open settings.
Navigate to the appearance tab in the settings menu.
Toggle dark mode to on, which turns the editor background dark and inverts the PDF preview.
What to do if the dark mode toggle is missing
If you do not see the dark mode switch in your appearance settings, your project is likely running on Overleaf's older interface. Dark mode is only available in the redesigned look.
To switch interfaces, open the settings menu from the gear icon, find the toggle labeled use new interface or switch to new look, and enable it. The page will refresh automatically, and the dark mode switch will appear in your appearance options.
How dark mode affects the PDF preview
When you enable dark mode, Overleaf inverts the colors of the PDF viewer so white pages appear dark gray or black with light text. This prevents eye strain during late-night writing sessions.
The inversion is strictly local to your browser view. When you compile your document and download the final PDF, the output retains its normal white background and standard black text for printing or submission.
Using browser extensions for dark themes
If you prefer custom color schemes beyond Overleaf's built-in toggle, you can use community-made browser extensions or user styles. Tools like browser extensions from the Chrome Web Store or userstyle managers apply custom CSS to the Overleaf site.
These extensions let you tweak syntax highlighting colours, background shades, and sidebar tones. Keep in mind that third-party styles can occasionally break when Overleaf updates its web interface, requiring updates from the extension maintainers.
Questions
Does Overleaf have a built-in dark mode?
Yes. Overleaf includes a native dark mode in its redesigned interface, which darkens the code editor and inverts the PDF preview without changing your exported document.
Why can't I find the dark mode toggle in my settings?
If the toggle is missing, you are likely using Overleaf's legacy interface. Open your settings, turn on the new interface option, and refresh the page to reveal the dark mode setting.
Does dark mode change the final compiled PDF?
No. The dark preview is local to your browser screen. When you download your compiled PDF, it retains the normal white background and standard formatting.
Try your own paper in Texeno.
Start free, upload a project as a .zip and press Recompile. Upgrade when you need longer compiles.
Start writing