Skip to content

Commit

Permalink
Update tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
amegias committed Aug 21, 2024
1 parent bfccd47 commit 9a30a77
Show file tree
Hide file tree
Showing 30 changed files with 355 additions and 290 deletions.
11 changes: 11 additions & 0 deletions Sources/MisticaCommon/Colors/BlauColorPalette.swift
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,17 @@ struct BlauColors: MisticaColors {
let tagBackgroundWarning = BlauColors.palette.blauYellow10 | BlauColors.palette.darkModeGrey6

let tagBackgroundError = BlauColors.palette.blauRed10 | BlauColors.palette.darkModeGrey6

let cardContentOverlay = MisticaColor.gradient(MisticaGradient(
colors:
[
BlauColors.palette.grey6.withAlphaComponent(0),
BlauColors.palette.grey6.withAlphaComponent(0.4),
BlauColors.palette.grey6.withAlphaComponent(0.7)
],
stops: [0, 0.3, 1],
angle: 180
))
}

public struct BlauColorPalette {
Expand Down
52 changes: 26 additions & 26 deletions Sources/MisticaCommon/Colors/ColorToolkit+Color.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
import SwiftUI

public extension Color {
static var background: Color {
MisticaConfig.currentColors.background.color
static var backgroundBrandSecondary: Color {
MisticaConfig.currentColors.backgroundBrandSecondary.color
}

static var backgroundAlternative: Color {
MisticaConfig.currentColors.backgroundAlternative.color
static var appBarBackground: Color {
MisticaConfig.currentColors.appBarBackground.color
}

static var backgroundBrandSecondary: Color {
MisticaConfig.currentColors.backgroundBrandSecondary.color
static var background: Color {
MisticaConfig.currentColors.background.color
}

static var backgroundContainer: Color {
Expand Down Expand Up @@ -65,20 +65,20 @@ public extension Color {
MisticaConfig.currentColors.backgroundSkeletonInverse.color
}

static var backgroundBrandTop: Color {
MisticaConfig.currentColors.backgroundBrandTop.color
static var navigationBarBackground: Color {
MisticaConfig.currentColors.navigationBarBackground.color
}

static var backgroundBrandBottom: Color {
MisticaConfig.currentColors.backgroundBrandBottom.color
static var backgroundAlternative: Color {
MisticaConfig.currentColors.backgroundAlternative.color
}

static var appBarBackground: Color {
MisticaConfig.currentColors.appBarBackground.color
static var backgroundBrandTop: Color {
MisticaConfig.currentColors.backgroundBrandTop.color
}

static var navigationBarBackground: Color {
MisticaConfig.currentColors.navigationBarBackground.color
static var backgroundBrandBottom: Color {
MisticaConfig.currentColors.backgroundBrandBottom.color
}

static var skeletonWave: Color {
Expand Down Expand Up @@ -169,6 +169,10 @@ public extension Color {
MisticaConfig.currentColors.buttonSecondaryBorderSelected.color
}

static var buttonSecondaryBorderInverse: Color {
MisticaConfig.currentColors.buttonSecondaryBorderInverse.color
}

static var buttonSecondaryBackgroundHover: Color {
MisticaConfig.currentColors.buttonSecondaryBackgroundHover.color
}
Expand All @@ -177,10 +181,6 @@ public extension Color {
MisticaConfig.currentColors.buttonSecondaryBackgroundSelected.color
}

static var buttonSecondaryBorderInverse: Color {
MisticaConfig.currentColors.buttonSecondaryBorderInverse.color
}

static var buttonSecondaryBorderInverseSelected: Color {
MisticaConfig.currentColors.buttonSecondaryBorderInverseSelected.color
}
Expand Down Expand Up @@ -361,14 +361,6 @@ public extension Color {
MisticaConfig.currentColors.textSecondaryInverse.color
}

static var success: Color {
MisticaConfig.currentColors.success.color
}

static var warning: Color {
MisticaConfig.currentColors.warning.color
}

static var error: Color {
MisticaConfig.currentColors.error.color
}
Expand All @@ -381,6 +373,14 @@ public extension Color {
MisticaConfig.currentColors.textErrorInverse.color
}

static var success: Color {
MisticaConfig.currentColors.success.color
}

static var warning: Color {
MisticaConfig.currentColors.warning.color
}

static var promo: Color {
MisticaConfig.currentColors.promo.color
}
Expand Down
Loading

0 comments on commit 9a30a77

Please sign in to comment.