Font finder extension that works on localhost and local HTML files (file://)
Short answer: Kernhue is a free Chrome extension that identifies fonts, colors and CSS on localhost dev servers and on HTML files opened from your computer (file://). Localhost works right away. For local files, Chrome needs one switch: open chrome://extensions, click Details on Kernhue and turn on Allow access to file URLs. Then hover any text to see the font that is actually rendering.
Why font finders seem to “not work” on local files
Chrome does not let any extension run on file:// pages until you allow it, one extension at a time (Chrome’s extension docs). The switch is off by default, so a font finder can look broken on a local HTML file even though nothing is wrong with the page. Localhost is different: a dev server at http://localhost:3000 or http://127.0.0.1:5500 is an ordinary web page to Chrome and needs no extra permission.
Turn on “Allow access to file URLs” for Kernhue (once)
- Open
chrome://extensionsin a new tab, or right-click the Kernhue icon and choose Manage extension. - Find Kernhue and click Details.
- Turn on Allow access to file URLs.
- Go back to your local HTML file, reload it, and press Alt+Shift+K.
You don’t have to remember this: if you click Kernhue on a local file while the switch is off, its popup says so and opens Kernhue’s settings page in Chrome with one click. Kernhue’s own settings page also shows whether file access is on.
What you can check on localhost and local files
- The font that is actually rendering — not just the first name in the CSS font stack — with size, weight, line height and letter spacing
- Fallback fonts that didn’t load, crossed out — handy when a local
@font-facepath is wrong (how it works) - Colors in HEX, RGB, HSL or OKLCH, and the page’s full palette
- Clean CSS for any element, with browser defaults removed
- WCAG contrast for any pinned element
- Design tokens for the whole page as CSS variables, Tailwind v4 / v3, W3C JSON or DESIGN.md (how token export works)

Other ways that work on local pages
- Chrome DevTools — right-click the text, choose Inspect, open the Computed tab and scroll to Rendered Fonts. Works on any page, local files included, one element at a time (all three methods).
- Serve the folder locally — run
npx serveorpython -m http.serverin the folder, then open thelocalhostaddress. The page becomes a normal web page, and no file-access switch is needed.
Where Kernhue helps most
- Checking a build before it ships — confirm the right web font loads on your dev server, not a fallback.
- Reviewing HTML exports and email templates — inspect fonts and colors in files saved on your computer.
- Matching a design — copy the exact font, color and CSS from a local prototype into your code.
Switching from WhatFont? See WhatFont alternative.
Questions
Can a Chrome extension identify fonts on a local HTML file?
Yes, once you allow it. Chrome blocks every extension from file:// pages until you turn on Allow access to file URLs for that extension in chrome://extensions (Chrome extension docs). Kernhue is built to work there: after the switch, hover any text on the local file to see its font.
Why is WhatFont not working on localhost or file:// pages?
On file:// pages the usual cause is Chrome’s file-access switch, which is off by default for every extension. WhatFont’s Chrome Web Store listing shows its last update on March 4, 2024, and a recent review there reports it not working on local HTML files (checked 2026-10-06). Kernhue tells you when the switch is off and opens the right settings page for you.
Does Kernhue need any setting for localhost?
No. localhost, 127.0.0.1 and other local dev servers are normal web pages to Chrome, so Kernhue works there right away — press Alt+Shift+K or click its icon.
Does turning on file access let Kernhue read my files?
No. Kernhue still runs only on the tab you choose, after you click it or press its shortcut (activeTab). The switch only allows it to run on a local page you have open; it does not browse your disk. Free features run in your browser and never upload page content; opening the panel only checks your plan status with a random ID.
Does this work in Edge or Brave?
Kernhue is a Chrome extension and runs in Chromium-based browsers. Those browsers have the same “Allow access to file URLs” switch on the extension’s details page (for example edge://extensions).
Try Kernhue
Kernhue is a font finder, color picker and CSS inspector for Chrome. Hover any text to see the font that is actually rendering, pick colors in HEX, RGB, HSL or OKLCH, copy clean CSS for any element, and export a page’s colors, type scale and spacing as CSS variables, Tailwind or design-token JSON.
Coming soon to the Chrome Web Store