@hakuna-matata-ui/styled-system
Version:
Style function for css-in-js building component libraries
84 lines • 3.01 kB
TypeScript
import * as CSS from "csstype";
import { Config } from "../utils/prop-config";
import { Length, Token } from "../utils";
export declare const filter: Config;
export interface FilterProps {
/**
* The CSS `filter` property. When set to `auto`, you allow
* Chakra UI to define the color based on the filter style props
* (`blur`, `saturate`, etc.)
*/
filter?: Token<CSS.Property.Filter | "auto">;
/**
* Sets the blur filter value of an element.
* Value is assigned to `--chakra-filter` css variable
*/
blur?: Token<{}, "blur">;
/**
* Sets the brightness filter value of an element.
* Value is assigned to `--chakra-brightness` css variable
*/
brightness?: Token<Length>;
/**
* Sets the constrast filter value of an element.
* Value is assigned to `--chakra-contrast` css variable
*/
contrast?: Token<Length>;
/**
* Sets the hue-rotate filter value of an element.
* Value is assigned to `--chakra-hue-rotate` css variable
*/
hueRotate?: Token<Length>;
/**
* Sets the invert filter value of an element.
* Value is assigned to `--chakra-invert` css variable
*/
invert?: Token<Length>;
/**
* Sets the saturate filter value of an element.
* Value is assigned to `--chakra-saturate` css variable
*/
saturate?: Token<Length>;
/**
* Sets the drop-shadow filter value of an element.
* Value is assigned to `--chakra-drop-shadow` css variable
*/
dropShadow?: Token<CSS.Property.BoxShadow, "shadows">;
/**
* The CSS `backdrop-filter` property. When set to `auto`, you allow
* Chakra UI to define the color based on the backdrop filter style props
* (`backdropBlur`, `backdropSaturate`, etc.)
*/
backdropFilter?: Token<CSS.Property.BackdropFilter | "auto">;
/**
* Sets the backdrop-blur filter value of an element.
* Value is assigned to `--chakra-backdrop-blur` css variable
*/
backdropBlur?: Token<{}, "blur">;
/**
* Sets the backdrop-brightness filter value of an element.
* Value is assigned to `--chakra-backdrop-brightness` css variable
*/
backdropBrightness?: Token<Length>;
/**
* Sets the backdrop-contrast filter value of an element.
* Value is assigned to `--chakra-backdrop-contrast` css variable
*/
backdropContrast?: Token<Length>;
/**
* Sets the backdrop-hue-rotate filter value of an element.
* Value is assigned to `--chakra-backdrop-hue-rotate` css variable
*/
backdropHueRotate?: Token<Length>;
/**
* Sets the backdrop-invert filter value of an element.
* Value is assigned to `--chakra-backdrop-invert` css variable
*/
backdropInvert?: Token<Length>;
/**
* Sets the backdrop-saturate filter value of an element.
* Value is assigned to `--chakra-backdrop-saturate` css variable
*/
backdropSaturate?: Token<Length>;
}
//# sourceMappingURL=filter.d.ts.map