Repository navigation
Themes
Themes are data, not code. Every color, size, type size and timing of the window's chrome comes from one JSON file, themes/default.json. Edit it while the window is open and the chrome follows.
-
themes/default.jsonbeside the executable, else in its parent directory -
--theme <file.json>on the command line - Every token has a built-in default; a missing or malformed token falls back to it, and each problem is named
Colors — chrome-background, chrome-text, chrome-text-muted, chrome-border, tab-active-background, tab-inactive-background, tab-hover-background, address-background, address-text, address-border, accent, selection, find-highlight, find-current, hint-background, hint-text, button-hover-background, button-disabled-text, status-background, status-text, content-background, secure-indicator, insecure-indicator
Metrics — tab-strip-height, tab-height, tab-max-width, tab-min-width, tab-corner-radius, tab-gap, toolbar-height, address-height, address-corner-radius, button-size, button-corner-radius, padding, border-width, status-height, find-height, devtools-height, scroll-step, tab-icon-size
Type — font-size, tab-font-size, status-font-size
Timings — tab-hover, tab-switch
Colors are written as #rrggbb or #rrggbbaa.
A unit test asserts that the shipped themes/default.json equals the built-in defaults token for token, so the file and the code cannot drift apart. The chrome goldens in CI (see Testing) are rendered from the same file.
Getting started
What works today
Measured
Design decisions
Testing and tools