properties
changelog

Grayscale Filter

Apply grayscale filter to convert colors to gray.

Usage:

  • @filter gray-*;

Reference

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

  properties: {
    filter: {
      gray: {
        property: "filter: grayscale(<v>)<i>;",
        themeKey: "fractions",
        values: {},
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: