Base

Colors

UW Credit Union's colors follow a Marketing-approved color palette.

Text & Link Colors

In the absence of color classes, elements will use the default gray text color and the default link color.

Color classes may be applied to any element. Child elements and anchor tags will assume the text color from any parent with a color specified.

Child elements and anchor tags can define their own color to override a parent's color specification.
View Code
Class
Hex Value
.txt-gray
#323334
Default text color.
This color is defined for <body>. Therefore, this class is only needed to set the default color on text that would normally be another color, i.e. text inside an <a>.
.txt-med-gray
#606164
.txt-light-gray
#858689
Secondary text.
This light color reduces the visual prominence of text on the page.
.txt-faint-gray
#bbb
Icons only.
This color does not offer enough contrast against a white background and should not be used for text.
.txt-primary
#D50032
Primary color.
Only use this color for headline and non-clickable text.
#317897
Link color.
Only use this color for links and clickable text on a white background. Do not use this color for headlines or other pieces of static text.
#2c6b87
Link color.
Only use this color for links and clickable text on a gray backgound to pass contrast. Do not use this color for headlines or other pieces of static text.
.txt-error
#d3001a
Error messages.
Use this color for error messages, including input validation errors. May be used as normal body text, bold text or headline text.
.txt-warn
#d14600
Warning message headlines.
Use this color for warning message headlines or bold text. May not be used as normal body text, because there is not enough contrast against a white background at smaller font sizes.
.txt-success
#007c49
Success message headlines.
Use this color for success message headlines or bold text. May not be used as normal body text, because there is not enough contrast against a white background at smaller font sizes.
.txt-info
#317897
Info message headlines.
Use this color for info message headlines or bold text. May not be used as normal body text, because this color is reserved for links.

Background Colors

To ensure proper contrast of text against background, only use the color combinations displayed below. Other color combinations may not be accessible.

An element with a light background color does not need a text color specified.
An element with a dark background color must have a text color specified. A default text color is not assumed.
View Code
Classes
Hex Values
.bg-faint-gray
.txt-gray
.txt-med-gray
.txt-light-gray
.txt-info
.txt-link
#f4f4f4
#323334
#606164
#858689
#317897
#317897
.txt-light-gray - Good for icons only. Do not use for text.
.bg-light-gray
.txt-gray
.txt-med-gray
.txt-link-dark
.txt-info
.txt-link
#eee
#323334
#606164
#2c6b87
#317897
#317897
.txt-link - Bold only.
.txt-link-dark - Only for a link on a gray background to pass contrast
.bg-med-gray
.txt-default
#aaa
Use body text
.bg-gray
.txt-white
.txt-med-gray-reversed
#717275
#fff
#fff (70%)
.txt-med-gray-reversed - Good for icons only. Do not use for text.
.bg-dark-gray
.txt-white-reversed
.txt-med-gray-reversed
#58595b
#fff (85%)
#fff (70%)
.bg-dark-gray - For use in special cases only. This is not a primary color in our palette.
.txt-white-reversed - This color has a slightly reduced opacity to prevent it from appearing too stark in contrast to a dark gray background. It stills "looks" white.
.txt-med-gray-reversed - Good for icons only. Do not use for text.
.bg-info
.txt-white
#31789
#fff
.bg-warn
.txt-white
#cc4e00
#fff
.bg-error
.txt-white
#d3001a
#fff
.bg-success
.txt-white
#007c49
#fff

Display & Width Utilities

Use the display and width utility classes to change the default display or width of an element.

Classes
.block
Sets display:block;
.inline-block
Sets display:inline-block;
.inline
Sets display:inline;
.flex
Sets display:flex;
Classes
.auto-width
Sets width:auto;
.full-width
Sets width:100%;

Floats, Indents & Centering

Floats & Clearing

These items float on all screen sizes.

.right
.left

These items float on MD+ screen sizes.

.right-md
.left-md
View Code
Show Classes

Indents

This text is indented on all screen sizes using .indent

This text is indented on medium screens and larger using .indent-md. On smaller screens, where screen real estate is limited, it is not indented to allow more horizontal space for the text.

View Code
Show Classes

Centering

Centered block element. (Must have a defined width.)
Centered inline-block element.
View Code
Show Classes

Horizontal Rules

Use horizontal rules to divide page content into logical sections. Vertical margins are automatically reduced on XS and SM screen sizes to save screen real estate.




The line below only appears on MD+ screen sizes.


View Code
Show Classes

Padding & Margin Utilities

Use the padding and margin utilty classes to override the default padding or margin on any element.

By default, 1 padding unit = 5px. (An app may override this value with the $padding-unit SASS variable.)

  • p, m = padding, margin
  • a, t, r, b, l, h, v = all, top, right, bottom, left, horizontal, vertical
  • 0, 1, 2, 3, 4, 5, 6 = 0 units (0px), 1 unit (5px), 2 units (10px), 3 units (15px), 4 units (20px), 5 units (25px), 6 units (30px)
