@ausbom/typography
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

@ausbom/typography

Typography is an important part of creating visual hierarchy. The way information is presented to users is as important as the information itself.

Installation

npm install @ausbom/typography

Usage

Typography can be used via the bom-typography Sass mixin or the Typography React component. A combination of the two might also suit your project.

Sass mixin

.my-heading {
  @include bom-typography(
    $style-name: 'heading-l',
    $dark: true,
    $large: false
  )
}
Properties

<Property name="$style-name" type="string" required description="The name of the style to be applied" list={styles.join(',')} />

React component

import Typography from '@ausbom/typography'
import React from 'react'

<Typography
  as="h3"
  styleName="heading-l"
  dark
  isLarge
>
  My heading text
</Typography>

Readme

Keywords

none

Package Sidebar

Install

npm i @ausbom/typography

Weekly Downloads

113

Version

0.5.0

License

MIT

Unpacked Size

16.5 kB

Total Files

11

Last publish

Collaborators

  • shaid
  • bom-hawyangpeng
  • digitaldeveloper-bom
  • george-cheng-bom
  • pmurator-bom