Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark Mode 🎉 #644

Merged
merged 27 commits into from Jul 8, 2019
Merged

Dark Mode 🎉 #644

merged 27 commits into from Jul 8, 2019

Conversation

karaggeorge
Copy link
Member

@karaggeorge karaggeorge commented Mar 10, 2019

Closes #478

Support dark mode and switching between live/dark while the windows are open 😄

Screen Shot 2019-03-10 at 3 13 21 AM

Kapture 2019-03-10 at 3 11 52

@karaggeorge
Copy link
Member Author

This should wait for #643 since some styles introduced in that PR will need the dark/light css vars

@sindresorhus
Copy link
Member

It looks beautiful! ❤️

@sindresorhus
Copy link
Member

The blue link color is not readable enough:

Screen Shot 2019-03-10 at 21 31 13

@sindresorhus
Copy link
Member

sindresorhus commented Mar 10, 2019

This should be dark:

Screen Shot 2019-03-10 at 21 32 13

@skllcrn
Copy link
Member

skllcrn commented Mar 10, 2019

I've been experimenting with making all blue elements white when in dark mode @sindresorhus, I think it's a decent solution since we rarely if ever rely on colour alone to indicate states. Thoughts?

@sindresorhus
Copy link
Member

@skllcrn I think that would make it look very bland. I like the blue, it just need to be slightly more legible.

@karaggeorge
Copy link
Member Author

I agree that I like the blue. But yeah the one we are using is a bit too much for dark mode. I already added some variables for that as well, so it should be pretty easy to switch it

@karaggeorge
Copy link
Member Author

@skllcrn @sindresorhus Gave the editor slider a dark mode version and switched the blue with the "kap-light" color from the Abstract palette for dark mode:

Screen Shot 2019-03-10 at 3 56 29 PM

let me know if that makes it more legible or if we need to go a bit lighter than that

@sindresorhus
Copy link
Member

I feel like the blue links could still be a bit more legible.

@sindresorhus
Copy link
Member

The toggle component in light mode is broken:

Screen Shot 2019-03-14 at 23 09 17

@sindresorhus
Copy link
Member

The tab here are broken and moves when you click them:

Screen Shot 2019-03-14 at 23 09 58

@sindresorhus
Copy link
Member

No visible text on the button here:

Screen Shot 2019-03-14 at 23 10 41

@sindresorhus
Copy link
Member

The links here are no longer colored, which makes it hard to see that they are links:

Screen Shot 2019-03-14 at 23 11 36

@karaggeorge
Copy link
Member Author

@skllcrn anything else left for this one?

@skllcrn
Copy link
Member

skllcrn commented Jun 17, 2019

We've got some styling issues left @karaggeorge:

  • The blue isn't legible enough on the dark background, especially for small regular fonts, we can either go monochrome or tweak our palette to pass accessibility tests.
  • The plugin configuration window spawns 2 scrollbars
  • Window backgrounds globally seem to be 10-20% darker that they are intended to be and feels inconsistent with other apps, are you seeing that?

@karaggeorge
Copy link
Member Author

@skllcrn

The blue isn't legible enough on the dark background, especially for small regular fonts, we can either go monochrome or tweak our palette to pass accessibility tests.

I'm thinking pick a different blue? Can we try some hexcodes?

The plugin configuration window spawns 2 scrollbars

I'm not seeing this locally. I'll try to download the built version and see if there's something there

Window backgrounds globally seem to be 10-20% darker that they are intended to be and feels inconsistent with other apps, are you seeing that?

What should the bg color be? I think we set it together on a call from Abstract

@karaggeorge
Copy link
Member Author

@sindresorhus This is ready for a final review. @skllcrn and I got on a call and fixed almost everything.

There's two things left, but we can handle them in separate PRs:

  • About window needs a dark mode title bar
  • Changing the main bar transition when going between regular/advanced from a slide animation to a fade in/out

I'll work on those in the next few days

@sindresorhus
Copy link
Member

About window needs a dark mode title bar

It already has that when built for production:
Screen Shot 2019-07-08 at 22 53 15

@sindresorhus
Copy link
Member

It's not obvious that the links in the about window are links. They're just white like the other text. It was clearer when they were blue.

Other than that, this looks very good.

@karaggeorge karaggeorge merged commit c0f357a into master Jul 8, 2019
@karaggeorge karaggeorge deleted the dark-mode branch July 8, 2019 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dark Mode support
5 participants