properties
changelog

Invert Filter

Invert colors of element with filter.

Usage:

  • @filter invert-*;

Reference

shilp.config.js
/** @type {import('shilpcss/types').ShilpConfig} */
const shilpConfig = {
  source: "react",

  properties: {
    filter: {
      invert: {
        property: "filter: invert(<v>)<i>;",
        values: {
          DEFAULT: 1,
          none: 0,
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: