-
Notifications
You must be signed in to change notification settings - Fork 61
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
Feature/setup tailwind.config.js #81
Merged
PratikMane0112
merged 11 commits into
PratikMane0112:master
from
Rucha-Ambaliya:feature/setup-tailwind.config.js
Jan 7, 2025
Merged
Feature/setup tailwind.config.js #81
PratikMane0112
merged 11 commits into
PratikMane0112:master
from
Rucha-Ambaliya:feature/setup-tailwind.config.js
Jan 7, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Rucha-Ambaliya is attempting to deploy a commit to the Pratik0112's projects Team on Vercel. A member of the Team first needs to authorize it. |
Hey @Rucha-Ambaliya , pretty good !! please now look over the issue #64 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Yes! That is my next target now! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes Issue🛠️
Fulfills this need
Description👨💻
This PR introduces customizations to the
tailwind.config.js
file, including:colors.js
file1. darkMode:
Tailwind’s
darkMode
configuration is set to"class"
, enabling manual control over dark mode through class management.How it saves time:
dark
class to any element (typically the<html>
or<body>
tag), youenable dark mode across the site.
dark:
prefix to their dark mode equivalents,eliminating the need to write ternary conditions everywhere.
dark:bg-black
,dark:text-white
, etc., youdon't need to conditionally check if dark mode is enabled.
Tailwind automatically applies the dark styles when the dark class is added to the root element, ensuring a clean and maintainable approach.Example:
Tailwind Example:
2. Colors:
For better organization and maintainability, all color definitions are stored in a separate
colors.js
file within the frontend folder. These colors are imported intotailwind.config.js
.Example:
3. Screens:
Custom screen sizes have been added to the Tailwind config for greater flexibility. New sizes like
xxs
,xs
,sm
,md
,lg
,xl
,2xl
, and3xl
have been added. These custom sizes align with SCSS media query breakpoints to ensure responsive behavior across different devices.How it works:
Example in JSX:
Type of Change📄
Checklist✅