A Tailwind CSS preset that replaces rem with px.
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
],
// ...
}
Explore new opportunities with Rise8.