Skip to content

Commit

Permalink
Add surface elevated 100 and 300 to color extensions (#1366)
Browse files Browse the repository at this point in the history
  • Loading branch information
Breiby authored Aug 6, 2024
1 parent e3fb07d commit 95db31f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions FinniversKit/Sources/DNA/Color/UIColor+FinniversKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ extension Color {
public static var iconSecondary: Color { Warp.Token.iconSecondary }
public static var iconWarning: Color { Warp.Token.iconWarning }
public static var surfaceSunken: Color { Warp.Token.surfaceSunken }
public static var surfaceElevated100: Color { Warp.Token.surfaceElevated100 }
public static var surfaceElevated200: Color { Warp.Token.surfaceElevated200 }
public static var surfaceElevated300: Color { Warp.Token.surfaceElevated300 }
}

@objc extension UIColor {
Expand Down Expand Up @@ -90,7 +92,9 @@ extension Color {
public static var iconSecondary: UIColor { Warp.UIToken.iconSecondary }
public static var iconWarning: UIColor { Warp.UIToken.iconWarning }
public static var surfaceSunken: UIColor { Warp.UIToken.surfaceSunken }
public static var surfaceElevated100: UIColor { Warp.UIToken.surfaceElevated100 }
public static var surfaceElevated200: UIColor { Warp.UIToken.surfaceElevated200 }
public static var surfaceElevated300: UIColor { Warp.UIToken.surfaceElevated300 }
}

extension CGColor {
Expand Down Expand Up @@ -133,7 +137,9 @@ extension CGColor {
public class var iconSecondary: CGColor { UIColor.iconSecondary.cgColor }
public class var iconWarning: CGColor { UIColor.iconWarning.cgColor }
public class var surfaceSunken: CGColor { UIColor.surfaceSunken.cgColor }
public class var surfaceElevated100: CGColor { UIColor.surfaceElevated100.cgColor }
public class var surfaceElevated200: CGColor { UIColor.surfaceElevated200.cgColor }
public class var surfaceElevated300: CGColor { UIColor.surfaceElevated300.cgColor }
}

// MARK: - Semantic colors, dark mode compatible
Expand Down

0 comments on commit 95db31f

Please sign in to comment.