Re: How do we redefine system colors
Re: How do we redefine system colors
- Subject: Re: How do we redefine system colors
- From: "Drake, Ted via Accessibility-dev" <email@hidden>
- Date: Wed, 19 Jul 2023 01:15:11 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intuit.com; dmarc=pass action=none header.from=intuit.com; dkim=pass header.d=intuit.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1qTtMcy/1j2P2wIgaDQSFcDc9ix2QGeYVVz4RgcMxaw=; b=bIR8Z/vqnuXk9V+/EzQ73AfNrxznxmD8QhYOVX6253SE2AH9KW5/MJ1QUpq6M4JzNENRHhh2i691R1yj5Jvco+gw/EZqoIZTCuOVXPqe+vOSZ0ZmP38DlD1ttg0M+Z1xv4ZST6Unxnvh5ALdGjd94XPAavkJNVylVfQS5fyztNOAZadDKf91AT7V0wJ5I4P6HwsGgMA/bMq9byEsNGDy4dCvS5yYx/BgzwTOXlyvrQtt6YF2v1HBc6vl0wurcLxj2hk76H1JQjWvNGa58Kqqsuiae08NHXtqznTBOcWqSq5obmvIglpH3/In0Wj9PWuQVXNpa/F0NduXaprYaJleuw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KWGAcEAxQvAFPlnXlt17Ogy7mzcN8YGGzEceU3OADedR81GsXA7f5WYhj0FJhscOlvB26gqYq+v+I1wfHCX1eI42CawWPB4thX+OJeODrhdFlJhPNe7y44Zu/jUQ+BdLQ5g4iD/QLyfmtIkqlLrOXi/iIZ5Vak/vnJW4UQt/W7zfI5UaMOamQIMg08ideaHO628IQ4PWxo7A0UWW38PGHN8tn4LNYadpHRkwwwya1OhMQbjX1M7SUHu26ep6qAsYmAGi4EFpF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VXgtZbnmJE42igcnFedU1jP94UBZ Cc7s1Iq36JfmkWVN2yAj0oTvXOvNrCkbPheFojCwQ84AeDoDu04PqieiLokSs2Yndq+/MP4G LFmwv26uGKtOy68AbV0yv+/olbg9zoz/pEHYiphtIOIjvhpw60bMBKWqGEvhoyvOazgWxa3O XkklMFBYBe+nnRdma6rV/GwA/7ygsj7Hfk1BuxnWbjidaRfkN6N+NxwaZiNjfJ4Uspu99xlI hR2XiCipZRBRTc2Azg+tnzUQ1wnEbcmwtjrQdTtQ0dbWItUs4VkWUtxjIQLH7GJlO81GkTKp gtMCgb3ocRTbrVVQGBgoAl+q3QYp16JGb7fqFFgL3a79EepgEG86NTrvZv4Uso5dYzTYJJ6P /DNbktnLZSTtUOZaY4H+sZR9CrY1a9CC4kHVjiVmgPLpt3TU7lutry+vE49euqcJsHwN87n4 nASkpRsSo3d1j1AcOD0ZVX+lSVKV/NFgjF24Vb/dx0q7f8TL3kPWmKT00vidKpp7EaDtfAU/ i+NZpKC7voLHfoG4xOwwriMqMiYUU2QYkQoJI2SliOqsXEJsnjsfHaau/aIP73HTMtSgrEcw 8+tfjIVbB9B2yQKwzFaULqKgLQk2TEjOJNObmf4uQVwI8RX7c8wDQotQ==
- Thread-topic: How do we redefine system colors
Thank you Chris
If I understand correctly. We cannot overwrite the standard colors. But we
could define our own color, like “intuitRed”. We could then use
UIColor.intuitRed and the operating system will modify that color when someone
requests dark mode and/or increased contrast.
Our initial concern wasn’t about the colors not adapting to user preferences.
It was about the default red, and other colors, not providing 4.5:1 contrast in
the default state.
Thank you for your help.
Ted
From: Chris Fleizach <email@hidden>
Date: Friday, July 14, 2023 at 12:57 PM
To: "Drake, Ted" <email@hidden>
Cc: "email@hidden" <email@hidden>
Subject: Re: How do we redefine system colors
The system colors do change automatically when increase contrast is enabled.
We have different colors for light and dark mode, but there’s no algorithm,
it’s just a different RGB value.
Are you seeing specific examples where Increase Contrast gives you lower
contrast colors in cases? It’s possible it could be a bug.
To answer your first question directly - there’s no way to override UIColor
values, but you could add your own colors and have those respond to increase
contrast.
On Jul 14, 2023, at 11:32 AM, Drake, Ted <email@hidden> wrote:
Hi Chris
We’d like to redefine UIColor.red. I’m just using red as an example. But we
want to maintain the flexibility of red using a different hue/value when in
dark mode and/or with high contrast setting. What I’ve seen is how to redefine
red, but not what is needed to modify the dark and accessible versions. Is this
something the UIColor does automatically? Is there an algorithm that takes a
new red hue and creates the multiple versions?
Thank you
Ted
From: Chris Fleizach <email@hidden>
Date: Thursday, July 13, 2023 at 3:10 PM
To: "Drake, Ted" <email@hidden>
Cc: "email@hidden" <email@hidden>
Subject: Re: How do we redefine system colors
Hi
Are you asking how to create new colors or how to replace the colors you get
from things like UIColor.red ?
Thanks
On Jul 12, 2023, at 3:18 PM, Drake, Ted via Accessibility-dev
<email@hidden> wrote:
Hi everyone
Does Apple have a tutorial on how to redefine the system colors to maintain
flexibility but also allow us to use our color palettes and increase contrast?
I found the documentation for defining
colors<https://developer.apple.com/documentation/swiftui/color>, but I don’t
see how you would define the colors for Red (Default light), Red (Default
Dark), red (accessible light), and red (accessible dark). I would expect it is
like redefining the font family in Dynamic Text.
Thank you
Ted Drake | Accessibility and Inclusive Design Leader, Intuit Design System
Cell Phone: (650) 245-4825
Pronouns: He/Him/His | Work Style
Guide<https://www.last-child.com/working-style-for-ted-drake/>
Email: email@hidden<mailto:email@hidden>
Intuit products are more than web, desktop, and mobile applications. We build
the products that enable people to live independent lives. They manage their
finances, start businesses, hire employees, and develop their careers. Our goal
within the Intuit Accessibility team is to ensure our products reach everyone,
regardless of their physical, sensory, or cognitive ability.
Intuit | Powering Prosperitytm
<image001.png>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list
(email@hidden<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden<mailto:email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden