// stylelint-disable block-closing-brace-space-before, primer/selector-no-utility, selector-list-comma-newline-after, declaration-block-semicolon-newline-after, declaration-block-single-line-max-declarations // Type scale variables found in primer-support/lib/variables.scss // $h00-size: 48px; // $h0-size: 40px; // $h1-size: 32px; // $h2-size: 24px; // $h3-size: 20px; // $h4-size: 16px; // $h5-size: 14px; // $h6-size: 12px; // Heading utilities .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: $font-weight-bold !important; } .h1 { font-size: 26px !important; @include breakpoint(md) { font-size: $h1-size !important; } } .h2 { font-size: 22px !important; @include breakpoint(md) { font-size: $h2-size !important; } } .h3 { font-size: 18px !important; @include breakpoint(md) { font-size: $h3-size !important; } } .h4 { font-size: 16px !important; @include breakpoint(md) { font-size: $h4-size !important; } } .h5 { font-size: $h5-size !important; } // Does not include color property like typography base // styles, color should be applied with color utilities. .h6 { font-size: $h6-size !important; } // Type utilities that match type sale .f1 { font-size: 26px !important; @include breakpoint(md) { font-size: $h1-size !important; } } .f2 { font-size: 22px !important; @include breakpoint(md) { font-size: $h2-size !important; } } .f3 { font-size: 18px !important; @include breakpoint(md) { font-size: $h3-size !important; } } .f4 { font-size: 16px !important; @include breakpoint(md) { font-size: $h4-size !important; } } .f5 { font-size: $h5-size !important; } .f6 { font-size: $h6-size !important; } // Type utils with light weight that match type scale .f00-light { font-size: 40px !important; font-weight: $font-weight-light !important; @include breakpoint(md) { font-size: $h00-size !important; } } .f0-light { font-size: 32px !important; font-weight: $font-weight-light !important; @include breakpoint(md) { font-size: $h0-size !important; } } .f1-light { font-size: 26px !important; font-weight: $font-weight-light !important; @include breakpoint(md) { font-size: $h1-size !important; } } .f2-light { font-size: 22px !important; font-weight: $font-weight-light !important; @include breakpoint(md) { font-size: $h2-size !important; } } // Same size and weight as .lead but without color property .f3-light { font-size: 18px !important; font-weight: $font-weight-light !important; @include breakpoint(md) { font-size: $h3-size !important; } } // Smallest text size .text-small { font-size: $h6-size !important; } // 12px // Large leading paragraphs .lead { margin-bottom: 30px; font-size: $h3-size; font-weight: $font-weight-light; color: #555; } // Line-height variations // Close to commonly used line-heights. Most line-heights // combined with type size equate to whole pixels. // Will be improved with future typography scale updates. .lh-condensed-ultra { line-height: $lh-condensed-ultra !important; } .lh-condensed { line-height: $lh-condensed !important; } .lh-default { line-height: $lh-default !important; } // Text alignments .text-right { text-align: right !important; } .text-left { text-align: left !important; } .text-center { text-align: center !important; } // Text styles .text-normal { font-weight: normal !important; } .text-bold { font-weight: $font-weight-bold !important;} .text-italic { font-style: italic !important;} .text-uppercase { text-transform: uppercase !important; } .no-underline { text-decoration: none !important; } .no-wrap { white-space: nowrap !important;} .text-emphasized { font-weight: $font-weight-bold; color: $text-gray-dark; }