Getting Started
Check out the GitHub repository for information on how to use these patterns in your project, or view the Boilerplate for example markup.
Typography
ColorsDetails
Usage
Our main color palette.
-
#2176d2
rgb(37, 131, 231)
$ben-franklin-blue -
#96c9ff
rgb(150, 201, 255)
$ben-franklin-light -
#f3c613
rgb(243, 198, 19)
$bell-yellow -
#f99300
rgb(249, 147, 0)
$flyers-orange -
#58c04d
rgb(88, 192, 77)
$fairmount-green -
#ffffff
rgb(255, 255, 255)
$white -
#f0f0f0
rgb(240, 240, 240)
$ghost-gray -
#cfcfcf
rgb(207, 207, 207)
$sidewalk -
#a1a1a1
rgb(161, 161, 161)
$medium-gray -
#444444
rgb(68, 68, 68)
$dark-gray -
#000000
rgb(0, 0, 0)
$black
FontsDetails
Usage
The main body font is Open Sans, imported from Google Web Fonts. The font for headings is Montserrat, also imported from Google Web Fonts.
Primary font: "Open Sans", "Arial", sans-serif;
Primary font italic: "Open Sans", "Arial", sans-serif;
Primary font bold: "Open Sans", "Arial", sans-serif;
Secondary font: 'Montserrat', 'Tahoma', sans-serif;
ParagraphDetails
Usage
Standard paragraph tag.
A paragraph (from the Greek paragraphos, "to write beside" or "written beside") is a self-contained unit of a discourse in writing dealing with a particular point or idea. A paragraph consists of one or more sentences. Though not required by the syntax of any language, paragraphs are usually an expected part of formal writing, used to organize longer prose.
HeadingsDetails
Usage
You can add the 'contrast' class to any heading for a blue underline.
Heading 1
Heading 1
Heading 2
Heading 2 with contrast
Heading 3
Heading 3 with contrast
Heading 4
Heading 4 with contrast
Heading 5
Heading 5 with contrast
Heading 6
Heading 6 with contrast
Heading - ClassesDetails
Usage
Class names can re-style headings. These should be used when the normal markup doesn't fit the flow of the page, but should be maintained.
Heading 6 with h1 styles
Heading 1 with h2 styles
Heading 2 with h3 styles
Heading 3 with h4 styles
Heading 4 with h5 styles
Heading 5 with h6 styles
Headings - AlternateDetails
Usage
You can use the alternate
class for small, gray headings. All heading values render the same size. Use alternate divide
for a yellow separator.
The City of Philadelphia
The City of Philadelphia
AddressDetails
Usage
Vcard markup for contact information
Philadelphia, PA, 19107
BlockquoteDetails
Usage
A section of text that is quoted from another source.
The medium, or process, of our time - electric technology is reshaping and restructuring patterns of social interdependence and every aspect of our personal life. It is forcing us to reconsider and re-evaluate practically every thought, every action, and every institution formerly taken for granted. The Medium is The Massage, Marshall McLuhan
CalloutDetails
Usage
Callouts should be used to draw attention to text that is important in the context of other paragraphs.
You may need the following information before you pay online: Federal Entity Identification Number (EIN) or your Social Security Number (SSN) or Philadelphia Tax Account number and Philadelphia Department of Revenue PIN (personal identification number).
Horizontal RuleDetails
Usage
Help breakup a long page.
See All LinksDetails
Usage
Use the see-all-left
or see-all-right
classes to apply a left/right chevron to links. It is up to you to float them as needed.
LinksDetails
Usage
Links are bold and $ben-franklin-blue. External links are indicated by using the exernal
class.
Definition ListDetails
Usage
You can use rows and columns to position the definition and terms next to one another. Or not.
- The word
- The definition
Inline ListDetails
Usage
List items can appear next to each other.
Unordered List - No BulletsDetails
Usage
The no-bullet
class will need to be added to any nested list items, if those lists should also be bullet-less.
- List item with a much longer description or more content.
- List item
- List item
- Nested List Item
- Nested List Item
- Nested List Item
- List item
- List item
- List item
Ordered ListDetails
Usage
List items with a specific order.
Unordered ListDetails
Usage
Used when the order of the list items does not matter.
- List item with a much longer description or more content.
- List item
- List item
- Nested List Item
- Nested List Item
- Nested List Item
- List item
- List item
- List item
Small TextDetails
Usage
Small, grayed out text.
TimeDetails
Usage
Encode date/times in a machine-readable way.
Grid
Full Width-LayoutDetails
Usage
See Foundation Docs for full list of options.
Three Quarter LayoutDetails
Usage
See Foundation Docs for full list of options
Three Column LayoutDetails
Usage
See Foundation Docs for full list of options
Two-Column LayoutDetails
Usage
See Foundation Docs for full list of options
Containers
Content BlockDetails
Usage
Content blocks can be linked to more information, in which case the whole card is a link. To make a card, apply the 'card' class to an <a> tag that wraps the card content. The 'equal-height' class can be used to force blocks (and other elements) of different heights to appear equal.
Unlinked Block
Changes in tax rates are now in effect
As of July 1, 2015, Earnings, Wage & NPT - Resident (3.9102%) - Nonresident (3.4828%), U&O (1.21%), Parking & Valet Parking (22.5%), SIT (3.9102%), Real Estate .6317% (City) + .7681% (School) = 1.3998% (Total)
Event BlockDetails
Usage
12:00 PM - 2:00 PM
ModalDetails
Usage
A modal
PanelDetails
Usage
We're still working on this page's design and content. How can we make it better?
TableDetails
Usage
Your standard table. You can add the no-borders
class to any table to remove the inside and outside borders. Responsive tables are achieved using Stack Only Tablesaw and are built into Phila.gov Patterns. If your tables are loaded after the DOM, use $(document).trigger("enhance.tablesaw");
for responsive tables.
Table Header | Table Header | Table Header | Tbl Header |
---|---|---|---|
Content Goes Here | This is longer content Donec id elit non mi porta gravida at eget metus. | Content Goes Here | Content Goes Here |
Content Goes Here | This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus. | Content Goes Here | Content Goes Here |
Content Goes Here | This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus. | Content Goes Here | Content Goes Here |
Table - VerticalDetails
Usage
A column focused table. You can add the no-borders
class to any table to remove the inside and outside borders. Responsive tables are achieved using Stack Only Tablesaw and are built into Phila.gov Patterns. If your tables are loaded after the DOM, use $(document).trigger("enhance.tablesaw");
for responsive tables.
Content Goes Here | This is longer content Donec id elit non mi porta gravida at eget metus. | Cntnt Goes Here | Content Goes Here |
---|---|---|---|
Content Goes Here | This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus. | Content Goes Here | Content Goes Here |
Content Goes Here | This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus. | Content Goes Here | Content Goes Here |
TooltipsDetails
Usage
You can customize tooltips using foundation settings. Tooltups will automatically be initialized by using the has-tip
class.
Simple tooltip
Forms
Text FilterDetails
Usage
- List item with a much longer description or more content.
- List item
- List item
- Nested List Item
- Nested List Item
- Nested List Item
- List item
- List item
- List item
CheckboxesDetails
Usage
Error Text FieldDetails
Usage
Valid InputDetails
Usage
Number InputDetails
Usage
Password InputDetails
Usage
Text InputDetails
Usage
TextareaDetails
Usage
Web AddressDetails
Usage
Search FormDetails
Usage
Use the data-global-search
attribute on the form element and the search-field
class on the input to send searches to alpha.phila.gov. To use your own search functionality, omit the data attribute.
Navigation
Global
Page TitleDetails
Usage
The title tag should be in the following format - Page Title | phila.gov
Default Header Sans SearchDetails
Usage
Default HeaderDetails
Usage
Application HeaderDetails
Usage
Application Header, with app name next to logo. Please note the class "app" on the header tag. See application page for an example of a full-width layout.
Header with Site-Wide AlertDetails
Usage
Alpha-Beta alertDetails
Usage
A banner telling users a site is in alpha or beta and what that means.
We're piloting a new, user-friendly website design. To view the existing City website, visit phila.gov Opens in new window.
Site-Wide AlertDetails
Usage
Usually a weather-related alert
Winter Weather Advisory
Helper Classes
AccessibilityDetails
Usage
An off-viewport notice for links that open in a new window.
Border BottomDetails
Usage
Adding border-bottom-list
to a ul will provide padding and a border under each list time, except for the last one. Using the border-bottom
class will apply a bottom border to any element.
Color ClassesDetails
Usage
Add a class of any named color to an element to modify that element's color
value. You can do the sme thing, with background colors.
Equal Height DivsDetails
Usage
Use the equal-height
class on a parent element and the equal
class on elements within that can have variable height.
Unlinked Block
Changes in tax rates are now in effect
As of July 1, 2015, Earnings, Wage & NPT - Resident (3.9102%) - Nonresident (3.4828%), U&O (1.21%), Parking & Valet Parking (22.5%), SIT (3.9102%), Real Estate .6317% (City) + .7681% (School) = 1.3998% (Total)
Example div
Example div
Bacon ipsum dolor amet meatloaf turducken pork chop, prosciutto cupidatat incididunt aliqua ball tip shankle laboris ad dolor eiusmod. Nulla in corned beef meatloaf aute, boudin mollit nostrud cillum. Excepteur brisket short loin, id ribeye turducken laboris cupidatat officia doner laborum ut.
Bacon ipsum dolor amet meatloaf turducken pork chop, prosciutto cupidatat incididunt aliqua ball tip shankle laboris ad dolor eiusmod. Nulla in corned beef meatloaf aute, boudin mollit nostrud cillum. Excepteur brisket short loin, id ribeye turducken laboris cupidatat officia doner laborum ut.
LoadingDetails
Usage
Animate a "Loading" placeholder by adding the spin class to Font Awesome's fa-spinner icon.
SpacingDetails
Usage
Most of this comes from Tachyons.io with one major difference. Instead of using the -ns
suffix for "not small" classnames, use -mu
for "medium up". Spacing values documented below.
Key
p = paddingm = margin
a = all
h = horizontal
v = vertical
t = top
r = right
b = bottom
l = left
n = none = 0rem
xs = extra small = .25rem
s = small = .5rem
m = medium = 1rem
l = large = 2rem
x = extra = 4rem
xl = extra large = 6rem
xxx = extra extra large = 8rem
Padding All
paxs, pas, pam, pal, paxl, paxxl, paxxxl
Padding Horizontal
Padding Vertical
Padding Left
Padding Right
Padding Top
Padding Bottom
Margin All
maxs, mas, mam, mal, maxl, maxxl, maxxxl
Margin Horizontal
Margin Vertical
Margin Left
Margin Right
Margin Top
Margin Bottom
Vertical AlignDetails
Usage
Add .valign
to a wrapping div and .valign-cell
to the target div to create responsive vertically aligned content.
Rem dolorum dolor sapiente expedita. Neque quasi dolorum ut sed quis illo sit aspernatur. Architecto natus facere odit rem omnis labore dolores distinctio. Similique ipsam aut quaerat quaerat. Nulla quae optio perspiciatis debitis numquam et officiis.
White-spaceDetails
Usage
Add classes to modify an element's white-space
value.
white-space
property to nowrap