dart-lang / pub-dev

The pub.dev website
https://pub.dev
BSD 3-Clause "New" or "Revised" License
771 stars 142 forks source link

Dark mode for pub.dev #4416

Open vincevargadev opened 3 years ago

vincevargadev commented 3 years ago

It would be great if the pub.dev site supported dark mode (either with or without a switch).

Reading the site at night is annoying, especially if all other sites I need for development already support dark mode (which they do, for example GitHub, YouTube).

As it's (I suppose) a bigger design change, I assume it needs feedback/approval from the design team, but if you would be open to it, I could prepare some of the changes, so most color values can be just plugged in and the feature would get a jump start.

Shweta0617 commented 3 years ago

@vincevargadev I would like to contribute on this issue, please assign to me !!

isoos commented 3 years ago

@Shweta0617: I'm happy to help you, but this is not a small undertaking. Would you share what you'd like to get to do?

vincevargadev commented 3 years ago

@Shweta0617 I can't assign the issue to you, I just opened the issue.

Shweta0617 commented 3 years ago

@isoos I tried dark mode in mobile app, but in websites like pub.dev i never tried dark mode. But, if someone guide me then probably i can complete the issue !! thanks for asking (i searched today about "implementation of dark theme in website")

@vincevargadev Okay, No Problem can you tell me a dart project in which I can contribute?

Fayiz-A commented 3 years ago

JUST A SUGGESTION

This package is really good for implementing dark theme.

vincevargadev commented 3 years ago

@Fayiz-A That's a Flutter package, I don't think that would help with the dark theme for pub.dev.

Pub.dev is a simple HTML+CSS style webpage, so the dark theme changes would be implemented mainly with CSS (AFAIK). I think this guide could be a good start: https://css-tricks.com/a-complete-guide-to-dark-mode-on-the-web/

Fayiz-A commented 3 years ago

@vincevargadev Sorry for my ignorance. I thought it was written in flutter because I saw dart files in app/lib folder.

gmpassos commented 3 years ago

Same situation here. Everything that I use has Dark Mode (GitHub, Terminal, IDE, IntelliJ, Notes...). At night, when we open pub.dev, it's uncomfortable for the eyes.

vandadnp commented 2 years ago

This is by no means a perfect solution and only works if you have a browser with Reader mode such as Safari. What I do is just to open a pub.dev package site and go to reader mode to get this nice dark theme.

https://user-images.githubusercontent.com/759524/154893802-da77945f-8f60-4da2-bc44-1a4488630e25.mov

vincevargadev commented 2 years ago

Just as info, here is the issue for dark mode on the docs, too: https://github.com/dart-lang/pub-dev/issues/3679

AlexV525 commented 1 year ago

I've created a custom dark mode where some of the styles are learned from https://api.flutter.dev. Would like to submit a pull request if capable.

UserStyles: https://userstyles.world/style/15821/pub-dev-dark-mode Gist: https://gist.github.com/AlexV525/57b3514e9412f2a481d858c629a459dc

Apply the style file using Stylus or other user style extensions with the domain pub.dev.

Screenshots

image image
image image
image image
image image
leonidlist commented 6 months ago

+1 upvote

gmpassos commented 2 months ago

Light theme is highly annoying.

IMHO, you should make the Dark theme the default (easier than a switch button).

widgetizer commented 1 month ago

I'd love it if pub.dev had a dark mode. I tell myself it eases eye strain, but it really just makes me feel like Batman.

md-rifatkhan commented 1 month ago

Issue created 3y ago, they might not interested to this.

Light theme is really annoying while everything in dark theme, most of programmer use dark mode..

gmpassos commented 1 month ago

Issue created 3y ago...

In the last three years, the use of Dark mode has increased significantly, making this pub.dev feature even more important.