Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix(ui): system theming for charts (#5740)

Best Codes6a70ab95e24c
diff --git a/resources/views/layouts/base.blade.php b/resources/views/layouts/base.blade.php
index 0f988666db..d9975c9757 100644
--- a/resources/views/layouts/base.blade.php
+++ b/resources/views/layouts/base.blade.php
@@ -83,6 +83,9 @@
function checkTheme() {
theme = localStorage.theme
+ if (theme == 'system') {
+ theme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
+ }
if (theme == 'dark') {
baseColor = '#FCD452'
textColor = '#ffffff'