moderneinc / moderne-docs

Moderne SaaS documentation as Gitbook contents
https://docs.moderne.io
2 stars 2 forks source link

Design announcement banner #146

Closed mike-solomon closed 2 weeks ago

mike-solomon commented 2 weeks ago

Right now, at the top of our docs, we have an announcement banner for the code remix summit:

Image

Jonathan requested that we improve the colors of this. I can update the text color, background color, and I can add HTML inside of it to change the colors of the individual letters such as in:

Image

Related Slack thread: https://moderneinc.slack.com/archives/C045V3G92K1/p1730388453381589

LindsayAuch commented 2 weeks ago

@mike-solomon

Taking the gradient background from the branding and applying that to the background color. https://docs.google.com/presentation/d/1yi8Ld7rwEPreu-07V7X9CSROFdJfdPypsEWlwb9UT4k/edit?usp=sharing

Screenshot 2024-11-04 at 2 43 33 PM

Hex #44A0DB and #194EFD

Screenshot 2024-11-04 at 2 40 02 PM

See the example from this website that does the same background treatment

Screenshot 2024-11-04 at 2 41 42 PM

Example dark mode and light mode versions

Screenshot 2024-11-04 at 2 38 18 PM Screenshot 2024-11-04 at 2 39 29 PM
mike-solomon commented 2 weeks ago

@LindsayAuch Thanks for the suggestions!

Unfortunately, that is quite difficult to read and fails accessibility standards on the lighter end of the spectrum: https://webaim.org/resources/contrastchecker/

image

Can you please suggest some more accessible colors?

For perspective - here are the current colors which are fine:

image

LindsayAuch commented 2 weeks ago

How about #b12ade and #2546f0?

Screenshot 2024-11-05 at 4 00 41 PM

https://venngage.com/tools/accessible-color-palette-generator

Screenshot 2024-11-05 at 4 01 20 PM Screenshot 2024-11-05 at 4 05 21 PM Screenshot 2024-11-05 at 4 05 43 PM
mike-solomon commented 2 weeks ago

Thanks @LindsayAuch - that's much better.