Skip to content

Implement theme toggle functionality and update styles for light/dark…#30

Merged
Deerion merged 3 commits intomainfrom
zmiana-motywu
Nov 22, 2025
Merged

Implement theme toggle functionality and update styles for light/dark…#30
Deerion merged 3 commits intomainfrom
zmiana-motywu

Conversation

@lifeoverthinker
Copy link
Copy Markdown
Collaborator

… modes

Copilot AI review requested due to automatic review settings November 22, 2025 19:08
@lifeoverthinker lifeoverthinker linked an issue Nov 22, 2025 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 22, 2025

@lifeoverthinker I've opened a new pull request, #31, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown

Copilot AI left a comment

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 implements a comprehensive theme toggle functionality with light and dark mode support. The implementation includes a new theme management library, a toggle component, CSS variable-based theming, and updated styles across multiple files.

  • Theme management library with localStorage persistence and system preference detection
  • ThemeToggle component with visual feedback and smooth transitions
  • Updated CSS variables and styles for consistent light/dark mode support

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 14 comments.

Show a summary per file
File Description
noteUZ-frontend/src/lib/theme.ts New theme management utility with localStorage, system detection, and theme application logic
noteUZ-frontend/src/components/ThemeToggle.tsx New toggle button component with moon/sun icons and theme switching capability
noteUZ-frontend/src/pages/_app.tsx Application initialization to apply saved theme preference on load
noteUZ-frontend/src/pages/index.tsx Integration of ThemeToggle component and theme-aware inline styles
noteUZ-frontend/src/styles/globals.css Core theme CSS variables, dark mode media query, data-attribute selectors, and toggle button styles
noteUZ-frontend/src/styles/Login.module.css Updated to use CSS variables for backgrounds, borders, and text colors with smooth transitions
noteUZ-frontend/src/styles/Home.module.css Comprehensive updates with CSS variables, dark mode overrides, and enhanced hover states

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread noteUZ-frontend/src/styles/Home.module.css
Comment thread noteUZ-frontend/src/styles/Login.module.css
Comment thread noteUZ-frontend/src/components/ThemeToggle.tsx
Comment thread noteUZ-frontend/src/pages/_app.tsx
Comment thread noteUZ-frontend/src/components/ThemeToggle.tsx
Comment thread noteUZ-frontend/src/styles/Home.module.css
Comment thread noteUZ-frontend/src/components/ThemeToggle.tsx
Comment thread noteUZ-frontend/src/styles/globals.css
Comment thread noteUZ-frontend/src/components/ThemeToggle.tsx
Comment thread noteUZ-frontend/src/components/ThemeToggle.tsx
[WIP] Implement theme toggle functionality and update styles for light/dark modes
@Deerion Deerion merged commit 1b21e32 into main Nov 22, 2025
@lifeoverthinker lifeoverthinker deleted the zmiana-motywu branch November 22, 2025 19:14
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.

Zmiana motywu interfejsu

4 participants