This guide will be deprecated soon!

CommCare HQ is currently undergoing a migration to Bootstrap 5. You can find the updated style guide here.

CommCare HQ Style Guide

This is a communication and reference tool. It can be used to help make decisions that have already been thoughtfully made. By taking similar, simiplifed base patterns, often called "atoms", we can build cohesive "molecules" and then more complex "organisms." This keeps code cleaner and lighter while also keeping things simpler for our users to understand.

Why all the biology-related terminology? It comes from the notion of atomic design. Atomic design relates design to the hierarchies and building processes of the natural world. It uses five stages: atoms, molecules, organisms, templates, and pages. HQ doesn't follow this methodology, but the rough ideas can still make for a useful framework.

Some general principles to keep in mind:

Atoms

Read about atoms in HQ

Molecules

Read about molecules in HQ

Organisms

Read about organisms in HQ

Templates and Pages

Read about templates and pages in HQ