1.0.8 • Published 5 months ago

@40q/tailwindcss-font-sizes-matrix v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

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
  1. Import the package in your tailwind configuration file.
import { fontSizesMatrix } from "@40q/tailwindcss-font-sizes-matrix";
  1. Disable Tailwind's default font sizes:
  theme: {
    fontSize: {}
  }
  1. 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"
      }
    })
  ]
1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago