Skill Level: 
Intermediate

Badges

.dcf-badge
This includes styles common to all badges and requires the addition of one of the following modifier classes to fully style a badge.

Roundrect Badges

.dcf-badge-roundrect
Use this modifier for a badge with roundrect shape.

h1. Heading with roundrect badge New

h2. Heading with roundrect badge New

h3. Heading with roundrect badge New

h4. Heading with roundrect badge New

h5. Heading with roundrect badge New
h6. Heading with roundrect badge New

Paragraph with roundrect badge New

Pill Badges

.dcf-badge-pill
Use this modifier for a badge with pill shape.

h1. Heading with pill badge New

h2. Heading with pill badge New

h3. Heading with pill badge New

h4. Heading with pill badge New

h5. Heading with pill badge New
h6. Heading with pill badge New

Paragraph with pill badge New

Blockquotes

.dcf-blockquote
Like inline quotes (<q>), the blockquote component automatically adds quotation marks—no need to add your own.
.dcf-attribution
To attribute the source of a quote, put the attribution in a <footer> element with the dcf-attribution class. It will automatically prepend an em dash (&mdash;) followed by a thin space (&thinsp;). If the attribution source comes from a creative work, it should be cited using the <cite> element and italicized with the <i> element to visually offset the title of the work from the rest of the attribution.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

Jane Doe in Source Title

Related: Blockquotes (Elements), Quotes (Elements)

Button Groups

.dcf-btn-group
Group two or more buttons together.
This example shows a button group with primary buttons.
This example shows a button group with secondary buttons.

Related: Buttons (Elements), Buttons (Components)

Buttons

Buttons include the <button> element, as well as form inputs (type="button" and type="submit") and links styled to appear as buttons.

.dcf-btn
This includes styles common to all buttons and requires the addition of one of the following modifier classes to fully style a button.

Primary Buttons

.dcf-btn-primary
Use the primary modifier to give standard emphasis to a button.
Link

Secondary Buttons

.dcf-btn-secondary
Visually de-emphasize buttons by using the secondary modifier.
Link

Tertiary Buttons

.dcf-btn-tertiary
Visually de-emphasize buttons by using the tertiary modifier.
Link

Inverse Primary Buttons

.dcf-btn-inverse-primary
Use the inverse primary modifier to give standard emphasis to a button on a dark background.
Link

Inverse Secondary Buttons

.dcf-btn-inverse-secondary
Visually de-emphasize buttons on a dark background by using the inverse secondary modifier.
Link

Inverse Tertiary Buttons

.dcf-btn-inverse-tertiary
Visually de-emphasize buttons on a dark background by using the inverse tertiary modifier.
Link

Button State: Active

Button State: Disabled

Related: Button Groups (Components), Forms (Elements), Forms (Components), Input Groups (Components)

Cards

.dcf-card
A card is a commonly-used design pattern that groups related content in a container that resembles a physical playing card.
.dcf-card-block
The card block provides padding for text inside the card. Card contents that need to span the full width (like an image) should be placed outside of the card block.
  • Card #1

    Donec sed odio dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae elit libero, a pharetra augue. Maecenas sed diam eget risus varius blandit sit amet non magna.

    Placeholder image.
  • Card #2 with a super, duper long title

    Nulla vitae elit libero, a pharetra augue. Donec ullamcorper nulla non metus auctor fringilla. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas sed diam eget risus varius blandit sit amet non magna. Aenean lacinia bibendum nulla sed consectetur.

    Placeholder image.
  • Card #3

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod. Maecenas sed diam eget risus varius blandit sit amet non magna. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

    Placeholder image.
  • Card #4

    Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed posuere consectetur est at lobortis. Aenean lacinia bibendum nulla sed consectetur.

    Placeholder image.

Related: Lists (Elements), Grids (Objects), Unstyled Lists (Components), Grid (Utilities), Flexbox (Utilities), Order (Utilities)

Code

.dcf-pre
Retain code styling for multiple lines of code wrapped with <pre> element.
<p>Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
<p>Nulla vitae elit libero, a pharetra augue.</p>

Related: Code (Elements)

