Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zuowendong/postcss-px-to-viewport-tailwind

postcss-px-to-viewport + tailwindcss -> different viewport width
https://github.com/zuowendong/postcss-px-to-viewport-tailwind

Last synced: about 2 months ago
JSON representation

postcss-px-to-viewport + tailwindcss -> different viewport width

Awesome Lists containing this project

README

        

# postcss-px-to-viewport-tailwind

Use postcss-px-to-viewport and tailwindcss can dynamically change the viewport width.

## how to use

```js
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {
overrideBrowserslist: ["last 5 version", ">1%", "ie >=8"],
},
"postcss-px-to-viewport": {
unitToConvert: "px",
viewportWidth: 375,
viewportWidthPaid: 750,
viewportWidthPc: 1920,
width2Tailwind: {
viewportWidthPaid: "md",
viewportWidthPc: "xl",
},
unitPrecision: 6,
propList: ["*"],
viewportUnit: "vw",
fontViewportUnit: "vw",
selectorBlackList: [],
minPixelValue: 1,
mediaQuery: true,
replace: true,
exclude: [/node_modules/],
landscape: false,
},
},
},
```