RedMadRobot / figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project
MIT License
730 stars 114 forks source link

High contrast for colors #151

Closed alexey1312 closed 2 years ago

alexey1312 commented 2 years ago

Hey! Is there an option for color to specify a high contrast color? If not, what is the best way to do it?

CleanShot 2022-02-21 at 17 35 50@2x
subdan commented 2 years ago

Unfortunately, no. This is very rarely used in iOS apps.

alexey1312 commented 2 years ago

It is, a good practice to make the interface more accessible. WCAG has recommendations on this. It seems to be cool if the utility has this feature.

subdan commented 2 years ago

Yes, I agree. I've mark this as a feature request. But I've never seen designers to provide a high contrast color palette.

subdan commented 2 years ago

Do you work on a project that support high contrast colors?

alexey1312 commented 2 years ago

We are now moving to a new palette of colors in which this support will be)

subdan commented 2 years ago

Could you please show or tell me how your designers will support high contrast color palette in Figma?

For example, there is a button_primary color. Will it be represented in the list of color styles in four variants?

Or will each color palette be in a separate Figma file?

alexey1312 commented 2 years ago

Each color palette will be in a separate Figma file:

 light
 dark
 light_high_contrast
 dark_high_contrast

I think, we need to add 2 optional parameters, identifiers of the file containing light_high_contrast color palette and dark_high_contrast color palette.

subdan commented 2 years ago

I think, we need to add 2 optional parameters, identifiers of the file containing light_high_contrast color palette and dark_high_contrast color palette.

Yes. Do you want to implement it by yourself? ☺️

alexey1312 commented 2 years ago

yep, i think i can do it

subdan commented 2 years ago

Closed in #157