1.1.0 • Published 2 years ago

@visual-framework/vf-text v1.1.0

Weekly downloads
272
License
Apache 2.0
Repository
-
Last release
2 years ago

Text component

npm version

About

For basic text formatting and sizes.

Usage

The vf-text component leverages the design token typography sizes.

This component provides a utility-like functionality and you'll rarely need to directly use this component. When coding a component's Sass, it will typically be better to use the mixins (@include set-type(text-body--6);) than these vf-text classes.

Install

This component is distributed with npm. After installing npm, you can install the vf-text with this command.

$ yarn add --dev @visual-framework/vf-text

Sass/CSS

The source files included are written in Sass(scss). You can point your Sass include-path at your node_modules directory and import it like this.

@import "@visual-framework/vf-text/index.scss";

Make sure you import Sass requirements along with the modules. You can use a project boilerplate or the vf-sass-starter

Help