menu
up-caret
down-caret

Stark

Design and build products that are accessible, ethical, and inclusive.

# Support

Get help or give feedback on Stark

Trending conversations
Bugs on Sketch 50.2
@cedsmail · 16d
Landmark and Role markings
@instantpot · 28d
Stark 2.2 contrast not reflecting opacity
@uhl · 1d
Recent update 'bugs'
@eliorh · 34d
Testing contrast for multiple combinations
@chrissmithux · 42d

Stark 2.2 contrast not reflecting opacity

Stark/Support · February 7, 2019 at 9:47pm

Stark 2.2 contrast not reflecting opacity

February 7, 2019 at 9:47pm

Stark doesn't seem to honor the opacity of objects when calculating contrast. With text on an object with 50% opacity (on an artboard with solid white background), Stark seems to only take the object's color into account and not its opacity.

I swear it accounted for opacity in prior versions. Is this a known issue?


February 8, 2019 at 1:04am

Hmm I don't believe it did - computing contrast with opacity is very hard. :P

Edited
like-fill
1
  • reply
  • like

February 8, 2019 at 1:19pm

Hey @uhl like @kev said, unfortunately we never have as it's pretty...uncertain and worse, inaccurate in our opinion. The questions that come up are:

  • What's the background color?
  • Do we assume the color based on the background color, a white, a black?

You get what I mean? Please feel free to add to our suggestions though! https://stark.nolt.io

Edited
  • reply
  • like

Hey @uhl like @kev said, unfortunately we never have as it's pretty...uncertain and worse, inaccurate in our opinion. The questions that come up are:

  • What's the background color?
  • Do we assume the color based on the background color, a white, a black?

You get what I mean? Please feel free to add to our suggestions though! https://stark.nolt.io

Hey @[cat]! Sorry, I probably mis-remembered that! 😞

I still think it'd be useful. Many Material Design guidelines for font colors have some level of transparency (e.g., input text = #000000, 87%).

I'd expect it to work by accounting for the artboard background color. If the artboard bg color isn't set (i.e., transparent) then all bets are off.

Edited
  • reply
  • like

@uhl nope, you're right. It slipped my mind. Sorry about that! We did have it. It's been a while lol. It didn't make it over with the new set up but: Good news, It'll be back in the next release ;) if both colors have less than 100% opacity, it obviously wont work, but if just one does, it will by us taking both colors and mixing them.

like-fill
2
  • reply
  • like

TIL: Don't answer support first thing in the morning before coffee and while sick. :facepalm:

like-fill
1
  • reply
  • like

@Cat No worries, good to hear it's coming back! 👏

Thanks for the quick responses!

Edited
like-fill
1
  • reply
  • like

@Cat No worries, good to hear it's coming back! 👏

Thanks for the quick responses!

@uhl For sure! Lots in the pipeline. I and we appreciate you dropping in to share thoughts with us. Thanks for the support.

like-fill
1
  • reply
  • like

March 1, 2019 at 2:21pm

@uhl just a heads up in case you didn't see yet: checking contrast on a layer with opacity is back :)

  • reply
  • like

March 21, 2019 at 4:48am

Hi @cat I believe there's a bug where it doesn't calculate if the opacity is set via text style and not the color of the text directly. See image. The two text objects selected are the same color but one has an opacity of 70% set via text style yet contrast shows 1:1

  • reply
  • like

March 21, 2019 at 7:42pm

Hey @lasko thanks for sharing this! We ran into a bug last week with opacity that was fixed. Ensuring this is not something different. Will get back to you soon about it! Want to toss an email my way that I can reach you so we can take it off here if I need to ask more questions?

  • reply
  • like