-
Notifications
You must be signed in to change notification settings - Fork 18
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 css theme version 0.1 #18
Conversation
Hi @savez, thanks for the PR How’s it going? Do you have any details or images to share? Let me know if you need any help |
I was thinking that perhaps one could use the css function light-dark() (https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/light-dark) so as to have only one CSS and use the colour-scheme proprity to make the switch. what do you think? |
Sure, that sounds like it works |
Good, I implement it and update PR |
@goksan I change it. |
Thank you! If you're done with it I'll try and take a proper look later this week, and experiment with some of the colours Thanks again |
Did you intentionally commit sizing & font changes? |
Yes, I think that this UI are good for more screen size. |
I think a button for switching the theme should be added in the interface. |
Would be helpful for users that want to override their OS default |
@goksan added toggle button |
Ok, have you made all your changes? |
I think yes |
Are these changes generated by AI? |
no, it is my development |
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.
Why does the light theme look like this?
This does not default to light/dark based on the OS theme.
The selected theme is lost when you navigate to any other page. Maybe you didn't get around to this, but you haven't provided any detail to suggest this.
I'm not a fan of the sizing changes, and those weren't initially mentioned until I spotted them. Same goes for the font changes.
I'm not going to merge this in its current state. I appreciate you have taken the time to make these current changes, but I also have to take time to review them and a lot of key info has been missing.
static/main.css
Outdated
@@ -1,23 +1,98 @@ | |||
:root{ | |||
/* light styles here */ | |||
color-scheme: var(--color-scheme, light); |
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.
color-scheme
is duplicated, this is 1
static/main.css
Outdated
--color-scheme: light; | ||
} | ||
|
||
color-scheme: var(--color-scheme, light); |
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.
color-scheme
is duplicated, this is 2
static/main.css
Outdated
color: #969696; | ||
color: light-dark(#606060,#969696); |
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.
there's a bunch of places where extra indentation has been added
I check your comment and I will implement the necessary changes. thank you! |
Hi, I don't seen that you use HTMX for system routing and my implementation didn’t work. I correct it and I added I hope that this implementation it is ok for you. Bye |
I've had a quick look and issues remain from my prior comments.
It still looks like this?
This still seems to be the case.
Navigating backwards or forwards between pages while in dark mode causes the page you land on to be displayed in light mode.
To be clear I was referring to font size & weight. |
Hello, I'll post a video so you can see that browsing remains the dark theme. The theme type is saved in localStorage and stays saved there. only the login is in light theme but by choice. It is not nice to give in login the ability to change theme. statusnook.mov |
ok, thanks epr for the clarification. I will check for the theme and browser navigation keys I'm sorry |
Thank you for your time, but I won't be merging this PR. |
HTMX is probably the problem. I have made changes to handle:
I then found this plugin “https://unpkg.com/dark-mode-toggle” which works and seems much more convenient for management. I'll go over a PR if you want. |
I don't think such a plugin is necessary here |
The plugin was an example for the best way for implamentation Bye |
Created dark theme version 0.1
reference issue #17