Releases: aerni/tailwindcss-rfs
Releases · aerni/tailwindcss-rfs
v5.0.0
v4.0.0
Breaking changes
This plugin no longer provides a set of predefined utilities like rfs-text-6xl. Instead, you can now add rfs as a variant to any of Tailwind's core plugins, which generates variants likerfs:text-6xl.
Upgrade Guide
Migrating to the new version should be pretty painless. Simply follow the following steps.
1. Remove the plugin's obsolete configuration
Before:
plugins: [
require('tailwindcss-rfs')({
prefix: 'rfs-',
suffix: '',
fontSizeUtilities: true,
paddingUtilities: true,
marginUtilities: true,
widthUtilities: false,
maxWidthUtilities: false,
minWidthUtilities: false,
heightUtilities: false,
maxHeightUtilities: false,
minHeightUtilities: false,
}),
],Now:
plugins: [
require('tailwindcss-rfs')
],2. Remove the plugin's obsolete variants
Before:
variants: {
rfsFontSize: [...]
rfsPadding: [...]
rfsMargin: [...]
rfsWidth: [...]
rfsMaxWidth: [...]
rfsMinWidth: [...]
rfsHeight: [...]
rfsMaxHeight: [...]
rfsMinHeight: [...]
},Now:
variants: {},3. Make sure to activate potentially deactivated core plugins
Before:
corePlugins: {
fontSize: false,
padding: false,
margin: false,
},Now:
corePlugins: {},4. Add the rfs variant to the desired core plugins
variants: {
extend: {
fontSize: ['rfs'],
padding: ['rfs'],
margin: ['rfs'],
},
},5. Search and replace all occurrences of rfs- and -rfs
- Replace
rfs-withrfs: - Replace
-rfswithrfs:-
If you used a custom prefix or suffix make sure to search and replace those instead
v3.0.1
v3.0.0
v2.1.1
v2.1.0
Added
- Added the generation of utilitiy classes for
width,maxWidth,minWidth,height,maxHeightandminHeight - Added the option to disable the generation of utility classes for
width,maxWidth,minWidth,height,maxHeightandminHeight - Added variants for
width,maxWidth,minWidth,height,maxHeightandminHeight
v2.0.0
Added
- Added a
prefixoption - Added a
suffixoption - Added the generation of utilitiy classes for
padding,marginandnegativeMargin - Added the option to disable the generation of utility classes for
fontSize,paddingandmargin - Added variants for
fontSize,paddingandmargin
Breaking changes
- The font size class name changed from
rfs-[key]to `rfs-text-[key] to follow the naming pattern of Tailwind