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

GitAuto: Replace current CSS with tailwind CSS #47

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

Conversation

gitauto-for-dev[bot]
Copy link
Contributor

Original issue: #35

What is the feature

The feature involves replacing the current CSS styling with Tailwind CSS in the project.

Why we need the feature

Tailwind CSS offers a utility-first approach to styling, which can significantly speed up the development process by providing pre-defined classes that can be composed to build custom designs directly in the markup. This can lead to more maintainable and scalable code, as well as a more consistent design system across the application.

How to implement and why

  1. Install Tailwind CSS: Begin by installing Tailwind CSS via npm or yarn. This will allow us to integrate it into our build process.

  2. Configure Tailwind: Create a tailwind.config.js file to customize the default configuration. This step is crucial for setting up custom themes, colors, and other design tokens that align with the project's branding.

  3. Purge Unused CSS: Set up the purge option in the Tailwind configuration to remove unused styles in production builds, which will help in keeping the CSS bundle size small.

  4. Refactor Existing Styles: Gradually replace existing CSS classes with Tailwind's utility classes. This can be done incrementally, starting with common components or pages, to ensure a smooth transition.

  5. Test and Validate: After refactoring, thoroughly test the application to ensure that the new styles are applied correctly and that there are no regressions in the UI.

  6. Documentation: Update any relevant documentation to reflect the changes in the styling approach, including any new guidelines for using Tailwind CSS in the project.

About backward compatibility

Backward compatibility is not a concern in this case as the change is purely related to styling. However, care should be taken to ensure that the visual appearance of the application remains consistent with the previous design, unless intentional changes are made.

Test these changes locally

git checkout -b gitauto-wes/issue-#35-7da18e79-a36b-45e3-9edb-09d210a4e2fa
git pull origin gitauto-wes/issue-#35-7da18e79-a36b-45e3-9edb-09d210a4e2fa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants