Skip to content

Add lunar dark theme - #377

Open
murpii wants to merge 1 commit into
ddnet:masterfrom
murpii:lunar-theme
Open

Add lunar dark theme#377
murpii wants to merge 1 commit into
ddnet:masterfrom
murpii:lunar-theme

Conversation

@murpii

@murpii murpii commented Aug 28, 2026

Copy link
Copy Markdown
Member

Do we accept theme additions? 😄
firefox_tQ7lgQwTOB

Adds www/css/css-lunar.css, a dark theme with github dark backgrounds and material
lunar accents. Very soothing on the eyes!

I also moved the funding bar colors out of the funding script and added custom colors for each theme. The light theme keeps the colors it has now, nothing changes there.

Open Me! firefox_rjJ78XCLBU firefox_1NiR4lAo4C firefox_Pag3bhBjik

This requires some changes in nginx too, not something this PR would be able to touch!

@Learath2

Copy link
Copy Markdown
Member

Tbf if anything I like this color scheme more than the Halloween theme we repurposed as a dark mode

@edg-l

edg-l commented Aug 29, 2026

Copy link
Copy Markdown
Member

i like this a lot more than halloween too

@edg-l

edg-l commented Aug 29, 2026

Copy link
Copy Markdown
Member

maybe as a last touch it would be cool to also theme the funding bar? if its possible

@def-

def- commented Aug 29, 2026

Copy link
Copy Markdown
Member

I‘m in favor of just keeping one light and one dark theme, so this should replace halloween

GitHub Dark backgrounds with Material Lunar accents, replacing the
halloween orange. The stylesheet is renamed, so the layouts, the
prefers-color-scheme wrapper and the archived stats pages that link the
theme by absolute path all point at css-lunar.css now. The stats pages
that ship their own copy of the old stylesheet keep it.

The funding script wrote the bar colors into inline styles, so no
stylesheet could override them and both themes showed the same yellow.
It now marks finished bars with a class and the colors come from CSS
variables, along with the progressbar trough and the label shadow that
jquery-ui kept light grey regardless of theme.

Switching themes is served by nginx, so the switch-theme block and the
stylesheet redirect need the new name and cookie value to match.
@murpii

murpii commented Aug 29, 2026

Copy link
Copy Markdown
Member Author

maybe as a last touch it would be cool to also theme the funding bar? if its possible

I assume you mean the funding bar on the front page? That's already done. See the collapsible "Open Me!" section. The first screenshot was taken before I themed the funding bars, and I forgot to update it.

I decided to keep the new filename, though that resulted in a much larger diff. Replacing the contents of the Halloween css file with mine didn't feel right. Hope that's fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants