The feature is to replace the current CSS styling with Tailwind CSS in the project.
Why we need the feature
Tailwind CSS is a utility-first CSS framework that provides low-level utility classes to build custom designs without leaving the HTML. It can significantly reduce the amount of custom CSS we need to write, improve consistency across the application, and make it easier to maintain and scale the design system.
How to implement and why
Install Tailwind CSS:
Add Tailwind CSS to the project using npm or yarn. This will allow us to use Tailwind's utility classes in our HTML files.
Configure Tailwind:
Create a tailwind.config.js file to customize the default Tailwind configuration. This step is crucial to define custom colors, fonts, and other design tokens that match the current design system.
Remove Existing CSS:
Gradually replace existing CSS classes with Tailwind's utility classes. This can be done component by component to ensure that the design remains consistent throughout the transition.
Update HTML Files:
Modify the HTML files in the pages directory to use Tailwind's utility classes. This will involve replacing existing class names with Tailwind's classes.
Test the Application:
Thoroughly test the application to ensure that the design remains consistent and that there are no visual regressions.
Optimize for Production:
Use PurgeCSS to remove unused CSS classes in production builds, which will help in reducing the final CSS bundle size.
About backward compatibility
This change will not maintain backward compatibility with the existing CSS framework. However, since the goal is to fully transition to Tailwind CSS, maintaining backward compatibility is not necessary. The focus should be on ensuring that the new design matches the existing one as closely as possible during the transition.
Resolves #63
What is the feature
The feature is to replace the current CSS styling with Tailwind CSS in the project.
Why we need the feature
Tailwind CSS is a utility-first CSS framework that provides low-level utility classes to build custom designs without leaving the HTML. It can significantly reduce the amount of custom CSS we need to write, improve consistency across the application, and make it easier to maintain and scale the design system.
How to implement and why
Install Tailwind CSS:
Configure Tailwind:
tailwind.config.js
file to customize the default Tailwind configuration. This step is crucial to define custom colors, fonts, and other design tokens that match the current design system.Remove Existing CSS:
Update HTML Files:
pages
directory to use Tailwind's utility classes. This will involve replacing existing class names with Tailwind's classes.Test the Application:
Optimize for Production:
About backward compatibility
This change will not maintain backward compatibility with the existing CSS framework. However, since the goal is to fully transition to Tailwind CSS, maintaining backward compatibility is not necessary. The focus should be on ensuring that the new design matches the existing one as closely as possible during the transition.
Test these changes locally