To help your Editor add-on
look and feel like Google Sheets, Docs, Slides, or Forms, link in the CSS
package below to apply Google styling to fonts, buttons, and form elements.
For a sample of the CSS package in use, see the
Docs add-on quickstart.
To use the
CSS package, just include the following at the top of each HTML file:
Note that the style for form elements cannot be completely controlled in all
browsers. In particular, <select> elements display some visual artifacts in
Firefox and Internet Explorer, although they still work properly. To see what
the styles look like in a given browser, simply load this page in that browser.
Typography
Use Arial font for all text, in the following styles depending on use:
You can use any of the standard types of buttons—<button>,
<input type="button">, or <input type="submit">, as well as
<a class="button">. Buttons that are horizontally adjacent space
themselves out automatically. There are several colors available, for various
uses:
Sidebars can be tricky to style because while the height is variable, many
add-ons need to include a branding area that does not scroll.
Below is a simplified copy of the sidebar from the
Google Docs add-on quickstart.
If you drag the bottom-right corner of the text area to make the content taller
than the sidebar, the content area automatically scrolls but the branding at
the bottom does not.
The example uses the sidebar class to apply the correct padding and the
bottom class to force the branding area to the bottom. A local class,
branding-below, then defines the area that the main area of the sidebar should
leave clear from the bottom.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-11 UTC."],[],[]]