Skip to main content

UWGB Template Stylesheet

New styles, 
Same Us

Let's update our looks.

These are the CSS styles used to create the new look and feel of uwgb.edu. You will need to be a CMS Editor in order to use the source panel to be able to edit the styles. If that doesn't make any sense have a quick chat with the web team so we can get you up to speed.

Web mock up

Colors

The website's color palette stems primarily from four colors:

  •  
    Brand 1
  •  
    Brand 2
  •  
    Brand 3
  •  
    Brand 4

A variety of light, dark, accent and faded variations of these colors make up the several colors used throughout the site. These colors can be applied via CSS classes to affect text, links, backgrounds and more.

Text Colors
CSS ClassColor (hex code)Example
.brand-1
 
#0f5640
UW-Green Bay
.brand-1-dark
 
#0c3b33
UW-Green Bay
.brand-1-accent
 
#06d3a0
UW-Green Bay*
.brand-2
 
#1ba72e
UW-Green Bay*
.brand-2-dark
 
#1db431
UW-Green Bay*
.brand-2-accent
 
#54e03d
UW-Green Bay*
.brand-3
 
#234e52
UW-Green Bay
.brand-3-dark
 
#002e3e
UW-Green Bay
.brand-3-accent
 
#289a8f
UW-Green Bay*
.brand-4
 
#E37100
UW-Green Bay*
.brand-4-light
 
#ffad5c
UW-Green Bay*
.white
 
#fff
UW-Green Bay