Figures

.dcf-figcaption
Figures do not require any additional classes, but .dcf-figcaption provides consistent styles for the <figcaption>. It reduces the font-size and lightens the text to help distinguish it from body copy. Use utility classes to add margins or padding as needed by the content in your <figure>.
Placeholder image.
A <figure> with one image and a <figcaption>.
Placeholder image. Placeholder image. Placeholder image.
A <figure> with multiple images and a <figcaption>. Use the <small> element along with display, padding and font-size utilities to credit the source(s) of figure content, like so: Illustrations by Jane Doe

Related: Figures (Elements), Images (Elements), Display (Utilities), Margins (Utilities), Padding (Utilities), Font Size (Utilities)

Forms

.dcf-form
Style a form and its children.
.dcf-form-group
Wrap groups of form elements (such as a label and input pair) to visually offset them from other form elements.
.dcf-form-controls-inline
At the small breakpoint, display labels and form controls inline (as space allows) instead of stacked.
.dcf-form-help
Formats help/description text that displays adjacent to a form element.
.dcf-required
Indicate that an adjacent form input is required to submit the form.
.dcf-input-checkbox
.dcf-input-radio
Wrap a checkbox or radio input and label pair for consistent cross-browser styling.
Sample Form Content

Make sure it’s a good one!

Checkboxes
Radio buttons

This is some placeholder block-level help text for the above input. It’s a bit lighter and easily wraps to a new line.

Related: Buttons (Elements), Buttons (Components), Forms (Elements), Input Groups (Components)

Headings

Subheads

.dcf-subhead
A subhead is smaller and slightly lighter in appearance than a heading. Change the order of headings and subheads by wrapping them in a <div class="dcf-d-flex dcf-flex-col"></div> and adding order classes (.dcf-1st, .dcf-2nd, et al.) to the headings and subheads.

Maecenas faucibus mollis interdum

Cras Ullamcorper Cursus Porta

Pellentesque Nibh Malesuada

Related: Headings (Elements), Display (Utilities), Flexbox (Utilities), Order (Utilities)

Input Groups

.dcf-input-group
An input group prepends or appends text or a button to a text input. The form label must be placed outside of the input group. It can be vertically aligned with the input group by adding .dcf-flex and .dcf-ai-center to the input group's parent element.

Input Groups With Add-ons

.dcf-input-group-addon
An add-on provides additional context for a text input in a form. It can be placed before and/or after the text input.
@
This example shows an input group with an add-on before the input.
@example.com
This example shows an input group with an add-on after the input.
$ .00
This example shows an input group with an add-ons before and after the input.

Input Groups With A Button

If a form consists of a single field and button, consider using an input group for a more compact layout.

Related: Buttons (Elements), Buttons (Components), Forms (Elements), Forms (Components), Box Alignment (Utilities), Display (Utilities)

Lists

Bare Lists

.dcf-list-bare
This removes the left padding from a list and removes numbers from ordered lists or bullets from unordered lists.
  • Bare list item #1
  • Bare list item #2
  • Bare list item #3
  • Bare list item #4
  • Bare list item #5

Inline Lists

.dcf-list-bare
Remove left padding and list styles for the inline list.
.dcf-list-inline
Change the display of list items to inline-block and add right margin to all but the last list item.
  • Inline list item #1
  • Inline list item #2
  • Inline list item #3
  • Inline list item #4
  • Inline list item #5

Inline lists are also used to create pagination:

Related: Lists (Elements)

Pagination

See Inline Lists

Tables

Tables in the framework are optimized for readability by reducing unnecessary ornamentation and placing an emphasis on the content itself. Richard Rutter's article "Web Typography: Designing Tables to be Read, Not Looked At" (excerpted from his book, Web Typography) is an excellent resource on the subject.

.dcf-table
The table font-size is slightly smaller than the body copy. Padding and borders are also added.
This is a table. Utility classes are used to right-align numbers in this table.
Table heading Table heading Table heading Table heading
Table cell 49 Cras mattis consectetur purus sit amet fermentum Nullam Sollicitudin Mattis
Table cell 16 Nullam quis risus eget urna mollis ornare vel eu leo Ornare Porta Vulputate
Table cell 387 Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus Inceptos Ullamcorper Etiam
Table cell 9 Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit Bibendum Sit Lorem

Bordered Tables

.dcf-table-bordered
The bordered table adds borders to all cells in the table.
This is a bordered table.
Column 1 heading Column 2 heading Column 3 heading Column 4 heading
Row group 1 heading 49 Cras mattis consectetur purus sit amet fermentum Nullam Sollicitudin Mattis
16 Nullam quis risus eget urna mollis ornare vel eu leo Ornare Porta Vulputate
Row group 2 heading 387 Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus Inceptos Ullamcorper Etiam
9 Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit Bibendum Sit Lorem

Striped Tables

.dcf-table-striped
The striped table adds a subtle background color to alternating rows in the table.
This is a striped table.
Column 1 heading Column 2 heading Column 3 heading Column 4 heading
Row 1 heading 49 Cras mattis consectetur purus sit amet fermentum Nullam Sollicitudin Mattis
Row 2 heading 16 Nullam quis risus eget urna mollis ornare vel eu leo Ornare Porta Vulputate
Row 3 heading 387 Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus Inceptos Ullamcorper Etiam
Row 4 heading 9 Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit Bibendum Sit Lorem

Responsive Tables

.dcf-table-responsive
Responsive table contents display “stacked” at narrow screen widths.
This is a responsive table.
Greeting Amount Year Description
Hello $2.00 1984 Nullam id dolor id nibh ultricies vehicula ut id elit
Hi $999.99 1999 Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Etiam porta sem malesuada magna mollis euismod. Nullam quis risus eget urna mollis ornare vel eu leo. Etiam porta sem malesuada magna mollis euismod.
Hey $1,000,000.01 2001 Donec ullamcorper nulla non metus auctor fringilla
Yo $.01 2020 Nulla vitae elit libero, a pharetra augue
This is a responsive bordered table.
Greeting Amount Year Description
Hello $2.00 1984 Nullam id dolor id nibh ultricies vehicula ut id elit
Hi $999.99 1999 Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Etiam porta sem malesuada magna mollis euismod. Nullam quis risus eget urna mollis ornare vel eu leo. Etiam porta sem malesuada magna mollis euismod.
Hey $1,000,000.01 2001 Donec ullamcorper nulla non metus auctor fringilla
Yo $.01 2020 Nulla vitae elit libero, a pharetra augue
This is a responsive striped table.
Image Amount Year Description
Placeholder image. $2.00 1984 Nullam id dolor id nibh ultricies vehicula ut id elit
Placeholder image. $999.99 1999 Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Etiam porta sem malesuada magna mollis euismod. Nullam quis risus eget urna mollis ornare vel eu leo. Etiam porta sem malesuada magna mollis euismod.
Placeholder image. $1,000,000.01 2001 Donec ullamcorper nulla non metus auctor fringilla
Placeholder image. $.01 2020 Nulla vitae elit libero, a pharetra augue

Scrollable Tables

.dcf-wrapper-table-scroll
Add this class along with .dcf-wrapper to a <div> that wraps the <table> to enable horizontal scrolling as needed.
This is a scrollable table.
Greeting Amount Year Month Day Description 1 Description 2 Description 3
Hello $2.00 1984 Jan 11 Nullam id dolor Etiam porta sem malesuada magna mollis euismod Donec id elit non mi porta gravida at eget metus
Hi $999.99 1999 Dec 31 Integer posuere erat Donec sed odio dui Cras justo odio
Hey $1,000,000.01 2001 Jul 15 Donec ullamcorper nulla non metus auctor fringilla Cras mattis consectetur purus sit amet fermentum Donec ullamcorper nulla non metus auctor fringilla
Yo $.01 2020 Feb 23 Nulla vitae elit libero, a pharetra augue Cras mattis consectetur purus sit amet fermentum Vestibulum id ligula porta felis euismod semper
Donec sed odio dui. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.

Related: Tables (Elements), Borders (Utilities), Horizontal Text Alignment (Utilities)

Contributed By: 
IIM