backdrop-filter
properties.filter
properties.--tw-
.backdrop-blur
, backdrop-filter
, and other filter utilities..backdrop-filter {
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
}
.backdrop-filter {
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
# npm
npm install -D @hansf14/postcss-hotfix
# yarn
yarn add -D @hansf14/postcss-hotfix
# pnpm
pnpm add -D @hansf14/postcss-hotfix
Add the plugin to your PostCSS configuration. Don't forget to restart your dev server to apply the changes to your postcss config file!
postcss.config.jsmodule.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
require('@hansf14/postcss-hotfix'),
],
}
import tailwindcss from 'tailwindcss'
import autoprefixer from 'autoprefixer'
import postcssHotfix from '@hansf14/postcss-hotfix'
export default {
plugins: [
tailwindcss,
autoprefixer,
postcssHotfix,
],
}
debug?: boolean | undefined
import tailwindcss from 'tailwindcss'
import autoprefixer from 'autoprefixer'
import postcssHotfix from '@hansf14/postcss-hotfix'
export default {
plugins: [
tailwindcss,
autoprefixer,
postcssHotfix({ debug: true }),
],
}
Found Tailwind var: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)
Fixed to: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)