Skip to content

Commit be78ece

Browse files
committed
Remove color related static conveniences (should be defined by package users)
1 parent 76aa499 commit be78ece

18 files changed

+6
-474
lines changed

Sources/CSSPropertyTypes/BackgroundColor.swift

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -84,44 +84,3 @@ extension BackgroundColor: CustomStringConvertible {
8484
}
8585
}
8686
}
87-
88-
/// Default value and predefined colors
89-
extension BackgroundColor {
90-
/// The default value for background-color (`transparent`)
91-
public static let `default` = BackgroundColor(.transparent)
92-
93-
/// Transparent background
94-
public static let transparent = BackgroundColor(.transparent)
95-
96-
/// Current color value
97-
public static let currentColor = BackgroundColor(.currentColor)
98-
99-
// Common color shortcuts
100-
101-
/// Black background color
102-
public static let black = BackgroundColor(.black)
103-
104-
/// White background color
105-
public static let white = BackgroundColor(.white)
106-
107-
/// Red background color
108-
public static let red = BackgroundColor(.red)
109-
110-
/// Green background color
111-
public static let green = BackgroundColor(.green)
112-
113-
/// Blue background color
114-
public static let blue = BackgroundColor(.blue)
115-
116-
/// Yellow background color
117-
public static let yellow = BackgroundColor(.yellow)
118-
119-
/// Cyan background color
120-
public static let cyan = BackgroundColor(.cyan)
121-
122-
/// Magenta background color
123-
public static let magenta = BackgroundColor(.magenta)
124-
125-
/// Gray background color
126-
public static let gray = BackgroundColor(.gray)
127-
}

Sources/CSSPropertyTypes/BorderBlockColor.swift

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -87,29 +87,3 @@ extension BorderBlockColor: CustomStringConvertible {
8787
}
8888
}
8989

90-
/// Convenience methods for creating BorderBlockColor values
91-
extension BorderBlockColor {
92-
/// The default border-block-color value (currentcolor)
93-
public static let `default` = BorderBlockColor(.currentColor)
94-
95-
/// Creates a transparent border-block-color
96-
public static let transparent = BorderBlockColor(.transparent)
97-
98-
/// Creates a border-block-color that uses the current text color
99-
public static let currentColor = BorderBlockColor(.currentColor)
100-
101-
/// Creates a black border-block-color
102-
public static let black = BorderBlockColor(.black)
103-
104-
/// Creates a white border-block-color
105-
public static let white = BorderBlockColor(.white)
106-
107-
/// Creates a red border-block-color
108-
public static let red = BorderBlockColor(.red)
109-
110-
/// Creates a green border-block-color
111-
public static let green = BorderBlockColor(.green)
112-
113-
/// Creates a blue border-block-color
114-
public static let blue = BorderBlockColor(.blue)
115-
}

Sources/CSSPropertyTypes/BorderBlockEndColor.swift

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -87,29 +87,3 @@ extension BorderBlockEndColor: CustomStringConvertible {
8787
}
8888
}
8989

90-
/// Convenience methods for creating BorderBlockEndColor values
91-
extension BorderBlockEndColor {
92-
/// The default border-block-end-color value (currentcolor)
93-
public static let `default` = BorderBlockEndColor(.currentColor)
94-
95-
/// Creates a transparent border-block-end-color
96-
public static let transparent = BorderBlockEndColor(.transparent)
97-
98-
/// Creates a border-block-end-color that uses the current text color
99-
public static let currentColor = BorderBlockEndColor(.currentColor)
100-
101-
/// Creates a black border-block-end-color
102-
public static let black = BorderBlockEndColor(.black)
103-
104-
/// Creates a white border-block-end-color
105-
public static let white = BorderBlockEndColor(.white)
106-
107-
/// Creates a red border-block-end-color
108-
public static let red = BorderBlockEndColor(.red)
109-
110-
/// Creates a green border-block-end-color
111-
public static let green = BorderBlockEndColor(.green)
112-
113-
/// Creates a blue border-block-end-color
114-
public static let blue = BorderBlockEndColor(.blue)
115-
}

Sources/CSSPropertyTypes/BorderBlockStartColor.swift

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -83,29 +83,3 @@ extension BorderBlockStartColor: CustomStringConvertible {
8383
}
8484
}
8585

86-
/// Convenience methods for creating BorderBlockStartColor values
87-
extension BorderBlockStartColor {
88-
/// The default border-block-start-color value (currentcolor)
89-
public static let `default` = BorderBlockStartColor(.currentColor)
90-
91-
/// Creates a transparent border-block-start-color
92-
public static let transparent = BorderBlockStartColor(.transparent)
93-
94-
/// Creates a border-block-start-color that uses the current text color
95-
public static let currentColor = BorderBlockStartColor(.currentColor)
96-
97-
/// Creates a black border-block-start-color
98-
public static let black = BorderBlockStartColor(.black)
99-
100-
/// Creates a white border-block-start-color
101-
public static let white = BorderBlockStartColor(.white)
102-
103-
/// Creates a red border-block-start-color
104-
public static let red = BorderBlockStartColor(.red)
105-
106-
/// Creates a green border-block-start-color
107-
public static let green = BorderBlockStartColor(.green)
108-
109-
/// Creates a blue border-block-start-color
110-
public static let blue = BorderBlockStartColor(.blue)
111-
}

Sources/CSSPropertyTypes/BorderBottomColor.swift

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -72,29 +72,3 @@ extension BorderBottomColor: CustomStringConvertible {
7272
}
7373
}
7474

75-
/// Convenience methods for creating BorderBottomColor values
76-
extension BorderBottomColor {
77-
/// The default border-bottom-color value (currentcolor)
78-
public static let `default` = BorderBottomColor(.currentColor)
79-
80-
/// Creates a transparent border-bottom-color
81-
public static let transparent = BorderBottomColor(.transparent)
82-
83-
/// Creates a border-bottom-color that uses the current text color
84-
public static let currentColor = BorderBottomColor(.currentColor)
85-
86-
/// Creates a black border-bottom-color
87-
public static let black = BorderBottomColor(.black)
88-
89-
/// Creates a white border-bottom-color
90-
public static let white = BorderBottomColor(.white)
91-
92-
/// Creates a red border-bottom-color
93-
public static let red = BorderBottomColor(.red)
94-
95-
/// Creates a green border-bottom-color
96-
public static let green = BorderBottomColor(.green)
97-
98-
/// Creates a blue border-bottom-color
99-
public static let blue = BorderBottomColor(.blue)
100-
}

Sources/CSSPropertyTypes/BorderColor.swift

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -125,26 +125,3 @@ extension BorderColor: CustomStringConvertible {
125125
}
126126
}
127127

128-
/// Convenience methods for creating border color values
129-
extension BorderColor {
130-
/// Creates a transparent border color
131-
public static let transparent = BorderColor(.transparent)
132-
133-
/// Creates a border color that uses the current text color
134-
public static let currentColor = BorderColor(.currentColor)
135-
136-
/// Creates a black border color
137-
public static let black = BorderColor(.black)
138-
139-
/// Creates a white border color
140-
public static let white = BorderColor(.white)
141-
142-
/// Creates a red border color
143-
public static let red = BorderColor(.red)
144-
145-
/// Creates a green border color
146-
public static let green = BorderColor(.green)
147-
148-
/// Creates a blue border color
149-
public static let blue = BorderColor(.blue)
150-
}

Sources/CSSPropertyTypes/BorderInlineColor.swift

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -92,29 +92,3 @@ extension BorderInlineColor: CustomStringConvertible {
9292
}
9393
}
9494

95-
/// Convenience methods for creating BorderInlineColor values
96-
extension BorderInlineColor {
97-
/// The default border-inline-color value (currentcolor)
98-
public static let `default` = BorderInlineColor(.currentColor)
99-
100-
/// Creates a transparent border-inline-color
101-
public static let transparent = BorderInlineColor(.transparent)
102-
103-
/// Creates a border-inline-color that uses the current text color
104-
public static let currentColor = BorderInlineColor(.currentColor)
105-
106-
/// Creates a black border-inline-color
107-
public static let black = BorderInlineColor(.black)
108-
109-
/// Creates a white border-inline-color
110-
public static let white = BorderInlineColor(.white)
111-
112-
/// Creates a red border-inline-color
113-
public static let red = BorderInlineColor(.red)
114-
115-
/// Creates a green border-inline-color
116-
public static let green = BorderInlineColor(.green)
117-
118-
/// Creates a blue border-inline-color
119-
public static let blue = BorderInlineColor(.blue)
120-
}

