rise8-us / tailwind-pixel-perfect-preset

A Tailwind CSS preset that replaces rem with px.

Home Page:https://www.npmjs.com/package/@rise8/tailwind-pixel-perfect-preset

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tailwind-pixel-perfect-preset

A Tailwind CSS preset that replaces rem with px.

Install

npm install --save-dev @rise8/tailwind-pixel-perfect-preset
# or
yarn add --dev @rise8/tailwind-pixel-perfect-preset

Update your tailwind.config.js to use the preset:

//cjs
module.exports = {
  presets: [
    require('@rise8/tailwind-pixel-perfect-preset')
  ],
  // ...
}
//esm
import tailwindPixelPerfectPreset from '@rise8/tailwind-pixel-perfect-preset'

export default {
  presets: [
    tailwindPixelPerfectPreset
  ],
  // ...
}

Careers

Explore new opportunities with Rise8.