, 4 tweets, 2 min read
My Authors
Read all threads
❇️ A short story about the color green. We wanted a very specific, very vibrant green color at the top of panic.com/next/, but when we specified this green as a RGB or hex color in our css, it produced a… muted green. We could not get the green to copy across correctly!
✳️ Then we realized: our green is outside the sRGB color space of a web page! We forgot that was even a thing. Since images support color profiles, Tim's first amazing workaround was to just fill the text with a tiling image of our green… Code that says background-image: url(
✅ …but Dean, a wonderful WebKit person, dropped some knowledge. In CSS + Safari you can specify a color with a color space! Check out his CodePen — codepen.io/hashtag_dino/p… — that's RGB red/green on the outside, P3 red/green on the inside. (Note: no difference on a sRGB screen!)
☘️ So now, we're using that magic CSS, and then falling back to the ol' tiling image if your browser doesn't support it. And, uh, that's the whole story of our intense green. Thank u A code snippet showing the CSS color defined in an h1 block, and the tiling image in a @supports not (color: color(display-p3)) block.
Missing some Tweet in this thread? You can try to force a refresh.

Enjoying this thread?

Keep Current with Panic

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!