Cupper: An Inclusive Documentation Builder
As accessibility and inclusive design specialists, we are paid for our expertise. But the form that expertise takes and how it is delivered varies depending on different clients’ needs. Some look for high-level reports, while others prefer issues to be addressed independently, in the midst of ongoing development.
As clients have gotten wise to the benefit of designing for accessibility from the ground up, the demand for our expertise at earlier stages of product lifecycles has increased. Accordingly, we’ve been investigating and developing new kinds of services and deliverables; ones more suited to design than design critique.
One area that has been of particular interest has been pattern libraries. Often, design issues can only be effectively addressed by creating entirely new patterns and components to solve those problems. These solutions can be detailed in reports, or in working code. A good pattern library contains both working code and its documentation — all in the same place.
To manage pattern libraries effectively, we needed a system for building and hosting them. This is why we built Cupper, and we’re happy to share it as a free and open tool with you.
Documentation sites as PWAs
Cupper is a high performance generator of rich and accessible documentation sites in the form of progressive web applications (PWAs). That means the documentation sites you create can be saved to your devices and read offline. Because Cupper instances exist as Github repositories, this is possible out of the box. When you commit and push changes to your content, your Github Pages site is updated and a new service worker is installed.
More than just markdown
“Pattern” files in Cupper are written in markdown. Markdown is the preferred format of static site generators because, as a text format, it is easy to version control. But Infusion allows you to include much richer content in your markdown via special shortcodes. Included are shortcodes for expandable sections, file tree diagrams, WCAG references, browser support tables, and even working code demos encapsulated with Shadow DOM. These are all documented in Cupper’s own documentation site, which is built with Cupper.
Cupper‘s name comes from the notion of “infusing” products and interfaces with inclusive design; transforming them irreversibly for the better. Regardless of what you are documenting using Infusion, the documentation you’ll be creating meets the highest accessibility standards and incorporates a wealth of inclusive design features.
Cupper‘s visual design is almost entirely black and white. In fact, the only time it breaks into greyscale is for code syntax highlighting. The sparse, neutral aesthetic was chosen so that the branding and visual design of subject content would not come into conflict. Should you find a darker design kinder to the eyes, Cupper also offers a white-on-black “dark mode”, available from the footer of any instance.
note: Cupper was, in it’s so far brief life, formerly known as Infusion.