Filters

Utilities

ClassProperties
blur-nonefilter: none
blur-${key}filter: blur(${value});
filter-${key}filter: ${value};
backdrop-${key}backdrop-filter: ${value};

Usage

windi.config.js
export default {
  theme: {
    filter: {
      none: 'none',
      grayscale: 'grayscale(1)',
      invert: 'invert(1)',
      sepia: 'sepia(1)',
    },
    backdropFilter: {
      none: 'none',
      blur: 'blur(20px)',
    },
  },
  variants: {
    filter: ['responsive'],
    backdropFilter: ['responsive'],
  },
  plugins: [
    require('windicss/plugin/filters'),
  ],
}
Windi CSS is Sunsetting We recommend new projects to consider alternatives. Click for more information.