Skip to content

feat: Set dark mode as default theme - #2

Open
shrwnsan wants to merge 1 commit into
mantramatt:mainfrom
shrwnsan:feat/dark-mode-default
Open

feat: Set dark mode as default theme#2
shrwnsan wants to merge 1 commit into
mantramatt:mainfrom
shrwnsan:feat/dark-mode-default

Conversation

@shrwnsan

@shrwnsan shrwnsan commented Jun 6, 2025

Copy link
Copy Markdown

📋 Pull Request Description

🎯 What does this PR do?

This commit updates the CSS variables in index.html to set a dark theme as the default for the application.

The following changes were made:

  • --background changed to #1a1a1a
  • --surface changed to #2a2a2a
  • --text-primary changed to #f0f0f0
  • --text-secondary changed to #a0a0a0
  • --border changed to #3a3a3a
  • --primary-color adjusted to #3b82f6
  • --primary-hover adjusted to #2563eb
  • --success-color adjusted to #22c55e
  • --error-color adjusted to #ef4444
  • --warning-color adjusted to #f59e0b
  • --shadow updated for a subtle glow effect on dark backgrounds.

These changes provide a visually appealing and accessible dark mode experience by default.

🔗 Related Issues

Fixes #(issue number)

🧪 Testing

  • I have tested this change locally
  • I have tested in multiple browsers
  • I have verified security implications
  • I have updated documentation if needed

📝 Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Security improvement

🔒 Security Checklist

  • No private keys are logged or transmitted
  • Cryptographic changes maintain BIP32/BIP44 compatibility
  • No new external dependencies that could compromise security
  • Randomness sources remain cryptographically secure

📸 Screenshots (if applicable)

Add screenshots of UI changes here.

🚀 Performance Impact

  • No performance impact
  • Slight performance improvement
  • Slight performance degradation (justified)
  • Significant performance change (please explain)

📱 Browser Testing

  • Chrome
  • Firefox
  • Safari
  • Edge

📝 Additional Notes

Any additional information or context about this PR.

This commit updates the CSS variables in `index.html` to set a dark theme as the default for the application.

The following changes were made:
- `--background` changed to `#1a1a1a`
- `--surface` changed to `#2a2a2a`
- `--text-primary` changed to `#f0f0f0`
- `--text-secondary` changed to `#a0a0a0`
- `--border` changed to `#3a3a3a`
- `--primary-color` adjusted to `#3b82f6`
- `--primary-hover` adjusted to `#2563eb`
- `--success-color` adjusted to `#22c55e`
- `--error-color` adjusted to `#ef4444`
- `--warning-color` adjusted to `#f59e0b`
- `--shadow` updated for a subtle glow effect on dark backgrounds.

These changes provide a visually appealing and accessible dark mode experience by default.
@mantramatt
mantramatt requested a review from Copilot August 6, 2025 10:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR changes the default theme from light mode to dark mode by updating CSS variable values in the root HTML file. The change provides a dark background with adjusted colors for better contrast and accessibility in dark environments.

  • Updates all color CSS variables to implement dark theme values
  • Adjusts primary, success, error, and warning colors for better dark mode contrast
  • Modifies shadow styling to use a subtle glow effect suitable for dark backgrounds

Comment thread index.html
--border: #3a3a3a;
--border-radius: 8px;
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
--shadow: 0 2px 4px 0 rgba(255, 255, 255, 0.05), 0 3px 10px 0 rgba(255, 255, 255, 0.05); /* Subtle glow for dark theme */

Copilot AI Aug 6, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The white glow shadow effect may not provide sufficient visual separation on dark backgrounds. Consider using a darker shadow with higher opacity (e.g., rgba(0, 0, 0, 0.3)) or a combination of both dark and light shadows for better depth perception.

Suggested change
--shadow: 0 2px 4px 0 rgba(255, 255, 255, 0.05), 0 3px 10px 0 rgba(255, 255, 255, 0.05); /* Subtle glow for dark theme */
--shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3), 0 2px 4px 0 rgba(255, 255, 255, 0.05), 0 3px 10px 0 rgba(255, 255, 255, 0.05); /* Improved depth: dark + subtle white glow */

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants