1.0.0 • Published 5 years ago

@moki.codes/mokui-text v1.0.0

Weekly downloads
10
License
BSD-3-Clause
Repository
github
Last release
5 years ago

text

Description

text block provides typography subsystem, includes: line length, alignment, sizing, weight and style. indents consecutive paragraphs with complimentary modular scale base. default .text line-height set to --msp-1 to establish vertical rythm.

Installation

yarn add @moki.codes/mokui-text

Styles

@import "@moki.codes/mokui-text/dist/mokui-text.css"

Basic Usage

...
<p class="text text_length_m text_size_m text_weight_regular">
        paragraph text goes here.
</p>
...

Modificators

namevaluedescription
lengthmakes line take
s30 characters
m60 characters
alignleft, center,horizontal text alignment
right
size2xs, xs, s, msets font-size from complimentary modular
l, xl, 2xl,scale with appropriate line-height from
3xl, 4xlprimary modular scale and adjustred letter
spacing for large text
weightlight,sets text weight to 300
regular,400
medium500
stylesmall-capssets text to small-caps style if font is
open type.