UNPKG

postcss-px-to-unit

Version:

A postcss plugin to convert px to relative length units (vw / rem)

21 lines (17 loc) 506 B
import { Plugin } from "postcss"; interface Options { targetUnit?: "vw" | "rem" | "vw&rem"; ignoreThreshold?: number; viewportWidth?: number; viewportHeight?: number; htmlFontSize?: number; unitPrecision?: number; excludeFiles?: (string | RegExp)[]; excludeSelectors?: (string | RegExp)[]; excludeProperties?: (string | RegExp)[]; cacheSize?: number; debug?: boolean; } declare const PxToUnit: (options?: Options) => Plugin; export default PxToUnit; export const postcss: boolean;