Skip to content
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

feat: Add Dark Mode Support #9

Merged
merged 1 commit into from
Nov 6, 2024
Merged

feat: Add Dark Mode Support #9

merged 1 commit into from
Nov 6, 2024

Conversation

MBeggiato
Copy link
Owner

This pull request introduces a dark mode feature to the application and refines the UI components for better consistency and usability. The most important changes include updating the HTML structure to support dark mode, importing necessary components, and modifying the Tailwind CSS configuration.

Dark Mode Implementation:

  • src/app.html: Added the dark class to the <html> tag and updated the <body> tag with appropriate classes for dark mode styling.

  • tailwind.config.ts: Changed the darkMode configuration from 'selector' to 'class' to enable class-based dark mode support.

UI Component Enhancements:

  • src/routes/+page.svelte: Imported DarkMode and Tooltip components from flowbite-svelte and added a dark mode toggle button with a tooltip. [1] [2]

  • src/routes/+page.svelte: Updated <p> tags to use the P component from flowbite-svelte for consistent styling and added class modifications for better text alignment and size.

@MBeggiato MBeggiato linked an issue Nov 6, 2024 that may be closed by this pull request
@MBeggiato MBeggiato merged commit 0432f5f into main Nov 6, 2024
@MBeggiato MBeggiato deleted the 8-add-dark-mode-support branch November 6, 2024 21:16
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
1 participant