Popups and Options Pages for Chrome extensions have an additional user agent stylesheet that adds styles similar to Chrome's own chrome://settings
and other pages. The styles are mentioned in explaining how to declare your V2 options page:
chrome_style (boolean) - optional
If true, a Chrome user agent stylesheet will be applied to your options page. The default value is false, but we recommend you enable it for a consistent UI with Chrome.
Is that stylesheet a stable API?
Where is that stylesheet?
When extensions are installed into Chrome they are extracted into the C:\Users\[login_name]\AppData\Local\Google\Chrome\User Data\Default\Extensions folder. Each extension will be stored in its own folder named after the ID of the extension.
On your computer, open Chrome . At the top right, click Extensions .
I found the answer in Chromium source. The following two stylesheets are added to Options Pages with chrome_style:true
:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With