# @themeables/text

> > What is a _themeable_? You can find more in the [`@themeables` readme](..)

Latest version **4.1.0** (published 2021-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @themeables/text
pnpm add @themeables/text
yarn add @themeables/text
bun add @themeables/text
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.1.0 |
| Published | 2021-05-06 |
| First published | 2019-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=12.13.0 |
| Dependencies | 5 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51 |
| Maintainers | julia.spehrer, ijigg, gideon.gur, irminakacz, atilaz, case.taintor, moria.am |

## Links

- npm: https://www.npmjs.com/package/@themeables/text
- Repository: https://github.com/bubble-dev/_
- Homepage: https://github.com/bubble-dev/_#readme
- Issues: https://github.com/bubble-dev/_/issues
- npm.io page: https://npm.io/package/@themeables/text

## Dependencies (5)

- [stili](https://npm.io/package/stili.md) ^3.1.0
- [colorido](https://npm.io/package/colorido.md) ^2.1.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.13.17
- [@primitives/text](https://npm.io/package/@primitives/text.md) ^3.1.0
- [@themeables/core](https://npm.io/package/@themeables/core.md) ^4.1.0

## Recent versions

- 4.1.0 (latest) — 2021-05-06
- 4.0.1 — 2021-02-01
- 4.0.0 — 2020-11-04
- 3.0.0 — 2020-10-15
- 2.1.0 — 2020-10-05
- 2.0.1 — 2020-08-31
- 2.0.0 — 2020-04-27
- 1.0.1 — 2020-01-27
- 1.0.0 — 2020-01-23
- 0.1.0 — 2019-12-12

## README

# @themeables/text

> What is a _themeable_? You can find more in the [`@themeables` readme](..)

Properties that the theme function for the `@themeables/text` should return:

```ts
type TThemeableText = {
  color?: TColor,
  fontFamily?: string,
  fontWeight?: TStyle['fontWeight'],
  fontSize?: number,
  lineHeight?: number,
  letterSpacing?: number,
  isUnderlined?: boolean,
}
```

On top of that, the themeable text component receives these props:

```ts
import { TStyle } from 'stili'

type TText = {
  id?: string,
  color?: TColor,
  fontFamily?: string,
  fontWeight?: TStyle['fontWeight'],
  fontSize?: number,
  lineHeight?: number,
  letterSpacing?: number,
  isUnderlined?: boolean,
  shouldPreserveWhitespace?: boolean,
  shouldPreventWrap?: boolean,
  shouldPreventSelection?: boolean,
  shouldHideOverflow?: boolean,
  children: ReactNode,
}
```

You can see a full example usage in [the meta file](meta.tsx)

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