# The Best Fonts for Dark Mode, and How to Set Them (2026)

> 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.

*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.*

Updated November 2026. Source: https://www.exodeui.com/best-fonts-for-dark-mode/

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.

## Quick picks

- Best overall for dark mode: **Roboto Flex**
- Best for animated theme switches: **Exode Polarity**
- Best neutral choice: **Inter**
- Most legible: **Atkinson Hyperlegible Next**

## The best fonts for dark mode

### 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: Grade axis for dark mode and hover states; Optical size and width axes; Familiar Android look

Cons: Large file if you load every axis; Looks like default Android to many people

### 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: Built for dark mode; No reflow when the theme changes; Free

Cons: Basic Latin only; The grade axis works in ExodeUI; the OTF download is static

More: [See Exode Polarity](https://www.exodeui.com/free-fonts/exode-polarity)

### 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: Readable at small sizes; Tabular figures and other UI features; Huge language coverage and community

Cons: So common that it rarely gives a product its own voice

### 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: Built around letter distinctness; Variable weight; Free, from a respected accessibility organisation

Cons: Its quirky details are noticeable in large headings

### 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: A full family: sans, mono, serif, condensed; Variable weight and width; Good for dense, technical interfaces

Cons: Recognisably IBM in tone

## 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.

## Frequently asked questions

### What is the best font for dark mode?

A font with a grade axis, such as Roboto Flex or Exode Polarity, because you can make text lighter in dark mode without changing its width. Inter is a good choice if you adjust the weight instead.

### Why does text look bolder in dark mode?

Bright strokes on a dark background appear to spread into the surrounding dark, an effect called halation or the irradiation illusion. The same weight therefore looks heavier.

### Should I use pure white text in dark mode?

Usually not. Off-white text on a dark grey reduces glare and halation while keeping contrast well above WCAG minimums. Check contrast with a tool rather than guessing.

### What font weight should I use in dark mode?

About one small step lighter than in light mode, for example 380 instead of 400 with a variable font, or the grade axis set a little below zero.

### What is a grade axis?

A variable font axis (GRAD) that changes stroke thickness without changing letter widths. It is the cleanest way to balance text across light and dark themes and hover states.

### Is dark mode better for reading?

Research generally finds dark text on a light background easier for long reading for most people, while dark mode helps in low light and for some readers. Offer both and respect the system setting.

## Related

- [Exode Polarity](https://www.exodeui.com/free-fonts/exode-polarity/)
- [What are adaptive fonts?](https://www.exodeui.com/adaptive-fonts/)
- [Best fonts for UI design](https://www.exodeui.com/best-fonts-for-ui-design/)
- [How to animate variable fonts](https://www.exodeui.com/how-to-animate-variable-fonts/)
- [Free fonts](https://www.exodeui.com/free-fonts/)
