ro:Kit Typography

Robot typefaces are used as the main body font-family. Noto Sans font-family is used for headings and Courier font is used for code blocks.

Both, Roboto and Noto Sans are provided by Google Fonts and are imported in the _variables.scss file. Courier font is included natively on most systems.

ro:Kit headings have left oriented shadow applied to them by default. You can modify the shadow by changing $heading-shadow-class-name in _typography.scss or remove it by setting the variable to null.

Typography Classes

  • .bold - bolded text.
  • code, .code, .code-inline - code font-styling.
  • .weight-[weight:number] - set font weight to 100, 300, 400, 500 or 700.
  • .letter-spacing-[spacing:number] - set letter spacing from 1px through 10px
  • .text-[alignment:text] - set text-alignment to left, right or center.
  • .capitalize - capitalize letters.
  • .lowercase - turn text to lower case.
  • .uppercase - turn text to upper case.
  • See text-colors for available font-color classes

SASS Variables

Variable Description Default Value Location
$font-stack Sets body font-family Roboto, sans-serif _variables.scss
$heading-font-stack Sets heading font-family "Noto Sans", sans-serif _variables.scss
$code-font-stack Sets code font-family "courier", monospace _variables.scss
$base-font-size Sets base font-size 14px _variables.scss
$heading-shadow-class-name Applies shadow class to headings text-shadow-left _typography.scss

ro:Kit Type Scales

Following type scales are generated out-of-the-box: minor-second, major-second, minor-third, major-third, perfect-fourth, augmented-fourth, perfect-fifth, golden-ratio.

Type scales applied on a block element will scale fonts in its children elements of type p, div, section, header, footer, nav, h1, h2, h3, h4, h5, h6, small and .small.

Type scales are defined in a map components/_scales.scss. You can add or remove scales. All scale classes are generated from this map.

Hint: Type scales can also be applied on breakpoints.

Type Scales Classes

  • .typescale-minor-second - 1.067 scale
  • .typescale-major-second - 1.125 scale
  • .typescale-minor-third - 1.200 scale
  • .typescale-major-third - 1.250 scale
  • .typescale-percect-fourth - 1.333 scale
  • .typescale-augmented-fourth - 1.414 scale
  • .typescale-perfect-fifth - 1.414 scale
  • .typescale-golden-ratio - 1.618 scale
  • .typescale-[breakpoint]-[scalename] - See list of breakpoints
    Example: .typescale-md-major-third
.typescale-minor-second

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
Small
.typescale-major-second

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
Small
.typescale-minor-third

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
Small
.typescale-major-third

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
Small
.typescale-perfect-fourth

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
Small
.typescale-augmented-fourth

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
Small
.typescale-perfect-fifth

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
Small
.typescale-golden-ratio

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
Small