v3.1.0
modifyPreflightStyles
option added (function syntax)
/** @type {import("tailwindcss").Config} */
const config = {
// ... your Tailwind CSS config
plugins: [
// ... other plugins
scopedPreflightStyles({
isolationStrategy: ...
modifyPreflightStyles: ({ selectorSet, property, value }) => {
// let's say you want to override the font family
if (property === 'font-family' && value !== 'inherit') {
return '"Open Sans", sans-serif';
}
// if you want to remove some property - return null
if (selectorSet.has('html') && property === 'line-height') {
return null;
}
},
}),
],
};