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