Skip to content

feat: add dark theme functionality#38

Open
arya-912 wants to merge 1 commit into
chaoss:mainfrom
arya-912:dark-theme-feature
Open

feat: add dark theme functionality#38
arya-912 wants to merge 1 commit into
chaoss:mainfrom
arya-912:dark-theme-feature

Conversation

@arya-912
Copy link
Copy Markdown

@arya-912 arya-912 commented May 1, 2026

🌙 [Feature/UI] Implement Premium Dark Mode & Overhaul Global UI Styling

Closes #26

📌 Description

This PR introduces a robust Light/Dark mode implementation and completely refines the application's global UI. The previous styling relied on hardcoded colors that broke visibility in dark mode (hidden text) and used heavy, flat backgrounds that felt visually overwhelming.

This update resolves all visibility issues, introduces dynamic Tailwind theme variables, and upgrades the overall aesthetic to a modern, premium standard with glassmorphism, softer typography, and refined accent colors.


🚀 Key Changes & Features

1. Robust Theme Architecture


2. Global Theme Refinements (globals.css)

  • Dark Mode:
    • Background: #111827 (dark slate)
    • Text: #bbbbbb (cool-toned grey for readability)
  • Light Mode:
    • Background: #f8fafc (soft off-white)
    • Text: #0f172a (deep slate)
    • Cards: #ffffff for layered UI feel

3. Main Screen UI Overhaul

  • Removed hardcoded classes (text-black, text-gray-800)
  • Replaced with semantic Tailwind variables (text-foreground, text-muted-foreground)
  • Introduced glassmorphism card:
    • bg-slate-900/60 backdrop-blur-xl (dark mode)
  • Updated primary colors:
    • Replaced neon purple with bg-indigo-600
  • Improved input visibility:
    • Better contrast backgrounds
    • Brighter placeholders (placeholder-slate-400)

4. Results & Analysis Page Fixes

  • Fully dynamic theme-aware layout
  • Updated SDG prediction cards:
    • Theme-adaptive tags (High/Medium/Low)
    • e.g., dark:bg-green-900/40 dark:text-green-300
  • Fixed raw JSON viewer:
    • Proper dark mode styling (dark:bg-slate-950)

📸 Before & After Screenshots

🔆 Before (Light Mode Only)

Before UI


🔆 Light Mode (After)

Light Mode After


🌙 Dark Mode (After)

Dark Mode After


📸 Visual Impact

  • Eliminates hidden text / contrast issues
  • Softer, modern, and premium UI
  • Improved readability in both light and dark modes
  • Better interaction feedback across UI elements

✅ Checklist

  • Tested Light/Dark toggle functionality
  • Verified text contrast across UI components
  • Ensured no hydration/theme flickering issues

Signed-off-by: Pravesh Arya <prvsharya@arya.io>
@arya-912 arya-912 force-pushed the dark-theme-feature branch from 97014cb to fde32d1 Compare May 1, 2026 22:27
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.

[Feature/UI] Implement Dark Mode Toggle & Overhaul Global UI Aesthetics

1 participant