Skip to content
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

Enable Auto theming using Dark Mode CSS #8183

Closed
ghost opened this issue Sep 15, 2019 · 1 comment · Fixed by #17051
Closed

Enable Auto theming using Dark Mode CSS #8183

ghost opened this issue Sep 15, 2019 · 1 comment · Fixed by #17051
Labels
topic/ui Change the appearance of the Gitea UI type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@ghost
Copy link

ghost commented Sep 15, 2019

For those who don't know,DarkMode CSS is new feature available in all latest browsers(Blink,Gecko,Webkit based).It themes the website based on System's theme.If the system does have Dark theme,then the site would have dark theme,and if the system has light theme ,then the site would have light theme.(One can also create custom behavioyr for each type).
Ref:

  1. Introduction by Webkit
  2. Mozilla Docs

I want Gitea to have arc-theme(name of dark theme in gitea) when the system is in dark mode and gitea(name of light theme in gitea) when the system is in light mode.

Atleast enable option named "Auto" under themes to enable automatic themes based on dark mode css

@lunny lunny added type/proposal The new feature has not been accepted yet but needs to be discussed first. topic/ui Change the appearance of the Gitea UI labels Sep 15, 2019
@clarfonthey
Copy link
Contributor

Want to also add to this that this kind of thing would be very helpful for the official docs, which don't support user-specific themes, and could benefit from this parameter.

zeripath pushed a commit that referenced this issue Sep 27, 2021
Add a new default theme `auto`, which will automatically switch between
`gitea` (light) and `arc-green` (dark) themes depending on the user's
operating system settings.

Closes: #8183
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/ui Change the appearance of the Gitea UI type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants