From 18724420166e8aff2a60709a6e69c51807303029 Mon Sep 17 00:00:00 2001 From: Keith Smith Date: Mon, 22 Dec 2025 22:03:22 -0700 Subject: [PATCH] Fix dark/light mode support on change password page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace all hardcoded colors and CSS variable fallbacks with proper theme CSS variables: - Removed fallback values from all var() calls - Replaced --color-* prefixed variables with actual theme variables: - --color-bg-secondary → --surface - --color-border → --border - --color-text → --text-primary - --color-text-secondary → --text-secondary - --color-primary → --accent (via .btn-primary class) - Updated success alert to use .alert-success class - Updated buttons to use .btn-primary and .btn-secondary classes - Fixed input backgrounds and text colors to use theme variables - Replaced hardcoded error color with --danger variable The page now properly respects the dark/light mode toggle. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- templates/users/change_password.html | 46 ++++++++++++++-------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/templates/users/change_password.html b/templates/users/change_password.html index 34d1ec1..6a40cad 100644 --- a/templates/users/change_password.html +++ b/templates/users/change_password.html @@ -5,82 +5,82 @@ {% block body %}
-
- KeepItGoing +
+ KeepItGoing
- {{ user.email }} - Profile - Logout + {{ user.email }} + Profile + Logout
-

Change Password

+

Change Password

{% if success %} -
+
✓ Success!
{{ success }}
{% endif %} -
+ {% csrf_token %}
- + + style="width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 0.375rem; font-size: 1rem; background: var(--bg); color: var(--text-primary);"> {% if errors.old_password %} -

{{ errors.old_password }}

+

{{ errors.old_password }}

{% endif %}
- + -

Must be at least 8 characters

+ style="width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 0.375rem; font-size: 1rem; background: var(--bg); color: var(--text-primary);"> +

Must be at least 8 characters

{% if errors.new_password %} -

{{ errors.new_password }}

+

{{ errors.new_password }}

{% endif %}
- + + style="width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 0.375rem; font-size: 1rem; background: var(--bg); color: var(--text-primary);"> {% if errors.confirm_password %} -

{{ errors.confirm_password }}

+

{{ errors.confirm_password }}

{% endif %}
- - + Cancel