swc-project / website

Documentation for the SWC project.

Home Page:https://swc.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dark mode for logos?

trivikr opened this issue · comments

The logos shown on SWC website does not follow dark mode as shown in the screenshot below:

Screenshot

Screen Shot 2021-09-08 at 6 14 03 PM

It would be good to add dark mode for logos as shown in the screenshot below:

Screenshot

Screen Shot 2021-09-08 at 6 32 00 PM

How did you do that? I want to do it, but I'm not sure how can I change colors of logo.

How did you do that?

I manually changed the URL of the logos to ones which support dark mode.
Deno and NextJS have assets which work in both modes. Strapi doesn't. ParcelJS needed no changes.

I've posted an example PR to use dark mode supported logo for Deno at #86
If it looks good and gets merged, I'll post another PR for NextJS.

I've posted an example PR to use dark mode supported logo for Deno at #86

Just noticed that the fix is not straightforward as explained in #86 (comment)

If we don't want to wait for Strapi to provide assets which work in both light/dark mode, the solution is to use different URLs based on mode. This should be configurable (and optional) in docusaurus.config.js, but the fix is not straightforward.

Assets if anyone is picking up this task:

@trivikr Taking this up 🚀