Skip to content

UI Enhancement: Improve Dark Mode & Light Mode Visibility#14

Open
arnab9957 wants to merge 4 commits intoVinayKumar42:mainfrom
arnab9957:arnab9957(#7)
Open

UI Enhancement: Improve Dark Mode & Light Mode Visibility#14
arnab9957 wants to merge 4 commits intoVinayKumar42:mainfrom
arnab9957:arnab9957(#7)

Conversation

@arnab9957
Copy link
Copy Markdown

@arnab9957 arnab9957 commented Feb 21, 2026

🎨 UI Enhancement: Improve Dark Mode & Light Mode Visibility #7

📌 Description

Fixed critical visibility issues in both Dark Mode and Light Mode by implementing proper contrast ratios, theme-aware styling, and smooth transitions across all UI components.

🚨 Issues Fixed

  • ❌ Text contrast was too low in Dark Mode
  • ❌ Text elements were not visible in Light Mode
  • ❌ Buttons and input fields blended into the background
  • ❌ Placeholder text was difficult to read
  • ❌ Header toggle text lacked proper contrast
  • ❌ Editor content area text visibility was inconsistent

✨ Changes Made

Core Theme System

  • App.jsx: Enhanced ThemeWrapper component with proper color schemes and smooth transitions
    • Dark Mode: bg-gray-900 with text-gray-100
    • Light Mode: bg-gray-50 with text-gray-900
    • Added 300ms transition duration for smooth theme switching
    • Implemented render props pattern to pass darkMode state to child components

Component Updates

🧭 Navbar Component

  • Fixed invalid bg-grey-500 class (typo)
  • Added theme-aware navigation links with dynamic colors
  • Enhanced toggle button with proper contrast and hover effects
  • Added visual icons (☀️ Light Mode / 🌙 Dark Mode)
  • Implemented responsive borders and shadows

🏠 Home Component

  • Title Input: Theme-aware styling with proper borders and backgrounds
    • Dark: bg-gray-800, text-gray-100, placeholder-gray-500
    • Light: bg-white, text-gray-900, placeholder-gray-400
  • Buttons: Enhanced with hover animations and proper color contrast
  • Textarea: Dynamic background colors and caret color adaptation
  • Copy Button: Theme-aware icon colors with smooth transitions

📋 Paste Component

  • Search Input: Fixed visibility with proper background and border colors
  • Paste Cards: Theme-aware containers with enhanced contrast
  • Action Buttons (Edit, Delete, View, Copy, Share):
    • Dark: bg-gray-700 with border-gray-600
    • Light: bg-white with border-gray-300 and subtle shadows
    • Proper hover states with colored borders
  • Date Display: Calendar icon and text with appropriate secondary colors
  • Empty State: "No Data Found" message with proper contrast

👁️ ViewPaste Component

  • Disabled input fields with theme-appropriate readonly styling
  • Textarea with proper background colors for readonly state
  • Copy button with theme-aware hover effects

Global Styles (index.css)

  • Added smooth transitions for background, border, and text colors
  • Custom scrollbars for both themes
    • Dark: Gray-800 track with Gray-600 thumb
    • Light: Gray-200 track with Gray-400 thumb
  • Enhanced focus states for accessibility
  • Optimized transition properties for performance

🎯 Accessibility Improvements

✅ WCAG-compliant contrast ratios implemented
✅ All text elements clearly readable in both themes
✅ Interactive elements visually distinct with proper hover states
✅ Proper focus indicators for keyboard navigation
✅ Smooth theme transitions without jarring changes

🖼️ Visual Changes

Navbar

  • Toggle button now has proper contrast in both modes
  • Navigation links (Home/Paste) visible with hover effects
  • Clean border separation with theme-aware colors

Input Fields & Textareas

  • Clear placeholder text visibility
  • Proper background contrast
  • Dynamic caret colors (white in dark, black in light)
  • Focus states with blue ring indicators

Buttons

  • "Create My Paste" button clearly visible
  • Action buttons on paste cards have proper contrast
  • Hover effects with scale transformation (1.05x)

Paste Cards

  • Proper border contrast in both themes
  • Title and content preview text clearly readable
  • Icon buttons with theme-aware colors and hover effects

🧪 Testing Checklist

  • Dark Mode renders with proper contrast
  • Light Mode renders with proper contrast
  • Theme toggle button works correctly
  • Navigation links visible and functional
  • Input fields and textareas have readable placeholders
  • All buttons are clearly visible and clickable
  • Paste cards display properly in both themes
  • Copy functionality works in both themes
  • Smooth transitions when switching themes
  • No console errors
  • Responsive design maintained

📝 Technical Details

Files Modified

  • src/App.jsx - Enhanced theme system with render props
  • src/components/Navbar.jsx - Fixed styling and added theme support
  • src/components/Home.jsx - Added darkMode prop and theme-aware styles
  • src/components/Paste.jsx - Implemented comprehensive theme support
  • src/components/ViewPaste.jsx - Added theme-aware readonly styles
  • src/index.css - Global transitions and custom scrollbars

Color Palette

Dark Mode:

  • Background: gray-900 (#111827)
  • Surface: gray-800 (#1f2937)
  • Primary Text: gray-100 (#f3f4f6)
  • Secondary Text: gray-400 (#9ca3af)
  • Borders: gray-700 (#374151)

Light Mode:

  • Background: gray-50 (#f9fafb)
  • Surface: white (#ffffff)
  • Primary Text: gray-900 (#111827)
  • Secondary Text: gray-600 (#4b5563)
  • Borders: gray-300 (#d1d5db)

🔗 Related Issue

Closes #[issue-number]

📸 Screenshots

image

🚀 Deployment Notes

No breaking changes. No database migrations required. Safe to deploy.


Review Checklist:

  • Code follows project style guidelines
  • All components tested in both themes
  • No accessibility regressions
  • Documentation updated if needed

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 21, 2026

@arnab9957 is attempting to deploy a commit to the vinayboss Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

🎉 Thank you @arnab9957 for your first PR to Short-Notes!

We really appreciate your contribution 🙌

What happens next:

  • 🔍 Maintainers will review your PR
  • 🧪 Automated checks will run
  • ✨ Feedback may be shared if needed

Please confirm your PR includes:

  • ✔️ Clear summary of changes
  • ✔️ Linked issue (e.g., Fixes #123)
  • ✔️ Steps to test
  • ✔️ Screenshots (for UI changes)

📘 Contribution Standards:
👉 https://github.com/VinayKumar42/short-notes/blob/main/CONTRIBUTING.md


💬 Stay Connected with Our Community

🎯 Discord (Official Communication)
For formal discussions, code reviews, and project updates:
👉 https://discord.gg/dCCyGCNbGQ

💚 WhatsApp (Friendly Community)
For informal chats, quick help, and building friendships with contributors:
👉 https://chat.whatsapp.com/I8GYXd3mHlDCC2iXhNGeqV

🌟 Our Philosophy: We value both professional collaboration (Discord) and personal connections (WhatsApp). Join both to get the complete SS-Capture community experience!


Thanks for helping improve Short-Notes 🚀
Let's build something amazing together! 💪

@HarshYadav152
Copy link
Copy Markdown
Collaborator

@arnab9957 For which issue is this PR related

Signed-off-by: Arnab Kumar Dey <arnabkumardey9957@gmail.com>
@VinayKumar42
Copy link
Copy Markdown
Owner

@arnab9957
Make a notes page and send its screenshot, and check whether dark mode is working properly there or not

@arnab9957
Copy link
Copy Markdown
Author

arnab9957 commented Feb 23, 2026

@arnab9957 Make a notes page and send its screenshot, and check whether dark mode is working properly there or not

I havbe already attached the screenshot

@HarshYadav152 HarshYadav152 changed the title feat: update ESLint and plugins, enhance dark mode support across com… UI Enhancement: Improve Dark Mode & Light Mode Visibility Feb 24, 2026
Copy link
Copy Markdown
Collaborator

@HarshYadav152 HarshYadav152 left a comment

Choose a reason for hiding this comment

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

@arnab9957 Fix this

Image

@VinayKumar42
Copy link
Copy Markdown
Owner

@arnab9957 what the progress?

Signed-off-by: Arnab Kumar Dey <arnabkumardey9957@gmail.com>
@VinayKumar42
Copy link
Copy Markdown
Owner

@arnab9957 fixed some problem in your module

@HarshYadav152
Copy link
Copy Markdown
Collaborator

@arnab9957 There is a merge conflict resolve them.
Enduring no breaking changes occur

@VinayKumar42
Copy link
Copy Markdown
Owner

@arnab9957 do you resolve the conflicts or not

Signed-off-by: Arnab Kumar Dey <arnabkumardey9957@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants