google-apps-scriptgoogle-cloud-platformgoogle-workspacegoogle-workspace-add-ons

How can the Google App Script cards be styled?


  1. The following button always displays the text in all caps (SIGN IN). Is there a way to avoid capitalized text strings using CardService.newTextButton().setText('Sign in')?

  2. Is there a way to custom-style the whole card with a particular background color?


Solution

  • Sorry I don't have better answers!

    1. You can use an ImageButton. Obviously a bit of a hack, but should still meet a11y requirements with alt-text.
    2. This is not currently possible as far as I can tell.

    Please file separate feature requests for each of these.