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: Fri, 14 Jul 2023 18:32:12 +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=tW3bZbFTt93OQbRqsHhIeDVjyiZzMtmduhjZVUq7G/s=; b=n0o2igjLtJEHq5CkvVmHXmGOJirbchkT4s6sjW4R/YMuF6jsAwmwjv0jJ/fbpPCo0TGKUPbSxMe4GPkLtU9dtgwUmXc8frHpxqd49OoaPfQKWDhZ+YMwlY6bBRAgtscEAZo8aSWQoeDhf8ItbXCAZvx3+vWuyGscAIQ2cVTpHAbfJkLSp0u69V3AejBqJWBzpT6mXcD8gJMbq7RY1nvBE1OnVakrVeb16dkt1H6AZFwpywolxQxsZLq2hNBWnWIOnozuwZHPaLgMeq31iVrSm2IPpnF0dewZyWI1f9G3VsKKtsK9cE/C3ZdXAT9Wis5y6asXFTiU7JRDdIaFX4xCzg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IRueCKghiV1Apesj0+ys8KvHAdFQGn/R2TeSF1eJTxwAsDS5Nu5ppLZMBKixUBUtzUKq+vihxKUYE76FAcqZHIDSl4EB21BiHD7K/u5fkhNMKcqNMQ3qTnWRuDRQZBXdww6pblvgwqo/awrVuLl+qxMAdog1doNYQ3tJxdzVl91EUdvGHuspuGy9+DYahUc3/ZLActFoGJrWlipKq4nzDLoLjoeeCdWahgiAeh1l9YKX+X4u2HMJ3+0AjhIixpiiVwAQEJ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+V2miF+3lL+qj+zEgF792uq0uE7GtRGsZd0zs=
- Thread-topic: How do we redefine system colors
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