What font does react.dev use?

The typeface on react.dev is Source Code Pro, Optimistic Display and Optimistic Text, loaded across 47 @font-face declarations. Every font family, weight and source on this page is read straight from the live CSS — no image guessing, no machine learning, just the rules the browser used.

Primary font
Source Code Pro
Total weights
4
@font-face
47
Source
Custom web font

Source Code Pro

Custom web font

The quick brown fox jumps over the lazy dog

Weights loaded (2)

400Typography sets the voice of a brand
700Typography sets the voice of a brand

CSS to use Source Code Pro

font-family: 'Source Code Pro', ui-monospace, SFMono-Regular, monospace;

@font-face source

woff2https://react.dev/fonts/Source-Code-Pro-Regular.woff2

Get this font

Source Code Pro
Commercial

Looks like a custom or commercial web font. Try MyFonts for licensing.

Search for Source Code Pro

Free alternatives if you can't license Source Code Pro

JetBrains MonoGoogle Fonts

Modern free mono tuned for code.

Open
IBM Plex MonoGoogle Fonts

Distinctive alternative with strong personality.

Open
Fira CodeGoogle Fonts

Mono with programmer ligatures.

Open
Used by 3 selectors on the page

Optimistic Display

Custom web font

The quick brown fox jumps over the lazy dog

Weights loaded (3)

500Typography sets the voice of a brand
600Typography sets the voice of a brand
700Typography sets the voice of a brand

CSS to use Optimistic Display

font-family: 'Optimistic Display', Georgia, 'Times New Roman', serif;

@font-face source

woff2https://react.dev/fonts/Optimistic_Display_W_Md.woff2

Get this font

Optimistic Display
Commercial

Looks like a custom or commercial web font. Try MyFonts for licensing.

Search for Optimistic Display

Free alternatives if you can't license Optimistic Display

LoraGoogle Fonts

Workhorse free serif with great screen rendering.

Open
Source Serif 4Google Fonts

Cleaner contemporary alternative.

Open
MerriweatherGoogle Fonts

Heavier sibling for editorial body copy.

Open
Used by 1 selector on the page

Optimistic Text

Custom web font

The quick brown fox jumps over the lazy dog

Weights loaded (3)

400Typography sets the voice of a brand
500Typography sets the voice of a brand
700Typography sets the voice of a brand

CSS to use Optimistic Text

font-family: 'Optimistic Text', Georgia, 'Times New Roman', serif;

@font-face source

woff2https://react.dev/fonts/Optimistic_Text_W_Rg.woff2

Get this font

Optimistic Text
Commercial

Looks like a custom or commercial web font. Try MyFonts for licensing.

Search for Optimistic Text

Free alternatives if you can't license Optimistic Text

LoraGoogle Fonts

Workhorse free serif with great screen rendering.

Open
Source Serif 4Google Fonts

Cleaner contemporary alternative.

Open
MerriweatherGoogle Fonts

Heavier sibling for editorial body copy.

Open
Used by 1 selector on the page

Optimistic Display W Bd

Custom web font

The quick brown fox jumps over the lazy dog

Weights loaded (1)

400Typography sets the voice of a brand

CSS to use Optimistic Display W Bd

font-family: 'Optimistic Display W Bd', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

@font-face source

woff2https://react.dev/fonts/Optimistic_Display_W_Bd.woff2

Get this font

Optimistic Display W Bd
Commercial

Looks like a custom or commercial web font. Try MyFonts for licensing.

Search for Optimistic Display W Bd

Free alternatives if you can't license Optimistic Display W Bd

InterGoogle Fonts

Safe, neutral free sans-serif that works in nearly any layout.

Open
ManropeGoogle Fonts

Slightly warmer humanist alternative.

Open
DM SansGoogle Fonts

Cleaner geometric sibling.

Open
Used by 0 selectors on the page

Optimistic Display W Md

Custom web font

The quick brown fox jumps over the lazy dog

Weights loaded (1)

400Typography sets the voice of a brand

CSS to use Optimistic Display W Md

font-family: 'Optimistic Display W Md', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

@font-face source

woff2https://react.dev/fonts/Optimistic_Display_W_Md.woff2

Get this font

Optimistic Display W Md
Commercial

Looks like a custom or commercial web font. Try MyFonts for licensing.

Search for Optimistic Display W Md

Free alternatives if you can't license Optimistic Display W Md

InterGoogle Fonts

Safe, neutral free sans-serif that works in nearly any layout.

Open
ManropeGoogle Fonts

Slightly warmer humanist alternative.

Open
DM SansGoogle Fonts

Cleaner geometric sibling.

Open
Used by 0 selectors on the page

Optimistic Display W SBd

Custom web font

The quick brown fox jumps over the lazy dog

Weights loaded (1)

400Typography sets the voice of a brand

CSS to use Optimistic Display W SBd

font-family: 'Optimistic Display W SBd', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

@font-face source

woff2https://react.dev/fonts/Optimistic_Display_W_SBd.woff2

Get this font

Optimistic Display W SBd
Commercial

Looks like a custom or commercial web font. Try MyFonts for licensing.

Search for Optimistic Display W SBd

Free alternatives if you can't license Optimistic Display W SBd

InterGoogle Fonts

Safe, neutral free sans-serif that works in nearly any layout.

Open
ManropeGoogle Fonts

Slightly warmer humanist alternative.

Open
DM SansGoogle Fonts

Cleaner geometric sibling.

Open
Used by 0 selectors on the page

Optimistic Text W Bd

Custom web font

The quick brown fox jumps over the lazy dog

Weights loaded (1)

400Typography sets the voice of a brand

CSS to use Optimistic Text W Bd

font-family: 'Optimistic Text W Bd', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

@font-face source

woff2https://react.dev/fonts/Optimistic_Text_W_Bd.woff2

Get this font

Optimistic Text W Bd
Commercial

Looks like a custom or commercial web font. Try MyFonts for licensing.

Search for Optimistic Text W Bd

Free alternatives if you can't license Optimistic Text W Bd

InterGoogle Fonts

Safe, neutral free sans-serif that works in nearly any layout.

Open
ManropeGoogle Fonts

Slightly warmer humanist alternative.

Open
DM SansGoogle Fonts

Cleaner geometric sibling.

Open
Used by 0 selectors on the page

Optimistic Text W It

Custom web font

The quick brown fox jumps over the lazy dog

Weights loaded (1)

400Typography sets the voice of a brand

CSS to use Optimistic Text W It

font-family: 'Optimistic Text W It', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

@font-face source

woff2https://react.dev/fonts/Optimistic_Text_W_It.woff2

Get this font

Optimistic Text W It
Commercial

Looks like a custom or commercial web font. Try MyFonts for licensing.

Search for Optimistic Text W It

Free alternatives if you can't license Optimistic Text W It

InterGoogle Fonts

Safe, neutral free sans-serif that works in nearly any layout.

Open
ManropeGoogle Fonts

Slightly warmer humanist alternative.

Open
DM SansGoogle Fonts

Cleaner geometric sibling.

Open
Used by 0 selectors on the page

Optimistic Text W Md

Custom web font

The quick brown fox jumps over the lazy dog

Weights loaded (1)

400Typography sets the voice of a brand

CSS to use Optimistic Text W Md

font-family: 'Optimistic Text W Md', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

@font-face source

woff2https://react.dev/fonts/Optimistic_Text_W_Md.woff2

Get this font

Optimistic Text W Md
Commercial

Looks like a custom or commercial web font. Try MyFonts for licensing.

Search for Optimistic Text W Md

Free alternatives if you can't license Optimistic Text W Md

InterGoogle Fonts

Safe, neutral free sans-serif that works in nearly any layout.

Open
ManropeGoogle Fonts

Slightly warmer humanist alternative.

Open
DM SansGoogle Fonts

Cleaner geometric sibling.

Open
Used by 0 selectors on the page

Optimistic Text W Rg

Custom web font

The quick brown fox jumps over the lazy dog

Weights loaded (1)

400Typography sets the voice of a brand

CSS to use Optimistic Text W Rg

font-family: 'Optimistic Text W Rg', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

@font-face source

woff2https://react.dev/fonts/Optimistic_Text_W_Rg.woff2

Get this font

Optimistic Text W Rg
Commercial

Looks like a custom or commercial web font. Try MyFonts for licensing.

Search for Optimistic Text W Rg

Free alternatives if you can't license Optimistic Text W Rg

InterGoogle Fonts

Safe, neutral free sans-serif that works in nearly any layout.

Open
ManropeGoogle Fonts

Slightly warmer humanist alternative.

Open
DM SansGoogle Fonts

Cleaner geometric sibling.

Open
Used by 0 selectors on the page

How react.dev loads its fonts

Get Font Info inspected the homepage of react.dev and parsed 1 stylesheet totalling 106.1 KB. Inside those stylesheets we found 47 @font-face declarations — the rules a browser uses to download and register a custom typeface. The primary typefaces are served from custom web font, and 9 CSS rules reference them across the page.

Check the font on a specific element

Open the live inspector and hover any text on react.dev to see the exact font, weight, size and line-height for that element.

Open live font inspector for react.dev

Frequently asked questions

What font does react.dev use?

react.dev uses Source Code Pro, Optimistic Display and Optimistic Text as its primary typefaces. These fonts are loaded from a self-hosted webfont and applied across 9 CSS rules on the homepage.

Where does react.dev load its fonts from?

react.dev loads its fonts from a self-hosted webfont. Get Font Info detected 47 @font-face declarations across 1 stylesheet on the live page.

What weights of Source Code Pro does react.dev use?

react.dev loads Source Code Pro in 4 weights: 400, 500, 600, 700. If you want to match the look, request the same weights from your font host so you only ship what's actually used.

Can I use the same font as react.dev on my website?

Yes — once you know the font name, you can load it from the same source. If Source Code Pro isn't a fit (licensing, weight selection, look-and-feel), close alternatives include JetBrains Mono, IBM Plex Mono and Fira Code. Use the CSS snippet on this page as a starting point.

Is the font on react.dev free to use?

These fonts are self-hosted webfonts. They may be licensed commercially from a type foundry, custom-made for the brand, or freely available — you would need to identify the typeface and check its license at the foundry.

See fonts used by other sites

Compare the typography on react.dev with how other well-known sites load and use their fonts.

About this page

This page lists the fonts loaded by the homepage of react.dev. Get Font Info reads the live CSS — every @font-face rule, every font-family declaration — so you see the exact fonts the browser used, not an image-based guess.

More guides: find a font used on a website, identify fonts from a website, what typeface is this website using, or font checker.