Pharos
JSTOR's Design System
Getting started Help FAQs DocumentationDevelopment GitHub JSTOR LogosTypographyColorImageryIconographyElevationVoice and toneJSTOR termsWeb elementsGrammar and styleEditing checklistAlertButtonBreadcrumbCheckboxCheckbox groupCoach MarkComboboxDropdown menuDropdown menu navFooterHeaderHeadingIconImage cardInput groupLayoutLinkLoading spinnerModalMultiselect dropdownPaginationPillPopoverProgress barRadio buttonRadio groupSelectSheetSidenavSliderSwitchTableTabsToastTooltipText inputTextareaToggle button groupOverviewAlias colorsGlobal colorsGradientsFont familyFont sizeFont weightLine heightElevationRadiusSpacingTransitionsType scaleType styles
Skip to main navigation
Contributing documentation
For all Pharos components and elements, contributors create useful, thorough documentation to provide an understanding of its proper usage and context.
Importance

Documentation is essential to upholding quality and cohesion. Articulate and thorough documentation allows for users and contributors to acquire knowledge more efficiently, motivating further contribution and information sharing. Referring to documentation helps to reduce redundancy in components and features while ensuring all implemented features are being used appropriately and to their fullest potential.

When documentation is needed

When a new component or feature is added, supporting documentation should be written to communicate and provide guidelines for its proper usage. Additionally, if changes are made to existing components that affect their usage or functionality, the documentation should reflect these changes.

Writing documentation Getting started

To get started, use the documentation categories below to ensure all needed sections are included and consistent.

Writing guidelines

Please refer to the JSTOR content style guide to gain a better understanding of our collective writing style and structure. We apply our writing principles when creating documentation.

Concise

The way we write is simple and direct, and for all reading levels. It should be understandable by anyone regardless of their culture, language, or ability. We aim to provide the right amount of context so our users know how to use Pharos components or elements successfully.

Consistent

We use the same template for each of the components to create predictability in understanding their purpose, standards, and variations. We also aim to use consistent language in all documentation so users experience a seamless transition as they make their way through the site.

Style

Wherever possible, write headings and titles in sentence case — studies indicate that sentence case is easier to read, plus title case can come across as heavy and overly serious.

Documentation categories Title

Title of the Component (singular)

Deck

Tweet-length description of the component and its purpose.

Usage

Explain the implementation of the element (e.g. orientation, placement, use cases). Indicate any behavior that a user would need to know that should happen when using this component in their UI.

Best practices Do's

Explain appropriate use cases for the component, general guidelines to follow when using, and other considerations that should be made in the component's usage.

Don'ts

Include common misuse cases for the component, common errors made in its usage, and other actions to avoid.

Content guidelines (If applicable)

If a component has content, please include guidelines for how the content should be written for the needs of the component (e.g., how labels should be written).

Variants (If applicable)

If a component has variants, display an example of the Pharos variant along with their title, purposes, and use cases (e.g. Error, Warning, Info, and Success Alerts).

States (If applicable)

If a component has multiple states (e.g. disabled, enabled, error, required), please include them. Include an example of the component in each state.

Accessibility Relevant guidelines

Include any WCAG guidelines that are applicable to the component for reference.

Visual expectations

If a component has any design elements that are specifically for accessibility reasons add that here. This section will not always appear as previous sections in the documentation may cover this content.

Code expectations

Outlines any code needed to successfully implement the component. Semantic elements should be indicated with <code> tags for clarity. In addition, include any important points pertaining to implementation.

Expected actions

Include any relevant keyboard commands and their behavior. There also needs to be a screen reader section, which should list what to expect audibly when interacting with a component.