From 21657a3fa665d06b9d3770b8ba185413ede51d80 Mon Sep 17 00:00:00 2001
From: EthanHealy01 <80844253+EthanHealy01@users.noreply.github.com>
Date: Wed, 26 Nov 2025 12:14:04 +0000
Subject: [PATCH] fix the text color for the first time setup with default
credentials (#5023)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
# Description of Changes
Fix for this:
---
## Checklist
### General
- [ ] I have read the [Contribution
Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md)
- [ ] I have read the [Stirling-PDF Developer
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md)
(if applicable)
- [ ] I have read the [How to add new languages to
Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md)
(if applicable)
- [ ] I have performed a self-review of my own code
- [ ] My changes generate no new warnings
### Documentation
- [ ] I have updated relevant docs on [Stirling-PDF's doc
repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/)
(if functionality has heavily changed)
- [ ] I have read the section [Add New Translation
Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md#add-new-translation-tags)
(for new translation tags only)
### Translations (if applicable)
- [ ] I ran
[`scripts/counter_translation.py`](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/docs/counter_translation.md)
### UI Changes (if applicable)
- [ ] Screenshots or videos demonstrating the UI changes are attached
(e.g., as comments or direct attachments in the PR)
### Testing (if applicable)
- [ ] I have tested my changes locally. Refer to the [Testing
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md#6-testing)
for more details.
---
frontend/src/core/styles/theme.css | 6 ++++++
frontend/src/proprietary/routes/Login.tsx | 12 ++++++------
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/frontend/src/core/styles/theme.css b/frontend/src/core/styles/theme.css
index 30c9d974a..30991cf30 100644
--- a/frontend/src/core/styles/theme.css
+++ b/frontend/src/core/styles/theme.css
@@ -164,6 +164,9 @@
--text-primary: #111827;
--text-secondary: #4b5563;
--text-muted: #6b7280;
+ /* Always-dark text (for use on light backgrounds like alerts) - does not change in dark mode */
+ --text-always-dark: #1f2937;
+ --text-always-dark-muted: #6b7280;
--border-subtle: #e5e7eb;
--border-default: #E2E8F0;
--border-strong: #9ca3af;
@@ -440,6 +443,9 @@
--text-primary: #f9fafb;
--text-secondary: #d1d5db;
--text-muted: #9ca3af;
+ /* Always-dark text (for use on light backgrounds like alerts) - does not change in dark mode */
+ --text-always-dark: #1f2937;
+ --text-always-dark-muted: #6b7280;
--border-subtle: #2A2F36;
--border-default: #3A4047;
--border-strong: #4b5563;
diff --git a/frontend/src/proprietary/routes/Login.tsx b/frontend/src/proprietary/routes/Login.tsx
index 1637afc66..4141a9933 100644
--- a/frontend/src/proprietary/routes/Login.tsx
+++ b/frontend/src/proprietary/routes/Login.tsx
@@ -362,16 +362,16 @@ export default function Login() {
mt="xl"
>
-
+
{t('login.defaultCredentials', 'Default Login Credentials')}
-
- {t('login.username', 'Username')}: admin
+
+ {t('login.username', 'Username')}: admin
-
- {t('login.password', 'Password')}: stirling
+
+ {t('login.password', 'Password')}: stirling
-
+
{t('login.changePasswordWarning', 'Please change your password after logging in for the first time')}