Style guidelines for ACLU.org

Feedback

🚨This repo has been deprecated: Please reference the style guide in Storybook, which is part of the aclu-vue-library repo.

Intro

This guide shows how to make your website look consistent with the rest of ACLU.org. It collects patterns and best practices that work well for us, and that we try to stick to. They are intended to be diverged from when there is good reason.

It is intended as a specific application of what’s laid out in the wider brand guidelines, so refer to these as your first resource:

Discuss

You can submit questions and comments using Github Issues.

Common colors: white, black, blue, red

Selected sections have a blue left border with bolded text.

(WIP)

Grid & Layout

Pages are divided into 12 uniform columns, inside either a full-span container or an inset container. Container types could be mixed and matched on the same page, for example to have a full-span header and inset content below.

Layout areas use 1 or more columns, common page layouts divide evenly by 2, 3, or 4.

Columns have left/right padding of 15px so that content always sits inset inside a column.

On mobile and tablet, a good rule of thumb is to stack all elements vertically by default. Then make exceptions case by case when elements are related (such as buttons, navigation links, etc).

Example of HTML/CSS implementation, using floats or flexbox

Breakpoint Specifications

  Viewport Container
XS 599px and below 100% with 8px margins
S 600px-999px 540px container, centered
M 1000px-1199px 960px container, centered
L 1200px and above 1140px container, centered

Color

(For suggested color combinations, see the brand guidelines.)

When choosing colors, remember to check for accessibility following WCAG AA guidelines. It’s often a small change to darken/lighten something that can have a large impact. You can use this cheatsheet, or any of the following tools to check for proper contrast:

As with anything, apply common sense using the above for guidance. Essential elements (like body text) should take priority while optional elements have some flexibility.

Typography

(See brand guidelines on when to use GT America and when to use Century Schoolbook.)

Download the full set of required web fonts here

Common sizes:

Text colors

#231F20 for all headers, buttons and form elements

#333333 for body copy

TK guidelines for

Century Schoolbook

Spacing

Imagery & Icons

Interactive Elements

Tap target sizes: on non-touch devices, aim for at least 30px wide/high, on touch devices, aim for at least 45px wide/high.

TK

Forms

TK

Animation

TBD

Accessibility

Some general best practices for creating and maintaining accessible websites:

Additional Accessibility Reading

Guide to browsing mockups on Figma

Many sections in this style guide include examples illustrated by mockups on Figma. A few pointers on how to browse:

You can get information on color, type, spacing, etc by clicking on elements and looking at the right sidebar (you’ll need to create a free Figma account to see them).