import type { CSSProperties } from "../CSSProperties"; export type TextDecorationLonghands = Required< Pick< CSSProperties, | "textDecorationLine" | "textDecorationColor" | "textDecorationStyle" | "textDecorationThickness" > >; export function textDecoration( line: NonNullable, color: NonNullable = "currentcolor", style: NonNullable = "solid", thickness: NonNullable = "auto", ): TextDecorationLonghands { return { textDecorationLine: line, textDecorationColor: color, textDecorationStyle: style, textDecorationThickness: thickness, }; }