Typography
Styling and presentation of text content on webpages.
Font Face
The global font face for HPU website is Inter.
Inter font face is under SIL Open Font License v1.1 - 26 February 2007.
Headings
The HTML heading levels from h1 through h6.
NOTE: Avoid skipping a heading level. Maintaining a sequential heading structure is vital for ensuring accessibility, improving usability, enhancing SEO, and adhering to web standards. It ensures that all users, regardless of their abilities or the tools they use, can navigate and understand the content effectively.
Heading 1 h1 small
Heading 2 h2 small
Heading 3 h3 small
Heading 4 h4 small
Heading 5 h5 small
Heading 6 h6 small
Heading as classes are also available to use in case the same size text as a heading is desired, or the heading tags are not available to use for certain reasons.
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Display Headings
Sometimes, the default sizes of heading elements are so similar that users might be tempted to skip a heading level to create visual distinction. For instance, if h1 is used for the page title, and h2 for section titles, the size difference might be minimal, making these headings appear almost identical. This visual similarity can lead users to bypass intermediate heading levels, such as jumping from h1 to h3, which compromises both accessibility and the semantic structure of the content. To avoid this issue, the Display Headings classes must be used to adjust the size of the headings and to create a clear distinction between the heading levels, while maintaining the correct semantic order and being accessible.
Display 1
Display 2
Display 3
Display 4
Display 5
Display 6
The Hawaiian Okina (Inverted Apostrophe)
There are 2 ways to add the Hawaiian ʻOkina:
- Use an HTML Entity: Use ʻ HTML entity.
- Call the ʻOkina Class: Use the .hpu-okina class to produce the ʻokina.
When to use HTML Entity Over the CSS Class to Produce ʻOkina?
-
Use the ʻ HTML entity if the ʻokina should appear as an actual content on the page.
- This approach is more recommended because the ʻokina is included directly in the webpage content. This ensures that assistive devices won't skip reading it, ensuring accessibility compliance.
- Also, doing it this way ensures the copy-paste friendliness, since it's an actual content in a webpage.
-
Use the .hpu-okina class if the purpose of the web content is decorative only, such as symbols or stylistic embellishment, which is not a core document content.
- Use only if the ʻokina symbol is used visually but not semantically.
- This is great for icons, bullets lists, quote marks, etc.
- This class uses a CSS property ::before, which is only for visuals. Assistive devices will skip reading this.
In the examples for each of the ʻokina type below, try selecting each text to see the difference between them.
Using the ʻokina HTML Entity:
Hawaiʻi Pacific University
Kalanianaʻole Highway
ʻŌlelo Hawaiʻi
Oʻahu Island
HTML
pHawaii Pacific University/p
pKalanianaole Highway/p
pŌlelo Hawaii/p
pOahu Island/p
Using the .hpu-okina class:
Hawaii Pacific University
Kalanianaole Highway
Ōlelo Hawaii
Oahu Island
HTML
pHawaispan class="hpu-okina"/spani Pacific University/p
pKalanianaspan class="hpu-okina"/spanole Highway/p
pspan class="hpu-okina"/spanŌlelo Hawaispan class="hpu-okina"/spani/p
pOspan class="hpu-okina"/spanahu Island/p
Font Weight
Quickly change font weight with font weight utility classes: .hpu-font-{light | medium | bold | black}.
Light
Normal (Default)
Medium
Bold
Black
Use strong to define text with strong importance:
This text is super strong!
Text Alignment
Positioning of text within a block or a line in a webpage: .hpu-text-{left | center | right}.
Left aligned text on all devices (Default)
Center aligned text on all devices
Right aligned text on all devices
Word Break
Handle long words by breaking them at arbitrary points if necessary to prevent overflow: .hpu-text-break.
mmmmmmmmmmmmmnmnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbmbmbnmbbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnmbnm
Text Transform
Used to control the capitalization of text within an element.
LOWERCASED TEXT!
uppercased text
capitalize each word here.
Text Indent
Adds indentation to a paragraph: .hpu-text-indent. This class provides 3rem of text-indent value.
This is a whole paragraph. The first line of this paragraph will be indented to the right. Lorem ipsum dolor sit amet consectetur adipisicing elit. At illum eos voluptatum inventore modi et tempore dignissimos enim adipisci incidunt, sapiente corporis vel in impedit, dicta esse ipsa consequuntur recusandae distinctio. Necessitatibus, quisquam? Earum a laborum dolores magni ratione saepe? Aliquam officiis facere commodi placeat est voluptatem, earum ea tenetur!
Text Emphasis
Use the HTML em tag to italicize or provide emphasis to any text.
You have to hurry up!
We cannot live like this!
Lists
By default, ol and ul only provides either bullets or numbers on a list without indentation due to CSS reset. Use .hpu-list class to add 40px of indentation to either ul or ol.
Major Islands of Hawaiʻi:
- Oʻahu
- Niʻihau
- Molokaʻi
- Maui
- Kauaʻi
- Big Island
- Lanaʻi
- Kahoʻolawe
HTML
ul class="hpu-list".../ul
Ring Stages of Marriage:
- Engagement Ring
- Wedding Ring
- Discovering
- Suffering
- Enduring
HTML
ol class="hpu-list".../ol
To remove the bullets for ul, simply add the unbulleted class.
The Kokomo Island
- Off of Florida Keys
- There's a place called Kokomo
- That's where you wanna go
- To get away from it all
Links
Add behavior to your links rather than using the default.
Default Link: No hover or active effects
Links with Underline
Links with Underline On Hover Only
Links with Active State
Links with Active State and Colors. Please refer to HPUCSS Colors for usage details.