HTML Pages in Rich Text

How to build an HTML page that shows the way you designed it, in your app and on your club website.

A Rich Text action can show a whole page you've built in HTML, such as a match day guide, an event program or a club history. Fans see it in your app, in stack links and on your club website. This page covers what works, what doesn't, and what to do instead.

Adding your page

  1. Open the stack and the Rich Text action, and go to the HTML Source tab.
  2. Click Choose HTML file and pick your .html file, or paste the HTML into the box.
  3. Read the checks under the box. They list anything fans won't see, and why.
  4. Under Display, check it says Full page. Loading a file sets this for you.
  5. Save the stack, then open it on your phone to check.

Card or Full page

Card
The action shows as a card with its name. Fans open and close it. Use this for short text among other actions.
Full page
No card, title or open/close arrow. Your page sits straight on the screen, full width, and scrolls with the rest of the stack. On club websites it also uses the full width of its box. Use this for a designed page.

For a page on its own, put the Rich Text action in a group by itself. A group with several actions shows its own card around them. To go edge to edge in the app, turn off the stack's content padding. On a website, set the box's padding and background to none.

The rules

Your page usesWhat fans seeDo this instead
Scripts, onclick-style handlers, javascript: linksNot allowed. The stack won't save until they're removed.Click Remove scripts under the box. Use the ideas below for anything interactive.
FontsThe app has Inter, Manrope, DM Sans, DM Serif Display, Fraunces, Spartan, Barlow Condensed and Big Shoulders Display. Any other font shows as the next font in your list.Use one of those fonts, and end every font list with sans-serif or serif.
Links to outside style sheets or fonts (<link>, @import)Removed.Put all your CSS in a <style> block in the page.
ImagesShown if the address starts with https://. Paths like images/logo.png don't load.Upload images to the CMS and use their full address.
Images embedded in the file (data:)Shown, but they count toward the 100 KB limit.Upload them to the CMS and link to them.
Inline SVG icons (<svg>)Removed.Save each icon as an image in the CMS and use an <img> tag.
Tap-to-open sectionsWork with <details> and <summary>, no script needed.Use <details>, as in the starter page below.
Buttons and formsButtons show as plain text; fields don't show.Style a link as a button. Use a Form action to collect details.
Video, maps and other embeds (<iframe>, <video>)Removed.Link to them, or use a YouTube or Media action next to your page.
position: fixed or stickyRemoved. Pinned bars and headers scroll with the page.Design the page to scroll from top to bottom.
Styles on body or htmlApplied to your page's area: background, padding, font and text colour.Nothing to change.

Your <style> rules only apply inside your page. They can't change the rest of the app or website.

Size limit

A page can be up to 100 KB. The count shows next to Choose HTML file. The whole stack is saved as one record, so this keeps room for everything else in it. If a page is too big, look first at embedded images and CSS the page doesn't use.

Designing for phones

  • Design for a phone first. Phone screens are roughly 360–430 px wide.
  • Keep the top-left corner clear. When fans have opened your stack from somewhere else in the app, a round back button sits over the top-left corner, about 52 by 52 px. Start your page with some top padding, as the starter page does.
  • Leave side padding of 16–24 px so text doesn't touch the screen edge.
  • Avoid vw and vh sizes and wide-screen @media layouts. They follow the whole screen, not the space your page sits in.
  • The page scrolls with the stack. There's no separate scroll area, so a long page is fine.

On club websites

The same page shows on your club website. Put it in a box that spans the page width, so it isn't squeezed. Leave Fixed height off: with a fixed height, anything taller scrolls inside the box instead of the page.

Starter page

Copy this into a new .html file, change the words, colours and image address, then load it into the action. It follows every rule on this page.

<style>
  body { font-family: Inter, sans-serif; color: #1a1a1a; background: #ffffff;
         padding: 56px 20px 32px; line-height: 1.5; }
  .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
             text-transform: uppercase; color: #d6334f; margin: 0 0 8px; }
  h1 { font-size: 32px; line-height: 1.15; margin: 0 0 12px; }
  .lead { font-size: 18px; color: #555555; margin: 0 0 32px; }
  img { max-width: 100%; border-radius: 12px; }
  .callout { background: #fbeff2; border-left: 4px solid #d6334f;
             border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 24px 0; }
  details { border-top: 1px solid #e5e5e5; padding: 12px 0; }
  summary { font-weight: 600; cursor: pointer; }
  .button { display: inline-block; background: #d6334f; color: #ffffff;
            padding: 12px 20px; border-radius: 999px; text-decoration: none;
            font-weight: 600; }
</style>

<p class="eyebrow">Match day guide</p>
<h1>Scoring a match.</h1>
<p class="lead">Everything you tap lands on a supporter's screen.</p>

<img src="https://example.com/your-photo.jpg" alt="Describe the photo">

<div class="callout">
  <strong>Press on the whistle.</strong> Start and end each half on the
  referee's whistle, not a few seconds either side.
</div>

<details>
  <summary>What if I get a goal wrong?</summary>
  <p>Record it now, fix it later. The scorer and the minute can both be changed.</p>
</details>

<p><a class="button" href="https://example.com">Read the full rules</a></p>
Before you save

Check the list under the HTML box is clear or only shows warnings you're happy with, Display is set to Full page, and every image address starts with https://. Then open the stack on a phone.