Skip to content

Add dark mode support #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yogeshpaliyal
Copy link
Contributor

@yogeshpaliyal yogeshpaliyal commented Aug 13, 2024

Fixes #19

Add dark mode support to the application.

  • Tailwind Configuration

    • Enable dark mode by adding darkMode: 'class' in tailwind.config.js.
  • CSS Styles

    • Add dark mode styles for body, text, and background colors in src/index.css.
  • App Component

    • Add state to manage dark mode in src/App.jsx.
    • Add a button to toggle dark mode.
    • Apply dark mode class to the root div based on state.
  • Header Component

    • Update styles to support dark mode in src/components/Header/Header.jsx.
  • Footer Component

    • Update styles to support dark mode in src/components/Footer/Footer.jsx.

For more details, open the Copilot Workspace session.

yogeshpaliyal and others added 2 commits August 13, 2024 09:30
Fixes bhagirathpaliyal#19

Add dark mode support to the application.

* **Tailwind Configuration**
  - Enable dark mode by adding `darkMode: 'class'` in `tailwind.config.js`.

* **CSS Styles**
  - Add dark mode styles for body, text, and background colors in `src/index.css`.

* **App Component**
  - Add state to manage dark mode in `src/App.jsx`.
  - Add a button to toggle dark mode.
  - Apply dark mode class to the root div based on state.

* **Header Component**
  - Update styles to support dark mode in `src/components/Header/Header.jsx`.

* **Footer Component**
  - Update styles to support dark mode in `src/components/Footer/Footer.jsx`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/bhagirathpaliyal/E-commerce-page/issues/19?shareId=XXXX-XXXX-XXXX-XXXX).
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.

Add Dark mode support
2 participants