Customize a web app with CSS

Learn how to customize a template in ArcGIS Instant Apps using CSS.

Active hurricanes, cyclones, and typhoons web app created with ArcGIS Instant Apps.

ArcGIS Instant Apps allows you to quickly create a web app to display your web map or scene. You can select from a collection of pre-configured templates, make the necessary configurations to your selected template, and deploy your web app in a matter of minutes.

In this tutorial, you will:

  1. Create your web app using the Sidebar template in ArcGIS Instant Apps.

  2. Configure the web app.

  3. Customize the header of the web app.

  4. Share your web app.

You can learn more about creating and styling a web map in the tutorials below.

Prerequisites

Steps

This tutorial uses the publicly available Hurricanes and Tropical Cyclones web map.

Create a web app

Now that you have a web map, you can use ArcGIS Instant Apps to load it.

  1. In the Content tab of your organization, click Create app > Instant Apps.

  2. In the Create tab, click Choose button for the Sidebar template.

  3. Click Create app. For this tutorial, name the app Active Hurricanes, Cyclones and Typhoons and add your desired tags.

Configure the web app

With your app created, you can now configure the app by adding the Hurricanes and Tropical Cyclones web map.

  1. Click Step 1. Map > Select a map or scene.

  2. Click on the My content dropdown > ArcGIS Online.

  3. Using the Search bar, type the following: Hurricanes and Tropical Cyclones web map by esri_livefeeds.

  4. Click on Select map.

  5. Click Next and enable Header to show the name of your web app.

  6. Click Next and enable Legend, Pop-up, and Details.

  7. Click Next and enable Search and Search open at start.

  8. Click Next and Select a mode > Dark.

  9. Click Publish > Confirm to deploy your app.

Your app should look something like this. You can return to the configuration page of your app to add more widgets like Zoom or Scalebar widgets.

Customize the web app

After you configured your web app, you can start customizing it.

  1. In the left panel. disable Express mode. When the confirmation prompt pops up, click Continue.

  2. Click Search settings and type in Custom CSS. The Theme & Layout settings will be displayed.

  3. Click Edit in the Custom CSS section. Custom CSS side window will then be displayed, allowing you to enter a CSS class to override.

  4. Enter the following CSS override rule to change how layer names are displayed.

Use dark colors for code blocksCopy
1
2
3
4
h3.esri-widget__heading {
  font-family: var(--calcite-sans-family);
  font-size: var(--calcite-font-size-0);
}
  1. Click Close.

  2. Click Publish.

The text labels for the layers in the table of contents are now displayed using the Calcite Design System variables:

  • Font: --calcite-sans-family variable which is sans-serif font.
  • Size: --calcite-font-size-0 variable which is 1rem size.

Share your web app

Once your web app is published, you can configure who can access your app. By default, the sharing level for your app is set to only you having access to it.

  1. Navigate to the item page of your web app.

  2. Click Share to launch the "Share" dialog.

  3. Select the sharing level needed for your audience to access your app.

Tutorials

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.