New style for Leggero theme: Stringendo Dark

For devs and testers: Tests of current development versions, technical details of the code.
Post Reply
eagleman
Posts: 250
Joined: Sat Mar 02, 2019 12:10 pm

New style for Leggero theme: Stringendo Dark

Post by eagleman » Fri Mar 20, 2026 4:12 pm

Hello,
today, using Claude.ai, I have created a dark version for Stringendo style.
Unfortunately I have some problems to add the dark theme to the admin panel.
Take a look and tell me what do you think.
Attachments
stringendodark.zip
New Stringendo Dark Style for Leggero theme
(90.86 KiB) Downloaded 64 times

User avatar
fraenkiman
FlatPress Coder
Posts: 514
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: New style for Leggero theme: Stringendo Dark

Post by fraenkiman » Sun Mar 22, 2026 12:33 pm

Hi Eagleman,

I've made the necessary changes in the relevant sections. You should now be able to see and select the style in the admin area.
stringendo_dark.zip
(90.95 KiB) Downloaded 62 times
The style has low contrast in some places, making it difficult to read. This could negatively impact search engine rankings.

Best regards,
Frank
πŸ“ Project blogβ€ƒβ€ƒπŸ“– Docsβ€ƒβ€ƒπŸ˜ Mastodonβ€ƒβ€ƒπŸ“œ Forum RSS feedβ€ƒβ€ƒπŸ“œ Project blog RSS feedβ€ƒβ€ƒπŸ± GitHub  ❀️ Donate

My :de: FlatPress-Blog: https://frank-web.flatpress.org, synced with :elephant: Mastodon

User avatar
fraenkiman
FlatPress Coder
Posts: 514
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: New style for Leggero theme: Stringendo Dark

Post by fraenkiman » Sun Mar 22, 2026 9:21 pm

Hi eagleman,

I actually have a suggestion for youβ€”or rather, for the AI:

Depending on the browser or system color scheme, the color palette should be light or dark.

This could be achieved using a media query:

Code: Select all

:root {
    /* Let form controls follow the active browser/system palette */
    color-scheme: light dark;
    ...
}
@media (prefers-color-scheme: dark) {
...
}
This way, the visitor would get the best of both worlds (day, night), depending on the device’s settings.
Just a suggestion:
prefers-color-scheme_dark.png
prefers-color-scheme_dark.png (187.46 KiB) Viewed 1018 times
I enabled this on my blog. Now, visitors using a light theme see the original Stringendo style, while those using a dark theme see "Dark Mode".

Please don’t forget to let me know whether the patch I mentioned helped or not. WineMan has already replied that the patch fixed the issue.

Best regards,
Frank
πŸ“ Project blogβ€ƒβ€ƒπŸ“– Docsβ€ƒβ€ƒπŸ˜ Mastodonβ€ƒβ€ƒπŸ“œ Forum RSS feedβ€ƒβ€ƒπŸ“œ Project blog RSS feedβ€ƒβ€ƒπŸ± GitHub  ❀️ Donate

My :de: FlatPress-Blog: https://frank-web.flatpress.org, synced with :elephant: Mastodon

eagleman
Posts: 250
Joined: Sat Mar 02, 2019 12:10 pm

Re: New style for Leggero theme: Stringendo Dark

Post by eagleman » Mon Mar 23, 2026 9:59 am

fraenkiman wrote: Sun Mar 22, 2026 9:21 pm

Code: Select all

:root {
    /* Let form controls follow the active browser/system palette */
    color-scheme: light dark;
    ...
}
@media (prefers-color-scheme: dark) {
...
}
This way, the visitor would get the best of both worlds (day, night), depending on the device’s settings.
Just a suggestion:
prefers-color-scheme_dark.png
Ok, it's a nice idea, but where have i to add the query?

User avatar
fraenkiman
FlatPress Coder
Posts: 514
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: New style for Leggero theme: Stringendo Dark

Post by fraenkiman » Mon Mar 23, 2026 10:31 pm

Hello eagleman,

The easiest way is to place the media query at the end of the CSS file. Within the media query, you include the rules that override those above it.

So, for example, if the CSS file starts with #cpmain { white }, then #cpmain { black } goes inside the media query.
When the visitor’s device signals @media (prefers-color-scheme: dark), #cpmain { black } is selected.

An example with body[class^="admin-"] .entry
Screenshot 2026-03-23 232451.png
Screenshot 2026-03-23 232451.png (8.66 KiB) Viewed 983 times
Screenshot 2026-03-23 232839.png
Screenshot 2026-03-23 232839.png (13.63 KiB) Viewed 983 times
Feel free to use and customize the style I’ve adapted. The style accounts for light/dark modes for both the frontend and the admin area. I’ve made it available via the wiki.
To test it, select β€œLight” or β€œDark” in your browser settings. Alternatively, you can adjust the setting in your operating system.

Best regards,
Frank
πŸ“ Project blogβ€ƒβ€ƒπŸ“– Docsβ€ƒβ€ƒπŸ˜ Mastodonβ€ƒβ€ƒπŸ“œ Forum RSS feedβ€ƒβ€ƒπŸ“œ Project blog RSS feedβ€ƒβ€ƒπŸ± GitHub  ❀️ Donate

My :de: FlatPress-Blog: https://frank-web.flatpress.org, synced with :elephant: Mastodon

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest