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

Issue 22 Tailwind and global styles #26

Merged
merged 6 commits into from
Dec 12, 2024

Conversation

ScottyTGB
Copy link
Contributor

@ScottyTGB ScottyTGB commented Dec 10, 2024

Change Summary

  • Roboto and Urbanist now the primary fonts for Headings and body receptively.
  • Font sizes changed for every tag from h1 through to h6 and other paragraph tags.
  • Color palette added as custom palette in the tailwind config and global css.

Change Form

N/A. I believe front end stuff doesn't require tests.

Other Information

All styles have been applied with accordance of the current style sheet provided on figma.

Side Note

package-lock.json has been slightly altered to address vulnerabilities and depreciation.

Related issue

ScottyTGB and others added 3 commits December 9, 2024 19:59
Roboto serving as h1 to h6
Urbanist serving as body font
package-lock.json changed to address depreciated packages
@ScottyTGB ScottyTGB added the frontend Task must have a front end issue label Dec 10, 2024
@ScottyTGB ScottyTGB self-assigned this Dec 10, 2024
@ScottyTGB ScottyTGB added enhancement New feature or request component labels Dec 10, 2024
},
colors: {
yellow: "#ffd700",
Copy link
Contributor

@ErikaKK ErikaKK Dec 10, 2024

Choose a reason for hiding this comment

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

It's better to prefix the wajo color names with wajo- to distinguish them from Tailwind's default class names. Considering addingwajo:{}

Copy link
Contributor Author

@ScottyTGB ScottyTGB Dec 10, 2024

Choose a reason for hiding this comment

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

I would require a second opinion on this one from the tech leads @AarifLamat @yunho7687 @Julie-Salazar. I personally think adding identifiers in front of those names would be a bit finicky. For example writing bg-yellow-400 is a lot easier than bg-wajo-yellow-400. By doing yellow: "#ffd700" I've basically overridden Tailwind's default yellow of yellow: "#facc15". So Tailwind's default yellow will never appear again, only ours. If I want to still use Tailwind's default yellow, only then I would distinguish them if it makes sense.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you're right

Copy link
Member

Choose a reason for hiding this comment

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

I would require a second opinion on this one from the tech leads @AarifLamat @yunho7687 @Julie-Salazar. I personally think adding identifiers in front of those names would be a bit finicky. For example writing bg-yellow-400 is a lot easier than bg-wajo-yellow-400. By doing yellow: "#ffd700" I've basically overridden Tailwind's default yellow of yellow: "#facc15". So Tailwind's default yellow will never appear again, only ours. If I want to still use Tailwind's default yellow, only then I would distinguish them if it makes sense.

yeah, good point, overwriting it is applicable in this project

@ScottyTGB ScottyTGB requested a review from ErikaKK December 10, 2024 10:43
Copy link
Contributor

@ErikaKK ErikaKK left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Member

@yunho7687 yunho7687 left a comment

Choose a reason for hiding this comment

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

well done but why there are so many changes in package-lock.json? what did you do? does it necessary to change those dependencies?

Copy link
Member

@yunho7687 yunho7687 left a comment

Choose a reason for hiding this comment

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

all in all, good job! will approve once figuring out the package-lock.json file

@ScottyTGB
Copy link
Contributor Author

all in all, good job! will approve once figuring out the package-lock.json file

I can revert the package-lock.json if needed. All I did was npm audit fix.

@ScottyTGB ScottyTGB requested a review from yunho7687 December 12, 2024 08:49
Copy link
Member

@yunho7687 yunho7687 left a comment

Choose a reason for hiding this comment

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

great job! thanks mate!

@yunho7687
Copy link
Member

It can be merged now

@ScottyTGB ScottyTGB merged commit 191a4f9 into main Dec 12, 2024
5 checks passed
@loklokyx loklokyx deleted the issue-22-Create_global_CSS_styles_and_fonts branch February 24, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component enhancement New feature or request frontend Task must have a front end issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create global CSS styles and fonts
3 participants