aerni/tailwindcss-rfs

prefix option doesn't seem to work

lynden-jones opened this issue · 3 comments

I set the prefix to ''. I also tried setting the prefix to 'something-else-'.

However the prefix remained as 'rfs-'

This is my tailwind.config.js

module.exports = {
  future: {
    // removeDeprecatedGapUtilities: true,
    // purgeLayersByDefault: true,
  },
  purge: [],
  theme: {
    extend: {},
  },
  variants: {},
  corePlugins: {
    fontSize: false, // defer to rfs
    padding: false, // defer to rfs
    margin: false, // defer to rfs
  },
  plugins: [
    require('tailwindcss-rfs')({
      prefix: '',
      fontSizeUtilities: true,
      paddingUtilities: true,
      marginUtilities: true,
    })
  ]
}

Looking at the code, it seems only padding has the issue of ignoring the user's prefix.

I created a PR for this issue #7

aerni commented

I merged PR #7. Thanks a lot.