ColorCompatibility icon indicating copy to clipboard operation
ColorCompatibility copied to clipboard

Mac Catalyst colors can be different

Open michaellenaghan opened this issue 4 years ago • 2 comments

Just to make sure you're aware: Mac Catalyst colors can be different; here's my list of the ones that are (light mode / dark mode):

// .systemBackground: #FFFFFFFF rgba(255, 255, 255, 1.00) / #1E1E1EFF rgba(30, 30, 30, 1.00) // .secondarySystemBackground: #ECECECFF rgba(236, 236, 236, 1.00) / #323232FF rgba(50, 50, 50, 1.00) // .tertiarySystemBackground: #D5D5D5FF rgba(213, 213, 213, 1.00) / #464646FF rgba(70, 70, 70, 1.00)

// .systemGroupedBackground: #FFFFFFFF rgba(255, 255, 255, 1.00) / #1E1E1EFF rgba(30, 30, 30, 1.00) // .secondarySystemGroupedBackground: #ECECECFF rgba(236, 236, 236, 1.00) / #323232FF rgba(50, 50, 50, 1.00) // .tertiarySystemGroupedBackground: #D5D5D5FF rgba(213, 213, 213, 1.00) / #464646FF rgba(70, 70, 70, 1.00)

// .separator: #00000019 rgba(0, 0, 0, 0.10) // #FFFFFF19 rgba(255, 255, 255, 0.10) // .opaqueSeparator: #CCCCCCFF rgba(204, 204, 204, 1.00) / #FFFFFF19 rgba(255, 255, 255, 0.10)

// .label: #000000D8 rgba(0, 0, 0, 0.85) / #FFFFFFD8 rgba(255, 255, 255, 0.85) // .secondaryLabel: #0000007F rgba(0, 0, 0, 0.50) / #FFFFFF8C rgba(255, 255, 255, 0.55) // .tertiaryLabel: #0000003F rgba(0, 0, 0, 0.25) / #FFFFFF3F rgba(255, 255, 255, 0.25) // .quaternaryLabel: #00000019 rgba(0, 0, 0, 0.10) / #FFFFFF19 rgba(255, 255, 255, 0.10)

// .placeholderText: #0000003F rgba(0, 0, 0, 0.25) / #FFFFFF3F rgba(255, 255, 255, 0.25)

// .systemGreen: #28CD41FF rgba(40, 205, 65, 1.00) / #32D74BFF rgba(50, 215, 75, 1.00)

Of course, it's possible I've made transcription errors!

michaellenaghan avatar Oct 07 '20 16:10 michaellenaghan

Thank you for noting this! I'll look further into it. However, I don't think that Catalyst color differences matter for the purposes of this library since Catalyst is iOS 13+ anyway and can use the new UIColor system colors, but please correct me if I'm wrong!

noahsark769 avatar Oct 27 '20 21:10 noahsark769

Use the info as you like. Your library saved me time by enumerating the values; I was just trying to repay the favour. :-)

michaellenaghan avatar Oct 27 '20 21:10 michaellenaghan