Sources/CSSPropertyTypes/BorderInlineEndColor.swift

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -88,29 +88,3 @@ extension BorderInlineEndColor: CustomStringConvertible {
8888
}
8989
}
9090

91-
/// Convenience methods for creating BorderInlineEndColor values
92-
extension BorderInlineEndColor {
93-
/// The default border-inline-end-color value (currentcolor)
94-
public static let `default` = BorderInlineEndColor(.currentColor)
95-
96-
/// Creates a transparent border-inline-end-color
97-
public static let transparent = BorderInlineEndColor(.transparent)
98-
99-
/// Creates a border-inline-end-color that uses the current text color
100-
public static let currentColor = BorderInlineEndColor(.currentColor)
101-
102-
/// Creates a black border-inline-end-color
103-
public static let black = BorderInlineEndColor(.black)
104-
105-
/// Creates a white border-inline-end-color
106-
public static let white = BorderInlineEndColor(.white)
107-
108-
/// Creates a red border-inline-end-color
109-
public static let red = BorderInlineEndColor(.red)
110-
111-
/// Creates a green border-inline-end-color
112-
public static let green = BorderInlineEndColor(.green)
113-
114-
/// Creates a blue border-inline-end-color
115-
public static let blue = BorderInlineEndColor(.blue)
116-
}

Sources/CSSPropertyTypes/BorderInlineStartColor.swift

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -88,29 +88,3 @@ extension BorderInlineStartColor: CustomStringConvertible {
8888
}
8989
}
9090

91-
/// Convenience methods for creating BorderInlineStartColor values
92-
extension BorderInlineStartColor {
93-
/// The default border-inline-start-color value (currentcolor)
94-
public static let `default` = BorderInlineStartColor(.currentColor)
95-
96-
/// Creates a transparent border-inline-start-color
97-
public static let transparent = BorderInlineStartColor(.transparent)
98-
99-
/// Creates a border-inline-start-color that uses the current text color
100-
public static let currentColor = BorderInlineStartColor(.currentColor)
101-
102-
/// Creates a black border-inline-start-color
103-
public static let black = BorderInlineStartColor(.black)
104-
105-
/// Creates a white border-inline-start-color
106-
public static let white = BorderInlineStartColor(.white)
107-
108-
/// Creates a red border-inline-start-color
109-
public static let red = BorderInlineStartColor(.red)
110-
111-
/// Creates a green border-inline-start-color
112-
public static let green = BorderInlineStartColor(.green)
113-
114-
/// Creates a blue border-inline-start-color
115-
public static let blue = BorderInlineStartColor(.blue)
116-
}

Sources/CSSPropertyTypes/BorderLeftColor.swift

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -75,29 +75,3 @@ extension BorderLeftColor: CustomStringConvertible {
7575
}
7676
}
7777

78-
/// Convenience methods for creating BorderLeftColor values
79-
extension BorderLeftColor {
80-
/// The default border-left-color value (currentcolor)
81-
public static let `default` = BorderLeftColor(.currentColor)
82-
83-
/// Creates a transparent border-left-color
84-
public static let transparent = BorderLeftColor(.transparent)
85-
86-
/// Creates a border-left-color that uses the current text color
87-
public static let currentColor = BorderLeftColor(.currentColor)
88-
89-
/// Creates a black border-left-color
90-
public static let black = BorderLeftColor(.black)
91-
92-
/// Creates a white border-left-color
93-
public static let white = BorderLeftColor(.white)
94-
95-
/// Creates a red border-left-color
96-
public static let red = BorderLeftColor(.red)
97-
98-
/// Creates a green border-left-color
99-
public static let green = BorderLeftColor(.green)
100-
101-
/// Creates a blue border-left-color
102-
public static let blue = BorderLeftColor(.blue)
103-
}

0 commit comments

Comments
 (0)