-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Brand Updates] POS theme updates #14756
base: feature/woo-2.0-brand-updates
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2,6 +2,15 @@ import SwiftUI | |||||
|
||||||
extension Color { | ||||||
|
||||||
static var accent: Color { | ||||||
return Color( | ||||||
UIColor( | ||||||
light: .withColorStudio(.wooCommercePurple, shade: .shade40), | ||||||
dark: .withColorStudio(.wooCommercePurple, shade: .shade30) | ||||||
) | ||||||
) | ||||||
} | ||||||
|
||||||
// MARK: - Background | ||||||
|
||||||
/* POS Background colors are defined in a similar philosophy as system background colors: | ||||||
|
@@ -89,23 +98,11 @@ extension Color { | |||||
|
||||||
// MARK: - Buttons | ||||||
|
||||||
static var posPrimaryButtonBackground: Color { | ||||||
return Color( | ||||||
UIColor( | ||||||
light: .withColorStudio(.wooCommercePurple, shade: .shade50), | ||||||
dark: .withColorStudio(.wooCommercePurple, shade: .shade30) | ||||||
) | ||||||
) | ||||||
} | ||||||
static var posPrimaryButtonBackground: Color = .accent | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the regular app theme, the primary button uses Was the usage of black text here a design decision or just a dev choice? Personally, I think white looks better and gives a better contrast, but that's just a thought.
|
||||||
|
||||||
static var posTextButtonForeground: Color { | ||||||
return Color( | ||||||
UIColor( | ||||||
light: .withColorStudio(.wooCommercePurple, shade: .shade50), | ||||||
dark: .withColorStudio(.wooCommercePurple, shade: .shade30) | ||||||
) | ||||||
) | ||||||
} | ||||||
static var posSecondaryButtonForeground: Color = .accent | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||||||
|
||||||
static var posTextButtonForeground: Color = .accent | ||||||
|
||||||
static var posTextButtonForegroundPressed: Color { | ||||||
return Color( | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated this to match the updated app accent, which is
purple_40
in light theme andpurple_30
in dark theme.This matches the color we use in the last Figma playground files (rNAclWFAdQRw7EXEcsNVai-fi-2533_5542) where we are are using
purple_40
on light theme.