The Best Fonts for Dark Mode, and How to Set Them (2026)
The same text looks heavier as light-on-dark than as dark-on-light. This is called halation or the irradiation illusion. The best fonts for dark mode let you make strokes slightly lighter without changing letter widths, so nothing reflows when people switch theme.
We make ExodeUI and the free Exode fonts on this list. Every other font here is free under the SIL Open Font License or, for SF Pro, Apple’s own license.
The best fonts for dark mode have a grade axis: Roboto Flex and Exode Polarity make strokes lighter in dark mode without changing widths. If your font has no grade axis, use a slightly lighter weight in dark mode and off-white text instead of pure white. Inter, IBM Plex Sans and Atkinson Hyperlegible Next all work well with that approach.
Quick picks by job
| If you need | Use |
|---|---|
| Best overall for dark mode | Roboto Flex |
| Best for animated theme switches | Exode Polarity |
| Best neutral choice | Inter |
| Most legible | Atkinson Hyperlegible Next |
Side-by-side comparison
| Font | Grade axis | How to adjust for dark mode | License |
|---|---|---|---|
| Roboto Flex | Yes | Lower GRAD | OFL |
| Exode Polarity | Yes | Lower GRAD; can animate | OFL |
| Inter | No | One weight step lighter, or a lower variable weight | OFL |
| IBM Plex Sans | No | Slightly lower variable weight | OFL |
| Atkinson Hyperlegible Next | No | Slightly lower variable weight | OFL |
How we compared them
- Can be made lighter without reflow
- Readable as light text on dark
- Free for commercial use
- Variable, for fine adjustment
The best fonts for dark mode
1. Roboto Flex
Best for: Fine control, including a grade axis for dark mode
- Platforms
- Google Fonts, GitHub
- Price
- Free, SIL Open Font License
- Output
- Variable: 13 axes including weight, width, optical size, slant and grade
Roboto Flex is the variable version of Roboto with an unusually large set of axes. The grade axis (GRAD) changes stroke weight without changing letter widths, which is the cleanest way to stop light-on-dark text looking too bold.
Pros and cons
- Grade axis for dark mode and hover states
- Optical size and width axes
- Familiar Android look
- Large file if you load every axis
- Looks like default Android to many people
2. Exode Polarity
Best for: Keeping the same visual weight in light and dark mode
- Platforms
- exodeui.com/free-fonts
- Price
- Free, SIL Open Font License (made by us)
- Output
- Static OTF; grade axis in ExodeUI
Exode Polarity has a grade axis that makes strokes lighter or heavier without changing any letter’s width. Set it a little lower in dark mode, where light text looks bolder, and the theme switch can animate without text reflowing.
Pros and cons
- Built for dark mode
- No reflow when the theme changes
- Free
- Basic Latin only
- The grade axis works in ExodeUI; the OTF download is static
3. Inter
Best for: A neutral, very readable interface font for almost any product
- Platforms
- Google Fonts, GitHub
- Price
- Free, SIL Open Font License
- Output
- Variable: weight and optical size; tabular figures
Inter by Rasmus Andersson was designed for computer screens: a tall x-height, open shapes and careful spacing at small sizes. It is variable in weight and optical size and has OpenType features that matter in interfaces, such as tabular figures and a slashed zero. It is the safe default when you are not sure.
Pros and cons
- Readable at small sizes
- Tabular figures and other UI features
- Huge language coverage and community
- So common that it rarely gives a product its own voice
4. Atkinson Hyperlegible Next
Best for: Products where low-vision readers matter
- Platforms
- Google Fonts, GitHub
- Price
- Free, SIL Open Font License
- Output
- Variable: weight
Made by the Braille Institute with Applied Design Works, Atkinson Hyperlegible exaggerates the differences between letters that are easy to confuse, such as I, l and 1 or O and 0. The Next version adds more weights and languages.
Pros and cons
- Built around letter distinctness
- Variable weight
- Free, from a respected accessibility organisation
- Its quirky details are noticeable in large headings
5. IBM Plex Sans
Best for: Enterprise and data-heavy products that want a little character
- Platforms
- Google Fonts, GitHub
- Price
- Free, SIL Open Font License
- Output
- Variable: weight and width; Mono, Serif and Condensed relatives
IBM Plex is IBM’s corporate family, open-sourced. The sans has slightly engineered details that read well at interface sizes, and the family includes mono, serif and condensed members, so one system covers tables, code and editorial text.
Pros and cons
- A full family: sans, mono, serif, condensed
- Variable weight and width
- Good for dense, technical interfaces
- Recognisably IBM in tone
You have read the list. The one we make is one click away.
Free Community plan. One open .exode file that runs in React, Vue, Svelte, Angular, Solid, React Native, SwiftUI and Flutter.
Also worth a look
How to set a font for dark mode in CSS
With a grade axis: inside @media (prefers-color-scheme: dark), set font-variation-settings: "GRAD" -25 (Roboto Flex’s grade runs below and above zero). Without one: set a slightly lower font-weight for body text in dark mode, for example 380 instead of 400 in a variable font. Use off-white text such as #e6e6e6 on a dark grey, not pure white on black, and avoid hairline weights.
Why not just use a lighter weight?
A lighter weight is also narrower in most fonts. When the theme changes, lines rewrap and the layout jumps. Grade changes stroke thickness only, so every letter keeps its width. That is why Google and Adobe recommend grade for dark mode.