NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
23.44k stars 2.72k forks source link

Add a dark mode #3538

Open Cocolin67 opened 9 months ago

Cocolin67 commented 9 months ago

Maybe just add a toggle that can switch the theme to dark, since it use Tabler, i guess it should be easy to create that ! My eyes would be pleased thanks, love the proxy manager :)

onurmercury commented 9 months ago

3395

Cocolin67 commented 9 months ago

Oh thanks, I didn't see it

EthyMoney commented 9 months ago

That's just for the docs though right? Is there anything in the works for the app UI itself?

wchorski commented 9 months ago

I have a work around if you're willing to do a bit of css override

here is my blog post about it, but I'll try to give you the short version here

Run the container

spin up the container first and let the app pull down.

Map the CSS volume

now map `/app/frontend/css/main.css' as a volume to your local machine so that your dark mode tweak persists.

version: '3.8'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
      - ./css/main.css:/app/frontend/css/main.css

spin up the container again and go to edit that new ./css/main.css file

CSS

here is what I've added at the bottom of that css file. It isn't perfect but I kinda like the plumb color theme

body, .modal-content{
  background-color: #635366;
  color: white;
 }

 .modal-content{
  box-shadow: black 2px 2px 8px;
 }

 .custom-switch-description{
    color: #c3c3c3;
  }

 #header{
  background-color: #323232;
 }
 .navbar-light .navbar-brand{
  color: white;
 }
 #menu{
  background-color: #000;
 }

 .text-default {
    color: white !important;
  }

  .tag{
    background-color: #545454;
    color: white;
  }

 .card{
    background-color: #29292a;
    box-shadow: black 2px 2px 8px;
  }

  .table thead {
    border-bottom: solid black 3px;
  }
  .table th, .text-wrap table th, .table td, .text-wrap table td{
    border-top: 1px solid #000000;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: rgb(0, 0, 0);
  }
Cocolin67 commented 7 months ago

3395

Resolved since update is released

jpeaglesandkatz commented 6 months ago

why is this closed when the initial issues was opend regarding dark mod in the proxy manager UI itself, NOT the documentation...

It is outright silly that a project like nginx proxy manager doesn't include darkmode.. Especially when apparently it is using an easy theming solution.

ramphex commented 5 months ago

is there any update on this? Why did the docs get themed but the the actual dashboard UI?

Cocolin67 commented 4 months ago

Apparently it's still not fixed, i thought it was but it was just the doc that got the dark UI. i'll reopen the issue

drummerwolli commented 3 months ago

sounds like a duplicate of https://github.com/NginxProxyManager/nginx-proxy-manager/issues/707