diff --git a/xquare-design-system-iOS/Resources/ErrorColor.xcassets/Error 40.colorset/Contents.json b/xquare-design-system-iOS/Resources/ErrorColor.xcassets/Error 40.colorset/Contents.json new file mode 100644 index 0000000..e780605 --- /dev/null +++ b/xquare-design-system-iOS/Resources/ErrorColor.xcassets/Error 40.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0x1E", + "green" : "0x26", + "red" : "0xB3" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/xquare-design-system-iOS/Resources/ErrorColor.xcassets/Error 60.colorset/Contents.json b/xquare-design-system-iOS/Resources/ErrorColor.xcassets/Error 60.colorset/Contents.json new file mode 100644 index 0000000..c70c24b --- /dev/null +++ b/xquare-design-system-iOS/Resources/ErrorColor.xcassets/Error 60.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0x62", + "green" : "0x69", + "red" : "0xE4" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/xquare-design-system-iOS/Resources/ErrorColor.xcassets/Molla.colorset/Contents.json b/xquare-design-system-iOS/Resources/ErrorColor.xcassets/Molla.colorset/Contents.json deleted file mode 100644 index 2536dc2..0000000 --- a/xquare-design-system-iOS/Resources/ErrorColor.xcassets/Molla.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0xFF", - "green" : "0xFF", - "red" : "0xFF" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0xFF", - "green" : "0xFF", - "red" : "0xFF" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/xquare-design-system-iOS/Sources/Color/XErrorColor.swift b/xquare-design-system-iOS/Sources/Color/XErrorColor.swift index 69097af..e3bc8ae 100644 --- a/xquare-design-system-iOS/Sources/Color/XErrorColor.swift +++ b/xquare-design-system-iOS/Sources/Color/XErrorColor.swift @@ -5,5 +5,8 @@ public extension Color { } public extension Color.Error { - static let error50: Color = Color("Error 50", bundle: Bundle.module) + private static let error40: Color = Color(type: .error, 40) + private static let error60: Color = Color(type: .error, 60) + + static let error: Color = error60.darkModeColor(error40) }