Skip to content

rise8-us/tailwind-pixel-perfect-preset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.