# @hig/typography

> HIG Typography components

Latest version **2.2.0** (published 2022-08-26) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @hig/typography
pnpm add @hig/typography
yarn add @hig/typography
bun add @hig/typography
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2022-08-26 |
| First published | 2018-04-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 24.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 193 |
| Author | Autodesk Inc. |
| Maintainers | hig-bot, devfoncy, nfiniteset, wmui51, staceyshk, grantkellyadsk |

## Links

- npm: https://www.npmjs.com/package/@hig/typography
- Repository: https://github.com/Autodesk/hig
- Homepage: https://hig.autodesk.com
- Issues: https://github.com/Autodesk/hig/issues
- npm.io page: https://npm.io/package/@hig/typography

## Dependencies (2)

- [emotion](https://npm.io/package/emotion.md) ^10.0.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.1

## Recent versions

- 2.2.0 (latest) — 2022-08-26
- 0.2.0-alpha.18da9628 (canary) — 2018-06-13
- 2.1.0 — 2022-01-24
- 2.0.0 — 2022-01-13
- 1.2.2 — 2022-01-12
- 1.2.1 — 2022-01-12
- 1.2.0 — 2021-01-15
- 1.1.0 — 2020-10-13
- 1.0.4 — 2019-06-06
- 1.0.3 — 2019-03-13
- 1.0.2 — 2019-02-08
- 1.0.1 — 2019-01-23
- 1.0.0 — 2019-01-09
- 0.1.4 — 2018-08-23
- 0.1.3 — 2018-07-06
- … 240 more at https://npm.io/package/@hig/typography/versions

## README

# Typography

The Typography components apply the Artifakt typeface to text.

Read more about when and how to use the Typography components [on the HIG website](https://hig.autodesk.com/web/basics/typography).

## Getting started

```
yarn add @hig/typography @hig/theme-context @hig/theme-data
yarn add @hig/fonts
```

## Import the component and CSS

```
import Typography from '@hig/typography';
import "@hig/fonts/build/ArtifaktElement.css";
```

## Basic usage

```jsx
<Typography>Artifakt Element is the preferred font.</Typography>
```
## Styling

Use the `className` prop to pass in a css class name to the outermost container of the component. The class name will also pass down to most of the other styled elements within the component. 

Typography also has a `stylesheet` prop that accepts a function wherein you can modify its styles. For instance

```jsx
import Typography from '@hig/typography';

function YourComponent() {
  // ...
  const customStylesheet = (styles, props, themeData) => ({
    ...styles,
    typography: {
      ...styles.typography,
      color: themeData["colorScheme.errorColor"]
    }
  });

  return (
    <Typography stylesheet={customStylesheet} />
  );
}
```

---
_Source: https://npm.io/package/@hig/typography · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
