-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[dashboard] Implement a dark theme #3901
Conversation
02e8440
to
7fb9bef
Compare
🎰 👍 started the job as gitpod-build-jx-dark-theme.3 |
🎰 👍 started the job as gitpod-build-jx-dark-theme.4 |
🎰 👍 started the job as gitpod-build-jx-dark-theme.5 |
🎰 👍 started the job as gitpod-build-jx-dark-theme.6 |
7fb9bef
to
415e5d7
Compare
🎰 👍 started the job as gitpod-build-jx-dark-theme.8 |
415e5d7
to
e08a93d
Compare
This comment has been minimized.
This comment has been minimized.
e08a93d
to
c1f70bc
Compare
e010f5e
to
73a39fc
Compare
Can we add a "System" option to "Preferences" -> "Color Schema" (like Vercel does it)? I would love this because macOS changes my desktop to "light" every morning and to "dark" every eventing (setting: "auto") and I would love Gitpod to blend in. |
Sure. The value already defaults to your System preference, but we could add an extra option that removes any forced theme:
|
Strong vote for adding a system default option! This was already the plan! 🌙 |
Alrighty, done! ✅ |
78565cc
to
4c2ce5f
Compare
/werft run 👍 started the job as gitpod-build-jx-dark-theme.20 |
Taking a |
4c2ce5f
to
c9db3d4
Compare
These are the initial specs for the inputs which are using a slightly different stroke (border color and width) on the product right now. For example, we decided to go for |
c9db3d4
to
e4d0e73
Compare
Update: Styled all inputs + other minor improvements. Starting to run out of things that don't look awesome. 😇 Would love to merge this soon 🚀 because the PR touches many places in the UI and thus has a high risk of conflicts. |
Thanks for resolving the conflicts and updating the input styles @jankeromnes! 🙏 Looks good, getting better and better. 🌟 Will take another look now with an old fashioned on the side. 🥃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pushing this through the finish line @jankeromnes! 🏁
Left a few comments below covering most of the pages. Once we have these changes in place we can continue tackling the rest of the product. 😅
Cross-posting here for visibility that the amazing @aledbf is removing tailwind.output.css
in #3830. Maybe we should add this file to .gitignore
but this is certainly out of the scope of this PR.
@@ -728,7 +728,7 @@ function ManageTeamModal(props: { | |||
|
|||
return (<Modal visible={true} onClose={props.onClose}> | |||
<h3 className="pb-2">Manage Team</h3> | |||
<div className="border-t border-b border-gray-200 mt-2 -mx-6 px-6 py-4 space-y-2"> | |||
<div className="border-t border-b border-gray-200 dark:border-gray-700 mt-2 -mx-6 px-6 py-4 space-y-2"> | |||
<p className="pb-4 text-gray-500 text-base">Add members using their username prefixed by the Git Provider's host.</p> | |||
|
|||
<div className="overscroll-contain max-h-96 overflow-y-auto"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: Can we set the scrollbar shadow to dark everywhere when using dark theme to avoid having scrollbars pop up when having scrollbars visible? See css-scrollbar
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gtsiolis On my mac, all scrollbars are native to the OS (whether in Chrome or Firefox, I can't seem to change anything about their style, but in fact they always look just right whether in light theme or dark theme).
Which OS was this screenshot taken on? Also, does the example from https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color work there? (On my mac, the MDN example shows always the same native scrollbar in Firefox, and the example widget doesn't even load in Chrome).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jankeromnes this is only shown when you have scrollbars always enabled, see relevant docs. Running macOS 10.15.7
. See also relevant article on scrollbars. 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion but needs further research. Leaving as follow-up. 😇
EDIT: #3981
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening the follow-up issue, @jankeromnes! 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯
It looks like in the dark mode version the user is more driven to click on Go to Dashboard instead of Open Workspace, because the white button makes the contrast that much higher, can we do something like make it greyer or make the contrast lower in some way? This may be a bad idea but it just popped into my head looking at the designs. /cc @jankeromnes |
Thanks for noticing @filiptronicek! This will be improved with #3901 (comment). Keep in mind this is still work in progress. 🏁 |
Wow, thank you for the best code review ever @gtsiolis. 🤯 💯 🥇 Will address your feedback this morning. And indeed, good catch @filiptronicek! However, please note that the screenshots posted above are already very outdated. The view the latest state, please use the PR preview: https://jx-dark-theme.staging.gitpod-dev.com/workspaces/ (when it's available, that is -- the PR previews get dismantled after they're unused for 2 hours). |
e4d0e73
to
262d7d4
Compare
Cool, looks way better now, I found this look a bit weird ( |
Thanks! All credits go to @gtsiolis 😇
Ah, indeed, great catch! That's because inputs have a non-transparent background by default in dark theme. However, that looks weird for search bars, so I've specifically fixed the Workspaces search bar, but obviously forgot about the admin panel search bars. Will make a more generic fix for search bars. 😁 Thanks! |
262d7d4
to
bb97f42
Compare
Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
bb97f42
to
c5595ba
Compare
Fixes #3806
How to test:
prefers-color-scheme: dark
works, and any changes are detected & applied automatically)