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

[master] setup tailwindcss #8

Merged
merged 3 commits into from
Jun 11, 2023
Merged

Conversation

ghost
Copy link

@ghost ghost commented Jun 11, 2023

Closes #2

Caution! Tailwind CSS comes with some set of base styles which are not playing well with the existing stylesheets. I tried to scope Tailwind styles to a certain component but unfortunately that's not possible at the moment. The only option is to update our existing styles to use TW once this PR is merged.

There are numerous areas of improvement for instance, a better ESLint configuration, more generic components like buttons and inputs, adding an .editorconfig so that the spacings and code style remains the same for everyone. I'll start creating issues for the same.

Coming to the changes:

Ignore everything else and focus on the JSX for now.
Instead of using stylesheets we now use utility classes.
For example,

flex-col is for flex-direction: column

px-5 is padding-left: 20px; padding-right: 20px

Some styles are repeated but they should have been separate components in the first place. It gets easier once you get a hang of it. Here's the documentation for Tailwind

@ghost ghost added the enhancement New feature or request label Jun 11, 2023
@ghost ghost self-assigned this Jun 11, 2023
@ghost ghost added the frontend relates to the frontend code label Jun 11, 2023
Copy link
Owner

@noahgsolomon noahgsolomon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the tailwind css migration has been complete, aside from fully functioning styling for smaller screens on header and home component

@noahgsolomon noahgsolomon merged commit 91e72e0 into master Jun 11, 2023
1 check passed
@noahgsolomon noahgsolomon deleted the features/itsag--setup-tailwind branch June 12, 2023 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend relates to the frontend code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Tailwind.css
2 participants