Revert "Replace DesignKit with package from ElementX."

This reverts the following commits:
4858d72afb
6827d2a854
92c5874359
0a9bd1fbe6
This commit is contained in:
Doug
2022-08-18 11:50:08 +01:00
committed by Doug
parent 4dde22c6b7
commit 2b1bd6f772
55 changed files with 1051 additions and 191 deletions
@@ -14,33 +14,10 @@
// limitations under the License.
//
import SwiftUI
import Foundation
import DesignKit
import DesignTokens
protocol ThemeSwiftUI: ThemeSwiftUIType {
var identifier: ThemeIdentifier { get }
var isDark: Bool { get }
}
/// Theme v2 for SwiftUI.
@available(iOS 14.0, *)
public protocol ThemeSwiftUIType {
/// Colors object
var colors: ElementColors { get }
/// Fonts object
var fonts: ElementFonts { get }
/// may contain more design components in future, like icons, audio files etc.
}
// MARK: - Legacy Colors
public extension ElementColors {
var legacyTile: Color {
let dynamicColor = UIColor { $0.userInterfaceStyle == .light ? .elementLight.tile : .elementDark.tile }
return Color(dynamicColor)
}
}