From 95db31fb93ca4c99904c5f20c233be47cf600c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Tegela=C3=A1r-Breiby?= Date: Tue, 6 Aug 2024 17:25:56 +0200 Subject: [PATCH] Add surface elevated 100 and 300 to color extensions (#1366) --- FinniversKit/Sources/DNA/Color/UIColor+FinniversKit.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/FinniversKit/Sources/DNA/Color/UIColor+FinniversKit.swift b/FinniversKit/Sources/DNA/Color/UIColor+FinniversKit.swift index 6700c5d666..011f31f1eb 100644 --- a/FinniversKit/Sources/DNA/Color/UIColor+FinniversKit.swift +++ b/FinniversKit/Sources/DNA/Color/UIColor+FinniversKit.swift @@ -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 { @@ -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 { @@ -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