Edit in GitHubLog an issue

Building UIs using Adobe's Spectrum Design System

This tutorial will guide you on how to get started building great UI's for your add-ons using Adobe Spectrum.

Introduction

In this tutorial, you will learn how to build two fully functioning Adobe Express add-ons from scratch that use Adobe Spectrum for building the user interface. The concept for the add-on you will build is a bingo card generator, which allows a user to customize a bingo card with their chosen colors, random numbers and an optional FREE space.

The two different add-on's you will create are:

An example of what you will build is shown below:

Bingo add-on screenshot

This add-on allows users to select settings to customize a bingo card; including background, foreground, title color, gridline size and whether to include a "FREE" space. The card is generated with random numbers, and ensures no numbers are used twice. The user can drag the customized card to the page, or click the "Add to page" button to use it in their document.

Changelog

February 6th, 2024

January 31st, 2024

  • First publication, by Holly Schinsky

Prerequisites

  • Familiarity with HTML, CSS, JavaScript.
  • Familiarity with the Adobe Express add-ons environment; if you need a refresher, follow the quickstart guide.
  • An Adobe Express account; use your existing Adobe ID or create one for free.
  • Node.js version 16 or newer.

Sample Projects

  • Lesson 1 project - Bingo Card Generator add-on using Spectrum Web Components and JavaScript

Topics Covered

Quickstart: Try Spectrum Web Components

A quick way to try out Spectrum Web Components without requiring any external tools, is to use a sandboxed environment like a codepen. See this simple codepen, for example. It references the Spectrum Web Components libraries as bundles from a CDN for simplicity, and shows how to use the Express theme with a button component.

Check out the codepen, then try changing the scale value in the <sp-theme> tag to a value of "large" - then back to "medium" to see the effect.

NOTE: You can try using any other Spectrum Web Components in a similar fashion, ensuring they're included within the opening <sp-theme> and closing </sp-theme> tags.

Before moving on, check out this codepen which implements the UI for the bingo card generator add-on and gives you a glimpse of what you're going to be building. You can change the layout to represent how it might look running in Express, by clicking the layout icon button outlined below, and dragging the width of the frame to 320px:

Bingo codepen screenshot

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.