Typography
Our primary typeface is Story Sans, a screen-first typeface made for Trade Me. We also use Barlow Condensed for some of the headers as part of the Trade Me Rebrand.
Font stack
$tg-story-sans: 'Story Sans', 'Helvetica Neue', Helvetica, Arial, Sans-serif;
$tg-barlow-condensed: 'Barlow Condensed', 'Helvetica Neue', Helvetica, Arial, Sans-serif;
Typography structure
Correct heading structure is important for a well structured page, and significantly aids accessibility. Each page should have only one <h1>
Example
Example
<h1>Example
<h2>Example
<h3>Example
.p-lead-copy Used to introduce content following a heading, or as an alternate styling of <h3>
Example
<label>Example
<p>Straight up & inclusive
Example
.p-secondary-copySecondary text is used for small amounts of additional information.
Example
<small>Should be used for legal notes or fine print.
Typography helper classes
Tangram provides classes for styling text independent of its HTML element. This allows flexibility for visual presentation without modifying the semantic structure and page hierarchy.
Example
Paragraph styles
Example
.p-h1-barlowThis is the new h1 used as part of the Brand Aroha uplift for certain headers
Example
.p-h2-barlowThis is the new h2 used as part of the Brand Aroha uplift for certain headers
Example
.p-h1Example
.p-h2Example
.p-h3Example
.p-labelExample
.p-smallThis is our smallest font size, suitable for subtext, disclaimers or caveats. It does not meet AA accessibility standards and therefore should not be applied to critical content.
Brand titles
Example
.p-brand-title-1Example
.p-brand-title-2Example
.p-brand-title-3Example
.p-brand-title-barlow-3This is the new brand-title-3 used as part of the Brand Aroha uplift for certain headers
Typography helper mixins
Tangram provides scss mixins for styling text independent of its HTML element. This allows flexibility for visual presentation without modifying the semantic structure and page hierarchy.
Example
Mixins
Example
p-h1()Example
p-h2()Example
p-h3()Example
caption()Example
p-h1-barlow()Example
p-h2-barlow()Typography variables
Tangram provides classes for styling text independent of its HTML element. This allows flexibility for visual presentation without modifying the semantic structure and page hierarchy.
Example
Font sizes
Example
$tg-font-size-basePassionate advocates
A font size equivalent to 16px<p>
Example
$tg-font-size-input-minPassionate advocates
Inputs must use a minimum font-size of 16px
Example
$tg-font-size-secondaryPassionate advocates
A font size equivalent to 14px.p-secondary
Example
$tg-font-size-smallPassionate advocates
A font size equivalent to 12px.p-small
Font weights
Example
$tg-font-weight-boldUnexpected & driven
Example
$tg-font-weight-mediumUnexpected & driven
Example
$tg-font-weight-table-headingUnexpected & driven
Example
$tg-font-weight-labelUnexpected & driven
Example
$tg-font-weight-regularUnexpected & driven
Example
$tg-font-weight-lightUnexpected & driven
Typography colors
Example
$tg-font-color-extra-darkHumble & human
Example
$tg-font-color-darkHumble & human
Example
$tg-font-color-mediumHumble & human
Example
$tg-font-color-bodyHumble & human
Example
$tg-font-color-lightHumble & human
Example
$tg-font-color-extra-lightHumble & human
Line-heights
Example
$tg-line-height-baseAs passionate advocates of our users, we strive to be straight up & inclusive.
Example
$tg-line-height-secondaryAs passionate advocates of our users, we strive to be straight up & inclusive.
Example
$tg-line-height-smallAs passionate advocates of our users, we strive to be straight up & inclusive.
Address block
Example
Blockquote
Blockquote can be used to distinguish quoted text.
Example
This is a blockquote