# stili

> Style normalizer for creating universal React/React Native components.

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

## Install

```sh
npm install stili
pnpm add stili
yarn add stili
bun add stili
```

## 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 | 3.1.0 |
| Published | 2021-05-06 |
| First published | 2019-05-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=12.13.0 |
| Dependencies | 1 |
| Unpacked size | 44.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51 |
| Maintainers | julia.spehrer, ijigg, deepsweet, xaviervia, psxcode, irminakacz, fosimus, atilaz, moria.am, gideon.gur |

## Links

- npm: https://www.npmjs.com/package/stili
- 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/stili

## Dependencies (1)

- [tsfn](https://npm.io/package/tsfn.md) ^2.0.0

## Recent versions

- 3.1.0 (latest) — 2021-05-06
- 3.0.2 — 2021-02-01
- 3.0.1 — 2021-01-15
- 3.0.0 — 2020-10-15
- 2.0.3 — 2020-09-04
- 2.0.2 — 2020-08-31
- 2.0.1 — 2020-08-19
- 2.0.0 — 2020-04-27
- 1.1.0 — 2020-02-19
- 1.0.1 — 2020-01-24
- 1.0.0 — 2020-01-23
- 0.2.1 — 2019-09-13
- 0.2.0 — 2019-08-29
- 0.1.3 — 2019-07-08
- 0.1.2 — 2019-06-20
- … 3 more at https://npm.io/package/stili/versions

## README

# stili

Style normalizer for creating universal React/React Native components.

## Install

```sh
$ yarn add stili
```

## Usage

```ts
normalizeWebStyle(style: TStyle) => TCssWebProps
normalizeNativeStyle(style: TStyle) => TCssNativeProps
```

* `TStyle` – normalized styles
* `TCssWebProps` – web specific styles
* `TCssNativeProps` – native specific styles

In web file
```ts
import { normalizeWebStyle } from 'stili'

normalizeWebStyle({ lineHeight: 16 })
// field target: { lineHeight: '16px' }
```

In native file
```ts
import { normalizeNativeStyle } from 'stili'

normalizeNativeStyle({ lineHeight: 16 })
// field target: { lineHeight: 16 }
```

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