Skip to main content

Molecules

Molecules are characterized by having more than just one little thing to them, and by not being a form input.

Accordion

Example

I haven't gotten my invitation. Are you still mailing them out?

We mailed out all invitations a while ago. If you did not receive one you probably were not invited. It's a small wedding, sorry.

Options
Code
Usage

General guidance

Accordions are used for progressive disclosure. Specifically, they can be used for things like FAQs, where the alternativue would be anchor links in a table of contents for showing the headings, then clicking to show the answer/detail.

Accordions should not be used to hide large amounts of content. That is being dishonest to the user about the content on the page. To mediate this, the accordion could be open by default.

Accessibility

Just some sample text in the accessibility section for now.

Alert

Example

Options
Code
Usage

General guidance

Alerts let the user know something more important and timely that body text.

Accessibility

Just some sample text in the accessibility section for now.

Byline

Example

Options
Code
Usage

General guidance

Bylines give metadata about a page, post, or entity.

Accessibility

Just some sample text in the accessibility section for now.

Collection hierarchy

Example

Options
Code
Usage

General guidance

A collection hierarchy represents all the items in a collection, as organized in the collection’s directory structure. It can serve as a secondary navigation, especially on pages for docs.

Accessibility

Just some sample text in the accessibility section for now.

Docblock

Example

Example

Options
Code
Usage
Accessibility
Options
Code
Usage

General guidance

Docblocks are used by the internal component system to show examples and documentation for other components.

Accessibility

Just some sample text in the accessibility section for now.

Menu

Example

Options
Code
Usage

General guidance

Menus can be used to group related navigation links together in order to display an implied information architecture.

Accessibility

Just some sample text in the accessibility section for now.

Search widget

Example

Options
Code
Usage

General guidance

The search widget is a toggleable icon that opens a search form for keyword searching the whole site. Only one should appear per page in order to avoid id attribute conflicts.

Accessibility

Just some sample text in the accessibility section for now.

Tweet

Example

Options
Code
Usage

General guidance

Tweets first render as blockquotes, and are then made into tweets via a third-party script. On this site we only include the Twitter script on pages that need it by using this molecule rather than encouraging direct tweet embeds (which do work).

Accessibility

Just some sample text in the accessibility section for now.

YouTube

Example

Me at the zoo
The very first YouTube video
Options
Code
Usage

General guidance

YouTube videos can really slow down the page load, so using this component is a helper for performance. It loads only the thumbnail image until you interact with it, and which point the whole video loads.

Accessibility

Just some sample text in the accessibility section for now.