Typography
v2.0.0+
HelixUI v2.0.0 or later required
This page is updated to the HelixUI-v2.0.0-rc.0 specs
for Typography.
Typefaces
100: Open Sans Thin
300: Open Sans Light
400: Open Sans Regular
500: Open Sans Medium
700: Open Sans Bold
100: Open Sans Condensed Thin
300: Open Sans Condensed Light
400: Open Sans Condensed Regular
500: Open Sans Condensed Medium
700: Open Sans Condensed Bold
Headings
Heading One
Heading Two
Heading Three
Heading Four
Heading Five
CSS class overrides are available if semantic elements don't match up with expected visual style.
Style | Element | Class |
---|---|---|
Heading One | <h1> |
.hxHeading-1 |
Heading Two | <h2> |
.hxHeading-2 |
Heading Three | <h3> |
.hxHeading-3 |
Heading Four | <h4> |
.hxHeading-4 |
Heading Five | <h5> |
.hxHeading-5 |
Subdued
Add the .hxSubdued
CSS class to any element to apply a
muted appearance.
p.hxSubdued
span.hxSubduedCaption
Apply the Helix "caption" style with any of the following configurations:
-
A
<caption>
element within a Table -
A
<figcaption>
element within a<figure class="hxFigure">
-
Add the
.hxCaption
CSS class to any element
p.hxCaption
Sub-Body
Apply the "sub-body" style with any of the following:
- A
<small>
element - Add the
.hxSubBody
CSS class to any element
p.hxSubBody
Links
Hyperlinks (a.k.a., links) should be used to navigate a user to a resource or location.
- Buttons are better suited to initiate in-page actions.
-
Adding the
disabled
attribute to a link does not prevent user interaction.
Inline Code
Use the <code>
element to differentiate descriptive
text from code snippets.
Add an event listener with the EventTarget.addEventListener()
function.
Keyboard
Use the <kbd>
element to differentiate descriptive text
from instructional key presses.
Press Ctrl+Z (Command+Z on Mac) to undo the most recent action.
Code Block
[Insert Code Here]
Error Text
Added: v0.4.0
Syntax Highlighting
HelixUI provides a built-in theme for use with the highlight.js library.
Below are some examples of the syntax highlighting in action.