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
Add dark mode #4722
Comments
FYI, CSS can already be customized so technically this is already possible. |
Hi @jessesuen I think @StianOvrevage was referring more to a toggle feature where the ui can switch from one state to another at the user wish. Similar to what Grafana or Kibana offers. Can't promise anything but if you give me a couple of tips on where to find these css's I can maybe help out. I am asking because I know argo keeps all it's ui components in a different project and I am not sure how the glue between the argo app controller (this repo I presume) and the ui work. |
+1 |
I've created a stylish theme for ArgoCD with my dark mode style I use for everything. |
+1 |
3 similar comments
+1 |
+1 |
+1 |
I'll work on this! |
@saumeya That stylish theme also applies to Argo Workflows BTW. |
Looks pretty cool @theNewFlesh, is it applied to argo using configmap? |
@saumeya Stylish is a browser extension for chrome and brave. It matches URL's based on regex and or domain and injects a custom CSS that overrides the page. That custom CSS is found as a Stylish package on userstyles.org, which is also how you install it. Essentially, I copy the CSS from the ArgoCD page, replace the color values with my own theme, and paste that CSS into a new stylish package, then upload it to userstyles.org. |
Ah, thanks for sharing this info. I'll try it out. I was thinking more from the perspective of having a toggle within the application. |
Yeah, that would be great. Until then, this is what I use. I recommend you copy the CSS and go from there. Stylish will disable the theme toggle if the URL of ArgoCD doesn't match what's in the stylish theme settings. So, you will probably have to configure that to some regex and/or domain where you are running Argo. Click Stylish menu icon then [kebab] then edit button of the theme to see the CSS and change the URLs. |
* feat: enable dark theme in ui Signed-off-by: saumeya <saumeyakatyal@gmail.com> * add more theme styles Signed-off-by: saumeya <saumeyakatyal@gmail.com> * remove package lock Signed-off-by: saumeya <saumeyakatyal@gmail.com> * improvements Signed-off-by: saumeya <saumeyakatyal@gmail.com> * improvements Signed-off-by: saumeya <saumeyakatyal@gmail.com> * cleanup Signed-off-by: saumeya <saumeyakatyal@gmail.com> * fix review comments Signed-off-by: saumeya <saumeyakatyal@gmail.com> * update argo-ui sha Signed-off-by: saumeya <saumeyakatyal@gmail.com> * update moment yarn.lock Signed-off-by: saumeya <saumeyakatyal@gmail.com> update moment yarn.lock Signed-off-by: saumeya <saumeyakatyal@gmail.com> update moment yarn.lock Signed-off-by: saumeya <saumeyakatyal@gmail.com> * fix review comments Signed-off-by: saumeya <saumeyakatyal@gmail.com> Signed-off-by: saumeya <saumeyakatyal@gmail.com>
I guess it will be great to automatically detect OS light/dark mode and use it for the theme in ArgoCD. I will very much like such feature. (Github works in similar way) |
@sergeyshevch can you open an enhancement request for that? |
* feat: enable dark theme in ui Signed-off-by: saumeya <saumeyakatyal@gmail.com> * add more theme styles Signed-off-by: saumeya <saumeyakatyal@gmail.com> * remove package lock Signed-off-by: saumeya <saumeyakatyal@gmail.com> * improvements Signed-off-by: saumeya <saumeyakatyal@gmail.com> * improvements Signed-off-by: saumeya <saumeyakatyal@gmail.com> * cleanup Signed-off-by: saumeya <saumeyakatyal@gmail.com> * fix review comments Signed-off-by: saumeya <saumeyakatyal@gmail.com> * update argo-ui sha Signed-off-by: saumeya <saumeyakatyal@gmail.com> * update moment yarn.lock Signed-off-by: saumeya <saumeyakatyal@gmail.com> update moment yarn.lock Signed-off-by: saumeya <saumeyakatyal@gmail.com> update moment yarn.lock Signed-off-by: saumeya <saumeyakatyal@gmail.com> * fix review comments Signed-off-by: saumeya <saumeyakatyal@gmail.com> Signed-off-by: saumeya <saumeyakatyal@gmail.com>
How can I set the dark mode as the default theme when starting the ArgoCD UI? |
Summary
Add a dark mode to web console.
Motivation
Winter is coming up north and my eyes are hurting.
Proposal
CSS?
The text was updated successfully, but these errors were encountered: