Skip to Content
Platform.Ontology

CSS system colors and system fonts

Computed values of system color keywords and font names reveal OS and theme.

Gets silentlyDevice detailsOS profileWeb browsersWhen the page loadsWhile you use it

In one line

Can guess your OS and theme from how system colors and fonts look

Computed values of system color keywords and font names reveal OS and theme.

getComputedStyle on keywords like ActiveText, Canvas, ButtonFace, and system-ui fonts returns OS-specific RGB values and font names. CreepJS uses them to detect OS, theme and spoofing.

What it can and can't do

What the user does: Nothing. It happens when the page loads

It can

  • Check the colors of built in items like buttons and links
  • Check the system font names and sizes
  • Tell Windows, macOS, and Android apart
  • Spot a browser that is faking its identity

It cannot

  • See your wallpaper or personal files
  • See a list of every font you installed
  • Learn your name from the colors
  • Tell your exact OS version

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported12008-12-11None
EdgeSupported122015-07-29None
FirefoxSupported12004-11-09None
SafariSupported12003-06-23None
Safari on iPhoneSupported12007-06-29None
Chrome on AndroidSupported182012-06-27None
Samsung InternetSupported1.02013-04-27None

How a site asks for it

APIgetComputedStyle(el).color for system keywords; font: caption, menu, status-bar
How access is grantednone
What the user seesNone
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsread fresh on every page load; nothing stored
How to take it backnone needed (no grant)
Inside an iframeReadable from cross-origin iframes too (same values)

Typical flow

  1. Page script reads the value
  2. No prompt is shown

Data you get

Shape: object
How often: static per session

FieldTypeUnitRangePrecision
system color RGBstringrgb()about 30 keywordsexact
system font family and sizestringNoneper OSNot listed

Technical limits

  • Tor Browser and RFP normalize them

The story

What it is

Reads how your system draws buttons, links and fonts, which varies by operating system and theme.

For you

You never see it. It runs in the background by asking the browser what color your system uses for plain buttons and which font it uses for menus. Different systems give different answers.

For makers

Some sites use it to match your system theme. Tracking and anti-fraud tools use the same answers to guess the operating system and spot tools that hide it. CreepJS style tests use it to see whether privacy tools are lying.

Where you see it

TypeExampleApps
securityA fingerprinting library reads system colors to notice that a browser claiming to be Windows draws buttons like macOS.FingerprintJS, CreepJS
productivityA web app matches buttons and menus to your system theme, so it looks native in dark or light mode.None named
accessibilityA page reads forced-colors system keywords to respect a person using high contrast mode.None named
creativeA browser design tool checks system fonts to show previews that match your computer.Figma
adsAn ad network adds the theme and font answers to its device ID to tell visitors apart.None named
gamesA browser game uses the system color scheme to choose a dark or light menu automatically.None named

Risks

  • Reveals OS and settings
  • Helps tracking without cookies

Good uses and abuse

Legitimate uses

  • Match native UI

Known abuse

  • OS and theme fingerprint

Scores

ScoreValueMeaning
Sensitivity1 of 5How revealing the data is
Utility2 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits3Rough identifying entropy, when known

Sources

How well checked: Inferred from related behavior.

On this page