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.

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 Class | Color (hex code) | Example |
|---|---|---|
| .brand-1 | UW-Green Bay | |
| .brand-1-dark | UW-Green Bay | |
| .brand-1-accent | UW-Green Bay* | |
| .brand-2 | UW-Green Bay* | |
| .brand-2-dark | UW-Green Bay* | |
| .brand-2-accent | UW-Green Bay* | |
| .brand-3 | UW-Green Bay | |
| .brand-3-dark | UW-Green Bay | |
| .brand-3-accent | UW-Green Bay* | |
| .brand-4 | UW-Green Bay* | |
| .brand-4-light | UW-Green Bay* | |
| .white | 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 Class | Color (hex code) | Example |
|---|---|---|
| .brand-1 | UW-Green Bay | |
| .brand-1-dark | UW-Green Bay | |
| .brand-1-accent | UW-Green Bay* | |
| .brand-2 | UW-Green Bay* | |
| .brand-2-dark | UW-Green Bay* | |
| .brand-2-accent | UW-Green Bay* | |
| .brand-3 | UW-Green Bay | |
| .brand-3-dark | UW-Green Bay | |
| .brand-3-accent | UW-Green Bay* | |
| .brand-4 | UW-Green Bay* | |
| .brand-4-light | UW-Green Bay* | |
| .white | 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 Class | Color (hex code) | Example |
|---|---|---|
| .bg-brand-1 | UW-Green Bay | |
| .bg-brand-1-dark | UW-Green Bay | |
| .bg-brand-1-accent | UW-Green Bay | |
| .bg-brand-2 | UW-Green Bay* | |
| .bg-brand-2-dark | UW-Green Bay* | |
| .bg-brand-2-accent | UW-Green Bay | |
| .bg-brand-3 | UW-Green Bay | |
| .bg-brand-3-dark | UW-Green Bay | |
| .bg-brand-3-accent | UW-Green Bay* | |
| .bg-brand-4 | UW-Green Bay* | |
| .bg-brand-4-light | UW-Green Bay | |
| .bg-white | UW-Green Bay | |
| .bg-off-white | UW-Green Bay | |
| .bg-light | UW-Green Bay | |
| .bg-dark | 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 Class | Color (hex code) | Example |
|---|---|---|
| .bg-waves | UW-Green Bay | |
| .bg-waves--neutral-dark-faded | UW-Green Bay | |
| .bg-waves--brand-1-faded | UW-Green Bay | |
| .bg-waves--brand-1-accent-faded | UW-Green Bay | |
| .bg-waves--brand-2-faded | UW-Green Bay | |
| .bg-waves--brand-2-accent-faded | UW-Green Bay | |
| .bg-waves--brand-3-faded | UW-Green Bay | |
| .bg-waves--brand-3-accent-dark | UW-Green Bay | |
| .bg-waves--brand-3-accent-faded | 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 Class | Example |
|---|---|
| .btn (brand-1) | Button |
| .brand-1-dark | Button |
| .brand-1-accent | Button |
| .brand-2 | Button |
| .brand-2-dark | Button* |
| .brand-2-accent | Button |
| .brand-3 | Button |
| .brand-3-dark | Button |
| .brand-3-accent | Button |
| .brand-4 | Button |
| .brand-4-light | Button |
| .white | Button |
| .neutral | Button |
| .neutral-dark | Button |
| .neutral-light | Button |
| .neutral-lightest | Button |
| .red | Button |
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 Class | Example |
|---|---|
| .cta-link | Call to Action |
| .cta-link.brand-1 | Call to Action |
| .cta-link.brand-2 | Call to Action |
| .cta-link.brand-2-accent | Call to Action |
| .cta-link.brand-3 | Call to Action |
| .cta-link.brand-3-accent | Call to Action |
| .cta-link.brand-4 | Call to Action |
| .cta-link.white | Call 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 Class | Descripton | Example |
|---|---|---|
| .text-grow | font-size:1rem | Example text |
| .text-2xs | font-size:.75em | Example text |
| .text-xs | font-size:.8125em | Example text |
| .text-sm | font-size:.875em, good for footnotes on tables | Example text |
| .text-base | font-size:1em | Example text |
| .text-lg | font-size:1.125em | Example text |
| .text-xl | font-size:1.25em | Example text |
| .text-2xl | font-size:1.5em | Example text |
| .text-3xl | font-size:1.75em | Example text |
| .text-4xl | font-size:2em | Example text |
| .text-5xl | font-size:2.25em | Example text |
| .text-6xl | font-size:2.5em | Example text |
| .text-7xl | font-size:2.75em | Example text |
| .text-8xl | font-size:3em | Example text |
| .text-9xl | font-size:3.25em | Example text |
| .text-10xl | font-size:3.5em | Example text |
| .text-11xl | font-size:3.75em | Example text |
| .text-12xl | font-size:4em | Example text |
| .text-16xl | font-size:5em | Example |
| .text-20xl | font-size:6em | Example |
| .text-24xl | font-size:7em | Example |
| .text-uppercase | text-transform:uppercase | Example text |
| .text-400 | font-weight:400 | Example text |
| .text-500 | font-weight:500 | Example text |
| .text-600 | font-weight:600 | Example text |
| .text-700 | font-weight:700 | Example text |
| .text-800 | font-weight:800 | Example text |
| .text-900 | font-weight:900 | Example text |
| .no-wrap | white-space:nowrap | Example 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 Class | Property | Sides | Size |
|---|---|---|---|
| .m-0 | margin | all | 0rem |
| .p-2 | padding | all | 0.5rem |
| .mt-5 | margin | top | 1.25rem |
| .pl-10 | padding | left | 2.5rem |
| .mx-auto | margin | left and right | auto |
| .py-fluid | padding | top and bottom | 0.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 Class | Result |
|---|---|
| .block | Sets element to display block |
| .flex | Sets element to display flex |
| .inline-flex | Sets element to display inline-flex |
| .invisible | Sets element visibility to hidden |
| .hidden | Sets element to display none |
| .hidden-xs | Sets element to display none from xs breakpoint and up (screens ≥400px) |
| .hidden-sm | Sets element to display none from sm breakpoint and up (screens ≥640px) |
| .hidden-md | Sets element to display none from md breakpoint and up (screens ≥768px) |
| .hidden-lg | Sets element to display none from lg breakpoint and up (screens ≥1024px) |
| .hidden-xl | Sets element to display none from xl breakpoint and up (screens ≥1280px) |
| .hidden-2x | Sets element to display none from 2x breakpoint and up (screens ≥1536px) |
| .hidden-3x | Sets element to display none from 3x breakpoint and up (screens ≥1792px) |
| .hidden-xs-down | Sets element to display none when below xs breakpoint (screens <400px) |
| .hidden-sm-down | Sets element to display none when below sm breakpoint (screens <640px) |
| .hidden-md-down | Sets element to display none when below md breakpoint (screens <768px) |
| .hidden-lg-down | Sets element to display none when below lg breakpoint (screens <1024px) |
| .hidden-xl-down | Sets element to display none when below xl breakpoint (screens <1280px) |
| .hidden-2x-down | Sets element to display none when below 2x breakpoint (screens <1536px) |
| .hidden-3x-down | Sets 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 Class | Video Aspect Ratio |
|---|---|
| .embed-16x9 | 16:9 Widescreen |
| .embed-21x9 | 21:9 Ultra-Widescreen |
| .embed-4x3 | 4: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.