Styleguide
See all pages: Table of Contents
Jump to: Color Typography Lists Buttons Forms Helpers
Color Palette
The following list represents all color variables available in the project. Reference them throughout the code using their $name.
- $color-pink
- $color-pink-dark
- $color-pink-light
- $color-pink-over
- $color-brown
- $color-brown-dark
- $color-brown-mid
- $color-brown-light
- $color-orange
- $color-orange-dark
- $color-yellow
- $color-black
- $color-gray-dark
- $color-gray-med
- $color-gray-light
- $color-gray-lightest
- $color-gray-warm
- $color-white
- $color-tan
- $color-tan-light
- $color-error
- $color-error-bg
Typography
The elements below represent the default styling for H1-H6 semantic heading levels in HTML. These elements are usually styled with additional classes.
.u-masthead-header
|
Masthead Header |
.u-masthead-subheader
|
Masthead Subheader |
.u-masthead-mini-header
|
Mini Masthead Header |
.u-header
|
Header |
.u-header-alt
Variants: |
Alternate Header |
.u-header-2
|
Header 2 |
.u-header-3
|
Header 3 |
.u-subheader-3
|
Subheader 3 |
.u-preheader
Variants: |
Pre-header |
.u-preheader-2
Variants: |
Pre-header 2 |
.u-text-error-inline
|
Inline error text |
.u-text-error-section
|
Section error text |
.u-footer-heading
|
Footer Heading |
.u-footer-links
|
Footer Links |
.u-lead
|
Lead paragraph - lorem ipsum dolor sit amet, strong text consectetur adipiscing elit. Fusce sem arcu, lobortis sollicitudin dolor ac, euismod accumsan eros. |
p
|
Paragraph Text - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sem arcu, lobortis sollicitudin dolor ac, euismod accumsan eros. Pellentesque habitant morbi link in running text tristique senectus et netus et malesuada fames ac turpis egestas. Nam laoreet lacus lacus, ut scelerisque massa porttitor eu. Etiam suscipit purus arcu, sed ultricies metus lobortis at. Curabitur ante nibh, iaculis sit amet vehicula nec, rutrum non ante. |
.u-text-small
|
Small Text - lorem ipsum dolor sit amet, strong text consectetur adipiscing elit. Fusce sem arcu, lobortis sollicitudin dolor ac, euismod accumsan eros. |
Lists
Note that these styles are only applied when the ol, ul and dl are within a .u-authorable container.
ul
|
|
ol
|
|
dl
|
|
Buttons
The following variant classes can be added to .u-cta as needed: .u-cta--secondary, .u-cta--tertiary, .u-cta--quaternary.
.u-add-item
Forms
Forms should be marked up with fieldsets and legends. Legends will be automatically hidden (accessibly). Form fields should be organized within an ordered list. Each list item contains a label with a for attibute matching the appropriate input ID. Placeholder text should be added as an attribute for all applicable fields.
Add data-parsley-validate attribute to forms (or add the .js-validate class somewhere inside the form) to initialize Parsley validation library. Set field types and required attribute on forms for Parsley to use. Add override error messages (by criteria) such as the following attribute on a given input: data-parsley-required-message="Please enter your first name."
Helpers
.u-table
| Lorem | Ipsum | Dolor |
|---|---|---|
| Lorem ipsum dolor | sit amet, consectetur adipisicing | elit. Quidem, molestiae? |
| Beatae veritatis corrupti facere officia tenetur eos | possimus eligendi quidem | molestiae mollitia |
| Nulla nostrum architecto nihil | recusandae sunt | aliquid eos perferendis deserunt reiciendis numquam |
.u-table-indented
| Lorem | Ipsum | Dolor |
|---|---|---|
| Lorem ipsum dolor | sit amet, consectetur adipisicing | elit. Quidem, molestiae? |
| Beatae veritatis corrupti facere officia tenetur eos | possimus eligendi quidem | molestiae mollitia |
| Nulla nostrum architecto nihil | recusandae sunt | aliquid eos perferendis deserunt reiciendis numquam |