@salesforce-ux/eslint-plugin-slds
Version:
ESLint plugin provides custom linting rules specifically built for Salesforce Lightning Design System 2 (SLDS 2 beta)
19 lines (18 loc) • 809 B
TypeScript
import { ValueToStylingHooksMapping } from '@salesforce-ux/sds-metadata';
declare const isHardCodedColor: (color: string) => boolean;
declare const isHexCode: (color: string) => boolean;
declare const convertToHex: (color: string) => string | null;
declare const findClosestColorHook: (color: string, supportedColors: ValueToStylingHooksMapping, cssProperty: string) => string[];
/**
* This method is usefull to identify all possible css color values.
* - names colors
* - 6,8 digit hex
* - rgb and rgba
* - hsl and hsla
*/
declare const isValidColor: (val: string) => boolean;
/**
* Extract color value from CSS AST node
*/
declare const extractColorValue: (node: any) => string | null;
export { findClosestColorHook, convertToHex, isHexCode, isHardCodedColor, isValidColor, extractColorValue };