diff --git a/Sources/MarkdownKit/AttributedString/Color.swift b/Sources/MarkdownKit/AttributedString/Color.swift index eb04783..40e36e0 100644 --- a/Sources/MarkdownKit/AttributedString/Color.swift +++ b/Sources/MarkdownKit/AttributedString/Color.swift @@ -44,9 +44,6 @@ } } - public let mdDefaultColor = UIColor.darkText.hexString - public let mdDefaultBackgroundColor = UIColor.systemBackground.hexString - #elseif os(macOS) import Cocoa @@ -68,3 +65,20 @@ public let mdDefaultBackgroundColor = NSColor.textBackgroundColor.hexString #endif + +#if os(iOS) + + public let mdDefaultColor = UIColor.label.hexString + public let mdDefaultBackgroundColor = UIColor.systemBackground.hexString + +#elseif os(tvOS) + + public let mdDefaultColor = UIColor.label.hexString + public let mdDefaultBackgroundColor = UIColor.white.hexString + +#elseif os(watchOS) + + public let mdDefaultColor = UIColor.black.hexString + public let mdDefaultBackgroundColor = UIColor.white.hexString + +#endif