# tailwind-mappings

> CSS Property values to Tailwind utilities mapping data

Latest version **1.5.6** (published 2021-06-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install tailwind-mappings
pnpm add tailwind-mappings
yarn add tailwind-mappings
bun add tailwind-mappings
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.6 |
| Published | 2021-06-08 |
| First published | 2021-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.0.0 |
| Dependencies | 3 |
| Unpacked size | 133.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Rajasegar Chandran |
| Maintainers | rajasegar |
| Keywords | tailwind, tailwindcss |

## Links

- npm: https://www.npmjs.com/package/tailwind-mappings
- Repository: https://github.com/rajasegar/tailwind-mappings
- Homepage: https://github.com/rajasegar/tailwind-mappings#readme
- Issues: https://github.com/rajasegar/tailwind-mappings/issues
- npm.io page: https://npm.io/package/tailwind-mappings

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) ^4.3.1
- [chroma-js](https://npm.io/package/chroma-js.md) ^2.1.2
- [tailwindcss](https://npm.io/package/tailwindcss.md) ^2.1.4

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

- 1.5.6 (latest) — 2021-06-08
- 1.5.5 — 2021-06-08
- 1.5.4 — 2021-06-08
- 1.5.3 — 2021-06-07
- 1.5.2 — 2021-06-07
- 1.5.1 — 2021-06-06
- 1.5.0 — 2021-06-06
- 1.4.5 — 2021-06-06
- 1.4.4 — 2021-06-06
- 1.4.3 — 2021-06-06
- 1.4.2 — 2021-06-06
- 1.4.1 — 2021-06-06
- 1.4.0 — 2021-06-06
- 1.3.2 — 2021-06-05
- 1.3.1 — 2021-06-04
- … 8 more at https://npm.io/package/tailwind-mappings/versions

## README

# tailwind-mappings


![Build and Deploy](https://github.com/rajasegar/tailwind-mappings/workflows/Build%20and%20Deploy/badge.svg)
[![npm version](http://img.shields.io/npm/v/tailwind-mappings.svg?style=flat)](https://npmjs.org/package/tailwind-mappings "View this project on npm")
[![Coverage Status](https://coveralls.io/repos/github/rajasegar/tailwind-mappings/badge.svg?branch=main)](https://coveralls.io/github/rajasegar/tailwind-mappings?branch=main)


CSS Property values to Tailwind utilities mapping data

## Install
```
npm install --save tailwind-mappings
```

## Usage
```js
const { TAILWIND_CLASSES } = require('tailwind-mappings');

const decl = {
  prop: 'display',
  value: 'block'
};

const tailwindClass = TAILWIND_CLASSES[decl.prop][decl.value];
// => 'block'

const decl2 = {
  prop: 'padding',
  value: '0px'
};

const tailwindClass = TAILWIND_CLASSES[decl2.prop][decl2.value];
// => 'p-0'
```

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