Skip to content

Commit

Permalink
re-generate tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
amegias committed Jul 22, 2024
1 parent b0bff59 commit f6eed12
Show file tree
Hide file tree
Showing 13 changed files with 416 additions and 1,372 deletions.
211 changes: 46 additions & 165 deletions Sources/MisticaCommon/Colors/BlauColorPalette.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,264 +10,145 @@ import UIKit

struct BlauColors: MisticaColors {
static let palette = BlauColorPalette()

let backgroundBrand = MisticaColor.solid(BlauColors.palette.blauBluePrimary | BlauColors.palette.darkModeBlack)

let backgroundBrandSecondary = BlauColors.palette.blauBluePrimary | BlauColors.palette.darkModeBlack

let appBarBackground = BlauColors.palette.white | BlauColors.palette.darkModeGrey

let background = BlauColors.palette.white | BlauColors.palette.darkModeBlack

let backgroundContainer = BlauColors.palette.white | BlauColors.palette.darkModeGrey

let backgroundContainerError = BlauColors.palette.blauRed10 | BlauColors.palette.darkModeGrey

let backgroundContainerHover = BlauColors.palette.blauBluePrimary.withAlphaComponent(0.03) | BlauColors.palette.white.withAlphaComponent(0.03)

let backgroundContainerPressed = BlauColors.palette.blauBluePrimary.withAlphaComponent(0.05) | BlauColors.palette.white.withAlphaComponent(0.05)

let backgroundContainerBrand = MisticaColor.solid(BlauColors.palette.blauBluePrimary | BlauColors.palette.darkModeGrey)

let backgroundContainerBrandHover = BlauColors.palette.darkModeBlack.withAlphaComponent(0.2) | BlauColors.palette.white.withAlphaComponent(0.03)

let backgroundContainerBrandPressed = BlauColors.palette.darkModeBlack.withAlphaComponent(0.4) | BlauColors.palette.white.withAlphaComponent(0.05)

let backgroundContainerBrandOverInverse = BlauColors.palette.blauBlueSecondary | BlauColors.palette.darkModeGrey

let backgroundContainerAlternative = BlauColors.palette.blauBluePrimary20 | BlauColors.palette.darkModeGrey

let backgroundOverlay = BlauColors.palette.blauBlueSecondary.withAlphaComponent(0.75) | BlauColors.palette.darkModeGrey.withAlphaComponent(0.8)

let backgroundSkeleton = BlauColors.palette.grey2 | BlauColors.palette.darkModeGrey

let backgroundSkeletonInverse = BlauColors.palette.blauBlueSecondary | BlauColors.palette.darkModeGrey

let navigationBarBackground = BlauColors.palette.blauBluePrimary | BlauColors.palette.darkModeBlack

let backgroundAlternative = BlauColors.palette.blauBluePrimary20 | BlauColors.palette.darkModeBlack

let backgroundBrandTop = BlauColors.palette.blauBluePrimary | BlauColors.palette.darkModeBlack

let backgroundBrandBottom = BlauColors.palette.blauBluePrimary | BlauColors.palette.darkModeBlack

let skeletonWave = BlauColors.palette.grey2 | BlauColors.palette.grey5

let borderLow = BlauColors.palette.grey1 | BlauColors.palette.darkModeBlack

let border = BlauColors.palette.grey2 | BlauColors.palette.darkModeGrey

let borderHigh = BlauColors.palette.grey5

let borderSelected = BlauColors.palette.blauBlueSecondary60

let coverBackgroundHover = BlauColors.palette.darkModeBlack.withAlphaComponent(0.25)

let coverBackgroundPressed = BlauColors.palette.darkModeBlack.withAlphaComponent(0.35)

let buttonDangerBackground = BlauColors.palette.blauRed

let buttonDangerBackgroundSelected = BlauColors.palette.blauRed70

let buttonDangerBackgroundHover = BlauColors.palette.blauRed70

let borderHigh = BlauColors.palette.grey5 | BlauColors.palette.grey5
let borderSelected = BlauColors.palette.blauBlueSecondary60 | BlauColors.palette.blauBlueSecondary60
let coverBackgroundHover = BlauColors.palette.darkModeBlack.withAlphaComponent(0.25) | BlauColors.palette.darkModeBlack.withAlphaComponent(0.25)
let coverBackgroundPressed = BlauColors.palette.darkModeBlack.withAlphaComponent(0.35) | BlauColors.palette.darkModeBlack.withAlphaComponent(0.35)
let buttonDangerBackground = BlauColors.palette.blauRed | BlauColors.palette.blauRed
let buttonDangerBackgroundSelected = BlauColors.palette.blauRed70 | BlauColors.palette.blauRed70
let buttonDangerBackgroundHover = BlauColors.palette.blauRed70 | BlauColors.palette.blauRed70
let buttonLinkDangerBackgroundSelected = BlauColors.palette.blauRed10 | BlauColors.palette.blauPurple.withAlphaComponent(0.3)

let buttonLinkDangerBackgroundInverse = BlauColors.palette.white | BlauColors.palette.white.withAlphaComponent(0)

let buttonLinkDangerBackgroundInverseSelected = BlauColors.palette.blauRed10 | BlauColors.palette.blauPurple.withAlphaComponent(0.3)

let buttonLinkBackgroundSelected = BlauColors.palette.blauPurple10 | BlauColors.palette.blauPurple.withAlphaComponent(0.3)

let buttonLinkBackgroundInverseSelected = BlauColors.palette.white.withAlphaComponent(0.15) | BlauColors.palette.blauPurple.withAlphaComponent(0.3)

let buttonPrimaryBackground = BlauColors.palette.blauBlueSecondary

let buttonPrimaryBackground = BlauColors.palette.blauBlueSecondary | BlauColors.palette.blauBlueSecondary
let buttonPrimaryBackgroundInverse = BlauColors.palette.white | BlauColors.palette.blauBluePrimary

let buttonPrimaryBackgroundSelected = BlauColors.palette.blauBlueSecondary60

let buttonPrimaryBackgroundHover = BlauColors.palette.blauBlueSecondary60

let buttonPrimaryBackgroundSelected = BlauColors.palette.blauBlueSecondary60 | BlauColors.palette.blauBlueSecondary60
let buttonPrimaryBackgroundHover = BlauColors.palette.blauBlueSecondary60 | BlauColors.palette.blauBlueSecondary60
let buttonPrimaryBackgroundInverseSelected = BlauColors.palette.blauBluePrimary30 | BlauColors.palette.blauBlueSecondary60

let buttonSecondaryBorder = BlauColors.palette.blauBlueSecondary | BlauColors.palette.white

let buttonSecondaryBorderSelected = BlauColors.palette.blauBlueSecondary60 | BlauColors.palette.white

let buttonSecondaryBorderInverse = BlauColors.palette.white

let buttonSecondaryBorderInverse = BlauColors.palette.white | BlauColors.palette.white
let buttonSecondaryBackgroundHover = BlauColors.palette.blauBlueSecondary10 | BlauColors.palette.white.withAlphaComponent(0.15)

let buttonSecondaryBackgroundSelected = BlauColors.palette.blauBlueSecondary10 | BlauColors.palette.white.withAlphaComponent(0.15)

let buttonSecondaryBorderInverseSelected = BlauColors.palette.white

let buttonSecondaryBorderInverseSelected = BlauColors.palette.white | BlauColors.palette.white
let buttonSecondaryBackgroundInverseHover = BlauColors.palette.white.withAlphaComponent(0.2) | BlauColors.palette.white.withAlphaComponent(0.15)

let buttonSecondaryBackgroundInverseSelected = BlauColors.palette.white.withAlphaComponent(0.2) | BlauColors.palette.white.withAlphaComponent(0.15)

let textButtonPrimary = BlauColors.palette.white | BlauColors.palette.grey2

let textButtonPrimaryInverse = BlauColors.palette.blauBlueSecondary | BlauColors.palette.grey2

let textButtonPrimaryInverseSelected = BlauColors.palette.blauBlueSecondary60 | BlauColors.palette.grey2

let textButtonSecondary = BlauColors.palette.blauBlueSecondary | BlauColors.palette.grey2

let textButtonSecondarySelected = BlauColors.palette.blauBlueSecondary60 | BlauColors.palette.grey2

let textButtonSecondaryInverse = BlauColors.palette.white | BlauColors.palette.grey2

let textButtonSecondaryInverseSelected = BlauColors.palette.white | BlauColors.palette.grey2

let textLink = BlauColors.palette.blauPurple | BlauColors.palette.blauPurple30

let textLinkInverse = BlauColors.palette.white | BlauColors.palette.blauPurple30

let textLinkDanger = BlauColors.palette.blauRed

let textLinkSnackbar = BlauColors.palette.blauPurple30

let textActivated = BlauColors.palette.blauBlueSecondary

let textBrand = BlauColors.palette.blauBluePrimary

let textLinkDanger = BlauColors.palette.blauRed | BlauColors.palette.blauRed
let textLinkSnackbar = BlauColors.palette.blauPurple30 | BlauColors.palette.blauPurple30
let textActivated = BlauColors.palette.blauBlueSecondary | BlauColors.palette.blauBlueSecondary
let textBrand = BlauColors.palette.blauBluePrimary | BlauColors.palette.blauBluePrimary
let control = BlauColors.palette.grey2 | BlauColors.palette.darkModeGrey6

let controlActivated = BlauColors.palette.blauBlueSecondary

let controlActivated = BlauColors.palette.blauBlueSecondary | BlauColors.palette.blauBlueSecondary
let controlInverse = BlauColors.palette.blauBluePrimary30 | BlauColors.palette.darkModeGrey6

let controlActivatedInverse = BlauColors.palette.white | BlauColors.palette.blauBlueSecondary

let controlError = BlauColors.palette.blauRed

let controlError = BlauColors.palette.blauRed | BlauColors.palette.blauRed
let barTrack = BlauColors.palette.grey2 | BlauColors.palette.darkModeGrey6

let loadingBar = BlauColors.palette.blauBlueSecondary | BlauColors.palette.blauBluePrimary

let loadingBarBackground = BlauColors.palette.blauBlueSecondary10 | BlauColors.palette.darkModeGrey

let toggleAndroidInactive = BlauColors.palette.grey2 | BlauColors.palette.grey5

let toggleAndroidBackgroundActive = BlauColors.palette.blauBlueSecondary10 | BlauColors.palette.blauBlueSecondary30

let iosControlKnob = BlauColors.palette.white | BlauColors.palette.grey2

let divider = BlauColors.palette.grey2 | BlauColors.palette.white.withAlphaComponent(0.05)

let dividerInverse = BlauColors.palette.white.withAlphaComponent(0.2) | BlauColors.palette.white.withAlphaComponent(0.05)

let navigationBarDivider = BlauColors.palette.blauBluePrimary | BlauColors.palette.darkModeBlack

let badge = BlauColors.palette.blauRed

let feedbackErrorBackground = BlauColors.palette.blauRed

let badge = BlauColors.palette.blauRed | BlauColors.palette.blauRed
let feedbackErrorBackground = BlauColors.palette.blauRed | BlauColors.palette.blauRed
let feedbackInfoBackground = BlauColors.palette.grey6 | BlauColors.palette.darkModeGrey

let brand = BlauColors.palette.blauBluePrimary

let brand = BlauColors.palette.blauBluePrimary | BlauColors.palette.blauBluePrimary
let brandHigh = BlauColors.palette.blauBlueSecondary | BlauColors.palette.white.withAlphaComponent(0.05)

let inverse = BlauColors.palette.white | BlauColors.palette.grey2

let neutralHigh = BlauColors.palette.grey6 | BlauColors.palette.grey2

let neutralMedium = BlauColors.palette.grey5

let neutralMediumInverse = BlauColors.palette.grey5

let neutralMedium = BlauColors.palette.grey5 | BlauColors.palette.grey5
let neutralMediumInverse = BlauColors.palette.grey5 | BlauColors.palette.grey5
let neutralLow = BlauColors.palette.grey1 | BlauColors.palette.darkModeGrey6

let neutralLowAlternative = BlauColors.palette.grey2 | BlauColors.palette.darkModeGrey6

let textPrimary = BlauColors.palette.grey6 | BlauColors.palette.grey2

let textPrimaryInverse = BlauColors.palette.white | BlauColors.palette.grey2

let textSecondary = BlauColors.palette.grey5 | BlauColors.palette.grey4

let textSecondaryInverse = BlauColors.palette.blauBluePrimary20 | BlauColors.palette.grey4

let error = BlauColors.palette.blauRed

let textError = BlauColors.palette.blauRed

let error = BlauColors.palette.blauRed | BlauColors.palette.blauRed
let textError = BlauColors.palette.blauRed | BlauColors.palette.blauRed
let textErrorInverse = BlauColors.palette.white | BlauColors.palette.blauRed

let success = BlauColors.palette.blauGreen

let warning = BlauColors.palette.blauYellow

let promo = BlauColors.palette.blauPurple

let highlight = BlauColors.palette.blauBluePrimary

let success = BlauColors.palette.blauGreen | BlauColors.palette.blauGreen
let warning = BlauColors.palette.blauYellow | BlauColors.palette.blauYellow
let promo = BlauColors.palette.blauPurple | BlauColors.palette.blauPurple
let highlight = BlauColors.palette.blauBluePrimary | BlauColors.palette.blauBluePrimary
let successLow = BlauColors.palette.blauGreen10 | BlauColors.palette.darkModeGrey6

let warningLow = BlauColors.palette.blauYellow10 | BlauColors.palette.darkModeGrey6

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

let promoLow = BlauColors.palette.blauPurple10 | BlauColors.palette.darkModeGrey6

let brandLow = BlauColors.palette.blauBlueSecondary10 | BlauColors.palette.darkModeGrey6

let successHigh = BlauColors.palette.blauGreen70 | BlauColors.palette.blauGreen30

let warningHigh = BlauColors.palette.blauYellow70 | BlauColors.palette.blauYellow40

let errorHigh = BlauColors.palette.blauRed70 | BlauColors.palette.blauRed40

let promoHigh = BlauColors.palette.blauPurple | BlauColors.palette.blauPurple30

let successHighInverse = BlauColors.palette.blauGreen70

let warningHighInverse = BlauColors.palette.blauYellow70

let errorHighInverse = BlauColors.palette.blauRed70

let promoHighInverse = BlauColors.palette.blauPurple

let successHighInverse = BlauColors.palette.blauGreen70 | BlauColors.palette.blauGreen70
let warningHighInverse = BlauColors.palette.blauYellow70 | BlauColors.palette.blauYellow70
let errorHighInverse = BlauColors.palette.blauRed70 | BlauColors.palette.blauRed70
let promoHighInverse = BlauColors.palette.blauPurple | BlauColors.palette.blauPurple
let textNavigationBarPrimary = BlauColors.palette.white | BlauColors.palette.grey2

let textNavigationBarSecondary = BlauColors.palette.blauBlueSecondary20 | BlauColors.palette.grey4

let textNavigationSearchBarHint = BlauColors.palette.blauBlueSecondary20 | BlauColors.palette.grey4

let textNavigationSearchBarText = BlauColors.palette.white | BlauColors.palette.grey2

let textAppBar = BlauColors.palette.grey5

let textAppBar = BlauColors.palette.grey5 | BlauColors.palette.grey5
let textAppBarSelected = BlauColors.palette.blauBlueSecondary60 | BlauColors.palette.grey2

let customTabsBackground = BlauColors.palette.blauBluePrimary | BlauColors.palette.darkModeBlack

let tagTextPromo = BlauColors.palette.blauPurple | BlauColors.palette.blauPurple30

let tagTextActive = BlauColors.palette.blauBluePrimary

let tagTextInactive = BlauColors.palette.grey5

let tagTextActive = BlauColors.palette.blauBluePrimary | BlauColors.palette.blauBluePrimary
let tagTextInactive = BlauColors.palette.grey5 | BlauColors.palette.grey5
let tagTextSuccess = BlauColors.palette.blauGreen70 | BlauColors.palette.blauGreen30

let tagTextWarning = BlauColors.palette.blauYellow70 | BlauColors.palette.blauYellow40

let tagTextError = BlauColors.palette.blauRed70 | BlauColors.palette.blauRed40

let tagBackgroundPromo = BlauColors.palette.blauPurple10 | BlauColors.palette.darkModeGrey6

let tagBackgroundActive = BlauColors.palette.blauBlueSecondary10 | BlauColors.palette.darkModeGrey6

let tagBackgroundInactive = BlauColors.palette.grey1 | BlauColors.palette.darkModeGrey6

let tagBackgroundSuccess = BlauColors.palette.blauGreen10 | BlauColors.palette.darkModeGrey6

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),
BlauColors.palette.grey6.withAlphaComponent(0.4) | BlauColors.palette.grey6.withAlphaComponent(0.4),
BlauColors.palette.grey6.withAlphaComponent(0.7) | BlauColors.palette.grey6.withAlphaComponent(0.7)
],
stops: [0, 0.3, 1],
angle: 180
))
}

public struct BlauColorPalette {
Expand Down
Loading

0 comments on commit f6eed12

Please sign in to comment.