*Color and text sized doesn't meet contrast requirements for accessibility.
**Color was originally lighter (#61a509) but has been darkened to improve contrast for accessibility.

Link Colors
CSS ClassColor (hex code)Example
.brand-1
 
#0f5640
UW-Green Bay
.brand-1-dark
 
#0c3b33
UW-Green Bay
.brand-1-accent
 
#06d3a0
UW-Green Bay*
.brand-2
 
#1ba72e **
UW-Green Bay*
.brand-2-dark
 
#1db431
UW-Green Bay*
.brand-2-accent
 
#54e03d
UW-Green Bay*
.brand-3
 
#234e52
UW-Green Bay
.brand-3-dark
 
#002e3e
UW-Green Bay
.brand-3-accent
 
#289a8f
UW-Green Bay*
.brand-4
 
#E37100
UW-Green Bay*
.brand-4-light
 
#ffad5c
UW-Green Bay*
.white
 
#fff
UW-Green Bay

*Color and text sized doesn't meet contrast requirements for accessibility.
**Color was originally lighter (#61a509) but has been darkened to improve contrast for accessibility.

Background Colors
CSS ClassColor (hex code)Example
.bg-brand-1
 
#0f5640
UW-Green Bay
.bg-brand-1-dark
 
#0c3b33
UW-Green Bay
.bg-brand-1-accent
 
#06d3a0
UW-Green Bay
.bg-brand-2
 
#1db431 **
UW-Green Bay*
.bg-brand-2-dark
 
#1db431
UW-Green Bay*
.bg-brand-2-accent
 
#54e03d
UW-Green Bay
.bg-brand-3
 
#234e52
UW-Green Bay
.bg-brand-3-dark
 
#002e3e
UW-Green Bay
.bg-brand-3-accent
 
#289A8F
UW-Green Bay*
.bg-brand-4
 
#E37100
UW-Green Bay*
.bg-brand-4-light
 
#ffad5c
UW-Green Bay
.bg-white
 
#fff
UW-Green Bay
.bg-off-white
 
#f8faf5
UW-Green Bay
.bg-light
 
#f4f5f6
UW-Green Bay
.bg-dark
 
#1a202c
UW-Green Bay

*Color and text sized doesn't meet contrast requirements for accessibility.
**Color was originally lighter (#61a509) but has been darkened to improve contrast for accessibility.

Background Waves
CSS ClassColor (hex code)Example
.bg-waves
 
#e5eaef
UW-Green Bay
.bg-waves--neutral-dark-faded
 
#cbd5e0
UW-Green Bay
.bg-waves--brand-1-faded
 
#d2ddd9
UW-Green Bay
.bg-waves--brand-1-accent-faded
 
#06d3a033
UW-Green Bay
.bg-waves--brand-2-faded
 
#c6f6d5
UW-Green Bay
.bg-waves--brand-2-accent-faded
 
#e1fae9
UW-Green Bay
.bg-waves--brand-3-faded
 
#c0cecc
UW-Green Bay
.bg-waves--brand-3-accent-dark
 
#1fd1ac
UW-Green Bay
.bg-waves--brand-3-accent-faded
 
#1fd1ac85
UW-Green Bay

Buttons

All buttons use the .btn class to apply the default styles. This can be done on the following HTML elements:

  • Anchor links
  • Buttons
  • Inputs with "submit" or "reset" types
<a class="btn" href="#">
Button Recommendations

When possible, always try to limit the use of buttons to 1-3 times on a single page, depending on the layout and context. The button is meant to be a strong focal point of a section or page, so it is best saved for the main call to action (such as "Apply" or "Contact Us"). In simpler scenarios, such as linking to another page or a document available for download, be sure to consider if the button style is truly necessary or if the standard link style might suffice. This is especially true if there are multiple links next to each other on the page. Having several buttons in the same area can be very confusing to the user and provide a call-to-action overload. When in doubt, remember this common saying (originated for text styles but easily applicable to buttons): "If everything is bold, nothing is."

Button Colors

To add additional style to a button, combine one of the color classes with the default .btn class.

<a class="btn brand-2" href="#">Button</a>

All of the available color options are listed below.

CSS ClassExample
.btn
(brand-1)
Button
.brand-1-darkButton
.brand-1-accentButton
.brand-2Button
.brand-2-darkButton*
.brand-2-accentButton
.brand-3Button
.brand-3-darkButton
.brand-3-accentButton
.brand-4Button
.brand-4-lightButton
.whiteButton
.neutralButton
.neutral-darkButton
.neutral-lightButton
.neutral-lightestButton
.redButton

 

Arrow Button

By adding the .arrow-button class and an inline SVG arrow icon, buttons can have some additional interactivity.

<a class="btn brand-2" href="#">Button
  <svg class="arrow-button-icon" fill="currentColor" height="1em" viewbox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg">
    <path d="M3,13h14.2l-3.6,3.6L15,18l6-6l-6-6l-1.4,1.4l3.6,3.6H3V13z"></path>
  </svg>
</a>
Additional Button Styles

There are also a few classes available that affect the shape of the button, which can be used in combination with the button color classes, if desired.

<a class="btn outline" href="#">Outline Button</a>
<a class="btn squared" href="#">Square Button</a>
<a class="btn rounded" href="#">Rounded Button</a>

Call to Action Links

The Call-to-Action link style is a great in-between style for when a standard link is too plain but a button style is too much. The .cta-link class adds a colored arrow and underline to help make the link feel more prominent, while still remaining subdued enough to not hurt the flow or design of a page.

<a class="cta-link" href="#">
  <span class="cta-link-text">Call to Action</span>
  <svg class="cta-link-icon" fill="currentColor" height="1em" viewbox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg">
    <path d="M3,13h14.2l-3.6,3.6L15,18l6-6l-6-6l-1.4,1.4l3.6,3.6H3V13z"></path>
  </svg>
</a>
CSS ClassExample
.cta-linkCall to Action  
.cta-link.brand-1Call to Action  
.cta-link.brand-2Call to Action  
.cta-link.brand-2-accentCall to Action  
.cta-link.brand-3Call to Action  
.cta-link.brand-3-accentCall to Action  
.cta-link.brand-4Call to Action  
.cta-link.whiteCall to Action  

Headlines

Headline classes are available to provide emphases to text with a bold, uppercase Lemon Milk font style.

Available Classes

There are five headline classes that provide the same text style but with different font sizes (1 being the largest, 5 being the smallest).

  • .headline-1
  • .headline-2
  • .headline-3
  • .headline-4
  • .headline-5
  • .headline-6

Though the headline classes can be applied to nearly any HTML element, it is recommended to use with header elements only (e.g., h1, h2, h3, etc.). Note that the element doesn't always need to match the class, though. For example, there may be a case when the h1 element of a page may look best with smaller text, so the .headline-4 class could be applied without affecting the structure of the page's HTML.

Headline Examples

Headline One

Headline Two

Headline Three

Headline Four

Headline Five
Headline Six
<h1 class="headline-1">Headline One</h1>
<h2 class="headline-2">Headline Two</h2>
<h3 class="headline-3">Headline Three</h3>
<h4 class="headline-4">Headline Four</h4>
<h5 class="headline-5">Headline Five</h5>
<h6 class="headline-6">Headline Six</h6>
Headline Colors

By default, the headline classes do not apply any color styling to the font. This means the color will default to the current color of the HTML element. To get best results, pair a headline class with one of the text color classes. Additionally, you can apply an accent color to a portion of the headline (via an HTML span element), which will provide added emphases on important words.

Brand Color Headline

 

Brand Color with Accent Color

<h3 class="headline-5 brand-2">Brand Color Headline</h3>

<h3 class="headline-5 brand-3">Brand Color with
  <span class="brand-3-accent">Accent Color</span>
</h3>

Other Text Styles

CSS ClassDescriptonExample
.text-growfont-size:1remExample text
.text-2xsfont-size:.75emExample text
.text-xsfont-size:.8125emExample text
.text-smfont-size:.875em, good for footnotes on tablesExample text
.text-basefont-size:1emExample text
.text-lgfont-size:1.125emExample text
.text-xlfont-size:1.25emExample text
.text-2xlfont-size:1.5emExample text
.text-3xlfont-size:1.75emExample text
.text-4xlfont-size:2emExample text
.text-5xlfont-size:2.25emExample text
.text-6xlfont-size:2.5emExample text
.text-7xlfont-size:2.75emExample text
.text-8xlfont-size:3emExample text
.text-9xlfont-size:3.25emExample text
.text-10xlfont-size:3.5emExample text
.text-11xlfont-size:3.75emExample text
.text-12xlfont-size:4emExample text
.text-16xlfont-size:5emExample
.text-20xlfont-size:6emExample
.text-24xlfont-size:7emExample
.text-uppercasetext-transform:uppercaseExample text
.text-400font-weight:400Example text
.text-500font-weight:500Example text
.text-600font-weight:600Example text
.text-700font-weight:700Example text
.text-800font-weight:800Example text
.text-900font-weight:900Example text
.no-wrapwhite-space:nowrapExample text

Spacing

The website template provides CSS utility classes that help with element spacing. These classes use shorthand to determine the property, sides and size.

  • Property
    • m = margin
    • p = padding
  • Sides
    • t = top
    • r = right
    • b = bottom
    • l = left
    • x = left and right (horizontal)
    • y = top and bottom (vertical)
    • blank/none = all sides
  • Size
    • Starting with 0, each size increments by a value of 0.25rem (which is 4px on the vast majority of browsers)
    • 0 = 0rem (no margin or padding)
    • 1 = 0.25rem
    • 2 = 0.5rem
    • 3 = 0.75rem
    • 4 = 1rem
    • 5= 1.25rem
    • 6= 1.5rem
    • 7= 1.75rem
    • 8= 2rem
    • 10= 2.5rem
    • 12= 3rem
    • 14= 3.5rem
    • 16= 4rem
    • 20= 5rem
    • 24 = 6rem
    • auto = auto
    • fluid = a growing value based on screen size

When writing out the shorthand CSS class, list the property first, then the side (if applicable), followed by a hyphen (-) and the size.

Examples

There are several different combinations of CSS classes available from the shorthand options. Below is a small list of examples.

CSS ClassPropertySidesSize
.m-0marginall0rem
.p-2paddingall0.5rem
.mt-5margintop1.25rem
.pl-10paddingleft2.5rem
.mx-automarginleft and rightauto
.py-fluidpaddingtop and bottom0.75rem - 2.667rem

 

Fluid Spacing

The -fluid size prefix can be used in shorthand spacing classes to provide flexible, responsive spacing. This fluid spacing starts low on small screens, then grows with the size of the device.

Note: The website template gradually increases the size of the default font based on screen size as well. This is why the rem values listed below do not appear to increment proportionally. Pixel estimates based on the global template are provided in parentheses.

Device Screen Size (breakpoint)Spacing Amount
Default (screens ≥0px)0.75rem (12px)
nano (screens ≥250px)1rem (16px)
xs (screens ≥400px)1rem (16px)
sm (screens ≥640px)1.5rem (24px)
md (screens ≥768px)1.778rem (32px)
lg (screens ≥1024px)2.4rem (48px)
xl (screens ≥1280px)2.909rem (64px)
2x (screens ≥1536px)2.667rem (64px)
3x (screens ≥1792px)2.667rem (64px)

 

List Columns

Use the .ul-columns style when you have a list you want divided into columns. Set the class on the UL tag to ul-columns and you will get a flexible list that falls into an orderly column layout appropriate for the screen size. This works best if the list is inside a wide column, taking up the full width of the content area and/or with very short list items. This is not a good solution for list items with long text.

  • List Item
  • List Item
  • List Item
  • List Item
  • List Item
  • List Item

<ul class="ul-columns">
    <li>List Item</li>
    <li>List Item</li>
    <li>List Item</li>
    <li>List Item</li>
    <li>List Item</li>
    <li>List Item</li>
</ul>

Display & Visibility

There are several CSS classes that can help with the style of how elements are displayed and whether or not they are visible.

CSS ClassResult
.blockSets element to display block
.flexSets element to display flex
.inline-flexSets element to display inline-flex
.invisibleSets element visibility to hidden
.hiddenSets element to display none
.hidden-xsSets element to display none from xs breakpoint and up (screens ≥400px)
.hidden-smSets element to display none from sm breakpoint and up (screens ≥640px)
.hidden-mdSets element to display none from md breakpoint and up (screens ≥768px)
.hidden-lgSets element to display none from lg breakpoint and up (screens ≥1024px)
.hidden-xlSets element to display none from xl breakpoint and up (screens ≥1280px)
.hidden-2xSets element to display none from 2x breakpoint and up (screens ≥1536px)
.hidden-3xSets element to display none from 3x breakpoint and up (screens ≥1792px)
.hidden-xs-downSets element to display none when below xs breakpoint (screens <400px)
.hidden-sm-downSets element to display none when below sm breakpoint (screens <640px)
.hidden-md-downSets element to display none when below md breakpoint (screens <768px)
.hidden-lg-downSets element to display none when below lg breakpoint (screens <1024px)
.hidden-xl-downSets element to display none when below xl breakpoint (screens <1280px)
.hidden-2x-downSets element to display none when below 2x breakpoint (screens <1536px)
.hidden-3x-downSets element to display none when below 3x breakpoint (screens <1792px)

Flexible iFrames

We most commonly use iframes for embedding YouTube videos, but there are many other applications, like embedding forms, some dynamic social media embeds, etc. Without special styling, iframe embeds must have fixed pixel height and width dimensions, which is problematic in our template that is designed to be flexible to the user's screen size. Use the styles below to make your iframes flexible.

Video iFrames

Wrap the video embed iframe in a <div> element with one of these classes that matches the height-to-width aspect ratio of the video. This will allow the video to scale while preserving the height-to-width ratio.

CSS ClassVideo Aspect Ratio
.embed-16x916:9 Widescreen
.embed-21x921:9 Ultra-Widescreen
.embed-4x34:3 Fullscreen

100% Width iFrames

If you just want the iframe to flex to the width of the container, just add the w-full CSS class.