From 88537769f6b14fbbf989604b6c35b42257ae1c24 Mon Sep 17 00:00:00 2001 From: Carlos Bonadeo Date: Sun, 22 Feb 2026 05:45:19 +0000 Subject: [PATCH] style: Phase 1 - Simple light dark themes (#1006) ## Summary * **What is the goal of this PR?** (e.g., Implements the new feature for file uploading.) Implement automatic dark theme on server files. Instead of a big change proposed in https://github.com/crosspoint-reader/crosspoint-reader/pull/837, this PR introduces a simple implementation of light/dark themes. * **What changes are included?** - Choose `#6e9a82` as accent color (taken from ![logo](https://avatars.githubusercontent.com/u/254441081?s=48&v=4)) - Implement a very basic media query for dark themes (`@media (prefers-color-scheme: dark)`) - Update style using CSS variables ## Additional Context * Add any other information that might be helpful for the reviewer (e.g., performance implications, potential risks, specific areas to focus on). We can think of it as a incremental enhancement, this is the first phase of a series of PRs (hopefully). Next steps/Phases: 1. Light/Dark themes (this PR) 2. Load external CSS file to avoid duplication 3. HTML enhancement (for example, use dialog element instead of divs) 4. Use SVG instead of emojis 5. Use Vite + Typescript to improve DX and have better minification --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**< YES | PARTIALLY | NO >**_ --------- Co-authored-by: carlosbonadeo --- src/network/html/FilesPage.html | 103 ++++++++++++++++------------- src/network/html/HomePage.html | 58 +++++++++++----- src/network/html/SettingsPage.html | 66 ++++++++++++------ 3 files changed, 146 insertions(+), 81 deletions(-) diff --git a/src/network/html/FilesPage.html b/src/network/html/FilesPage.html index ff114969..628e20c7 100644 --- a/src/network/html/FilesPage.html +++ b/src/network/html/FilesPage.html @@ -5,25 +5,47 @@ CrossPoint Reader - Files @@ -75,7 +101,7 @@

📚 CrossPoint Reader

diff --git a/src/network/html/SettingsPage.html b/src/network/html/SettingsPage.html index 1d25403d..00ca4ea3 100644 --- a/src/network/html/SettingsPage.html +++ b/src/network/html/SettingsPage.html @@ -5,26 +5,49 @@ CrossPoint Reader - Settings @@ -216,7 +242,7 @@