# @40q/tailwindcss-font-sizes-matrix

> This custom Tailwind css plugin, helps build a matrix of font sizes and breakpoints.

Latest version **1.0.8** (published 2023-12-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install @40q/tailwindcss-font-sizes-matrix
pnpm add @40q/tailwindcss-font-sizes-matrix
yarn add @40q/tailwindcss-font-sizes-matrix
bun add @40q/tailwindcss-font-sizes-matrix
```

## 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.0.8 |
| Published | 2023-12-13 |
| First published | 2023-12-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | 40q |
| Maintainers | mmartinezsoria, jdebuchy |

## Links

- npm: https://www.npmjs.com/package/@40q/tailwindcss-font-sizes-matrix
- Repository: https://github.com/40Q/tailwindcss-font-sizes-matrix
- npm.io page: https://npm.io/package/@40q/tailwindcss-font-sizes-matrix

## Recent versions

- 1.0.8 (latest) — 2023-12-13
- 1.0.7 — 2023-12-13
- 1.0.6 — 2023-12-13
- 1.0.5 — 2023-12-13
- 1.0.4 — 2023-12-13
- 1.0.3 — 2023-12-13
- 1.0.2 — 2023-12-13
- 1.0.1 — 2023-12-13
- 1.0.0 — 2023-12-13

## README

# Tailwind CSS Font Sizes Matrix
This custom Tailwind css plugin, helps build a matrix of font sizes and breakpoints.

## Usage
1. Install the package in your project
```
npm install @40q/tailwindcss-font-sizes-matrix
```
or
```
yarn add @40q/tailwindcss-font-sizes-matrix
```

2. Import the package in your tailwind configuration file.
```
import { fontSizesMatrix } from "@40q/tailwindcss-font-sizes-matrix";
```

3. Disable Tailwind's default font sizes:
```
  theme: {
    fontSize: {}
  }
```

4. Call the function in the plugins array and fill the configuration object. This example will generate the class `text-xs`.
```
  plugins: [
    fontSizesMatrix({
      xs: {
        default: {
          fontSize: "0.75rem",
          lineHeight: "1rem",
        },
        md: "0.875rem",
        lg: "1rem"
      }
    })
  ]
```

---
_Source: https://npm.io/package/@40q/tailwindcss-font-sizes-matrix · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
