import type * as CSS from 'csstype'; import { Config, system } from 'styled-system'; import type { ResponsiveValue } from './responsiveValue'; /** * The parser configuration for common outline properties */ const config: Config = { outline: true, outlineOffset: true, outlineWidth: true, outlineStyle: true, outlineColor: { property: 'outlineColor', scale: 'colors', }, }; export interface customOutlineProps { /** * The CSS `outline` property */ outline?: ResponsiveValue>; /** * The CSS `outline-offset` property */ outlineOffset?: ResponsiveValue>; /** * The CSS `outline-color` property */ outlineColor?: ResponsiveValue; /** * The CSS `outline-width` property */ outlineWidth?: ResponsiveValue>; /** * The CSS `outline-style` property */ outlineStyle?: ResponsiveValue; } export const customOutline = system(config);