Skip to content

Commit ee2da91

Browse files
committed
TextDecoration
1 parent 35037bb commit ee2da91

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Sources/CSS/Declarations/Font.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,15 @@ public enum TextAlignment: String {
7272
public func textAlign(_ alignment: TextAlignment) -> Declaration {
7373
Declaration(property: .textAlign, value: alignment.rawValue)
7474
}
75+
76+
77+
public enum TextDecoration: String {
78+
case underline
79+
case overline
80+
case lineThrough
81+
case none
82+
}
83+
/// Styling links (`<a>`)
84+
public func textDecoration(_ decoration: TextDecoration) -> Declaration {
85+
Declaration(property: .textDecoration, value: decoration.rawValue.dashCase())
86+
}

0 commit comments

Comments
 (0)