Skip to content

Commit

Permalink
⚡️ :: Error Color (Test용) 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
HongSJae committed Jul 24, 2023
1 parent 9f2f184 commit 367e1b7
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -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
}
}
Original file line number Diff line number Diff line change
@@ -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
}
}

This file was deleted.

5 changes: 4 additions & 1 deletion xquare-design-system-iOS/Sources/Color/XErrorColor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 367e1b7

Please sign in to comment.