GitAuto: Replace current CSS with tailwind CSS#74
Open
gitauto-for-dev[bot] wants to merge 4 commits intomainfrom
Open
GitAuto: Replace current CSS with tailwind CSS#74gitauto-for-dev[bot] wants to merge 4 commits intomainfrom
gitauto-for-dev[bot] wants to merge 4 commits intomainfrom
Conversation
This file contains hidden or 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
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.
Resolves #60
What is the feature
This pull request proposes replacing the current CSS stylesheets with Tailwind CSS, a utility-first CSS framework that provides a robust set of pre-defined classes to style our application efficiently.
Why we need the feature
How to implement and why
Step 1: Install Tailwind CSS and Dependencies
tailwind.config.jsandpostcss.config.jsin the root directory.Reason: Setting up Tailwind and PostCSS is essential to integrate Tailwind into the build process and customize its configuration.
Step 2: Configure Tailwind
tailwind.config.jsfor purging unused styles:Reason: This ensures Tailwind analyzes all relevant files to include only the necessary styles in the final build.
Step 3: Update CSS Entry Point
styles/globals.css) with Tailwind's base styles:Reason: This incorporates Tailwind's base, components, and utility styles into our application.
Step 4: Refactor Existing Styles
pagesdirectory by replacing custom CSS classes with Tailwind utility classes.Reason: Incremental refactoring minimizes risk and allows for testing at each step to ensure visual consistency.
Step 5: Test the Application
Reason: Testing ensures we maintain the application's look and feel, catching any discrepancies early.
Step 6: Clean Up
Reason: Cleaning up reduces technical debt and prevents confusion from legacy code.
About backward compatibility
Test these changes locally