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

Theme status pages (and dashboard?) by defining "base colors" in Appearance setting #4642

Open
pro-sumer opened this issue Apr 1, 2024 · 3 comments
Labels
area:core issues describing changes to the core of uptime kuma area:dashboard The main dashboard page where monitors' status are shown area:settings Related to Settings page and application configration area:status-page Everything related to the status page area:ui/ux Interface and User Experience issues feature-request Request for new features to be added help wanted May need your help to test or answer

Comments

@pro-sumer
Copy link

πŸ“‘ I have found these related issues/pull requests

Unable to find any related issue.

🏷️ Feature Request Type

Status-page

πŸ”– Feature description

It would be great if one can configure Uptime Kuma's "base colors" in the web interface, instead of manually overwriting many individual status page elements using CSS.

Bonus: also theme the dashboard this way.

βœ”οΈ Solution

Allow the user to define the hex/RGB values for the "base colors" in the Appearance section of Uptime Kuma's settings.

❓ Alternatives

A CSS solution that does not require overwriting many individual status page items would also be good, but unfortunately I don't know how to do that (if this is already possible, a Wiki entry on how to do it would be appreciated).

πŸ“ Additional Context

N/A

@pro-sumer pro-sumer added the feature-request Request for new features to be added label Apr 1, 2024
@CommanderStorm
Copy link
Collaborator

Currently, our system works by defining colours in SCSS in src/assets/vars.scss.
This is then used in most places (not quite all, PRs welcome)
The colours are then used at src/assets/app.scss to override the defaults by bootstrap 5.

The problem is that SCSS variables are not changeable at runtime (SCSS is compiled).
One option would be to change these to CSS variables.

I think changes like you did on https://status.prosumer.dev/ are somewhat out of scope.
If somebody has such special requirements, they will be reaching for the CSS guns anyway… => don't see a big payoff of spending lots of effort here..

@CommanderStorm CommanderStorm added area:status-page Everything related to the status page area:dashboard The main dashboard page where monitors' status are shown area:settings Related to Settings page and application configration area:core issues describing changes to the core of uptime kuma area:ui/ux Interface and User Experience issues labels Apr 1, 2024
@pro-sumer
Copy link
Author

The problem is that SCSS variables are not changeable at runtime (SCSS is compiled).

That's what I thought. Thanks for confirming.

If somebody has such special requirements, they will be reaching for the CSS guns anyway…

Luckily Uptime Kuma allows custom CSS. Thank you for that option.

@chakflying
Copy link
Collaborator

chakflying commented Apr 2, 2024

We should consider moving from scss variables to css variables to allow customization in this way.

@CommanderStorm CommanderStorm added the help wanted May need your help to test or answer label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core issues describing changes to the core of uptime kuma area:dashboard The main dashboard page where monitors' status are shown area:settings Related to Settings page and application configration area:status-page Everything related to the status page area:ui/ux Interface and User Experience issues feature-request Request for new features to be added help wanted May need your help to test or answer
Projects
None yet
Development

No branches or pull requests

3 participants