.pa1 (padding all 5px)
.mb1 (margin bottom 5px)
.pv4 (padding vertical 20px)
.ph2 (padding horizontal 10px)
.mb6 (margin bottom 30px)
View Code

Print Utilities

Classes
.print-only
Display this element for printing only. Uses display:block;.
.no-print
Hide this element when printing. Uses display:none;.
.print-avoid-break-inside
Use sparingly to prevent a page break inside this element when printing. Use for small sections of a page only. This can cause unexpected results when used on an element that would be taller than one printed page.

Responsive Layout

Breakpoints

UW Credit Union uses 4 major breakpoints, which offer 5 target device/viewport sizes for controlling layout.

PX
Size
CSS Suffix
Devices
< 480px
Extra Small
xs
Phones
< 768px
Small
sm
Phones / Phablets
< 980px
Medium
md
Tablets (Portrait)
< 1260px
Large
lg
Tablets (Landscape) / Desktop
>= 1260px
Extra Large
xl
Desktop

Visibility

UW Credit Union uses utility classes to control visibility of elements at different device or viewport sizes. When an elelent is visible, its display is set to display: block;.

Classes
.hidden-xs
Hidden on XS screens only
.hidden-sm
Hidden on SM screens only
.hidden-md
Hidden on MD screens only
.hidden-lg
Hidden on LG screens only
.hidden-xl
Hidden on XL screens only
Classes
.visible-xs
Visible on XS screens only
.visible-sm
Visible on SM screens only
.visible-md
Visible on MD screens only
.visible-lg
Visible on LG screens only
.visible-xl
Visible on XL screens only

Visibility for Inline Elements

When you need to control visibility on an inline element, such as <span>, use the utility classes for inline visibility. This is helpful for shortening link and button text to fit small screens. When an elelent is visible, its display is set to display: inline;.

Classes
.hidden-inline-xs
Hidden on XS screens only
.hidden-inline-sm
Hidden on SM screens only
.hidden-inline-md
Hidden on MD screens only
.hidden-inline-lg
Hidden on LG screens only
.hidden-inline-xl
Hidden on XL screens only
Classes
.visible-inline-xs
Visible inline on XS screens only
.visible-inline-sm
Visible inline on SM screens only
.visible-inline-md
Visible inline on MD screens only
.visible-inline-lg
Visible inline on LG screens only
.visible-inline-xl
Visible inline on XL screens only

Screen Reader Only

Classes
.screen-reader-only
Makes an item available to screen readers only. Hides the element from sighted users.

Typography

UW Credit Union's Marketing-approved font for the Web is Gotham Narrow. Our fallback font stack is Arial, Helvetica, sans-serif. Our base font size is 16px for XS, SM and 14px for MD+.

Headings

UW Credit Union sets font sizes for headings <h1> through <h6> and increases top margins if they fall directly after a paragraph.

For accessibility, avoid skipping levels in the heading hierarchy. For example, do not skip from an <h1> to an <h3>. If you want the visual style of an <h3>, use a class like .looks-like-h3 to visually style any block element as a heading.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dolor nisi, sed lobortis neque convallis a. Sed sodales vitae nibh sed mattis.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
View Code
Show Classes

Font Sizes

You can override the default font size on any element using the font size utility classes.

Note: Font sizes classes should be applied to block elements only, such as <p> or <div>. Applying these classes to inline elements, such as <span>, will result in incorrect line height.

XX-Large

X-Large

Large

Default Size

Small

XSmall

XXSmall

View Code
Show Classes

Font Styling

You can override the default font styling on any element using the font style utility classes.

Bold

Semibold

Normal

Normal Italic*

Light


Capital

Small Capital

Xsmall Capital

*Note: Our current web font package only provides italic for the normal font weight.

View Code
Show Classes

Line Height

UW Credit Union sets a standard line height for copy. You can override the standard line height for elements that require more compact spacing using the .txt-line-normal class.

A paragraph with standard line height. Cupcake ipsum dolor sit amet cake sweet liquorice marzipan. Donut pie apple pie topping sweet. Lemon drops marshmallow pie halvah marshmallow soufflé cotton candy. Chupa chups pudding pie wafer cheesecake caramels dragée halvah danish.

Text with Less
Line Spacing

View Code
Show Classes

Text Alignment

Left-aligned text.
Center-aligned text.
Right-aligned text.
Left-aligned on mobile
& center-aligned MD+.
View Code
Show Classes

Lists

Indented Lists:

  1. Numbered Item 1
  2. Numbered Item 2
  3. Numbered Item 3
  1. Alphabetical Item 1
  2. Alphabetical Item 2
  3. Alphabetical Item 3
  • Spaced Bulleted Item 1
  • Spaced Bulleted Item 2
  • Spaced Bulleted Item 3

Left-Aligned Lists:

  1. Numbered Item 1
  2. Numbered Item 2
  3. Numbered Item 3
  • Bulleted Item 1
  • Bulleted Item 2
  • Bulleted Item 3
  • Non-Bulleted Item 1
  • Non-Bulleted Item 2
  • Non-Bulleted Item 3
View Code
Show Classes