Chrome
Open console using
Cmd+Option+J
orCtrl+Shift+J
.Prefix the log statement with
%c
, and supply the CSS styles as the second argument toconsole.log()
.

Firefox
Open console using
Cmd+Option+J
orCtrl+Shift+J
.Prefix the log statement with
%c
, and supply the CSS styles as the second argument toconsole.log()
.

Safari
Open console using
Cmd+Option+J
orCtrl+Shift+J
.Prefix the log statement with
%c
, and supply the CSS styles as the second argument toconsole.log()
.

Edge
Open console using
Cmd+Option+J
orCtrl+Shift+J
.Prefix the log statement with
%c
, and supply the CSS styles as the second argument toconsole.log()
.

Opera
Open console using
Cmd+Option+J
orCtrl+Shift+J
.Prefix the log statement with
%c
, and supply the CSS styles as the second argument toconsole.log()
.
