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

Implement style guide in Tailwind config #85

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

vikranthchinnam
Copy link
Collaborator

@vikranthchinnam vikranthchinnam commented Apr 17, 2023

Overview

closes #70
I created an internal tool to simplify tailwind css

What Changed

I changed tailwind.config.js to fit new changes in the formats specified to me, adding new changes that abstracts away a lot of tailwind with 'display-text-large' instead of specifying font size, font family, font weight, line height, and letter spacing.

Other Notes

I finished changing the colors and font styles according to the given information but there are certain bugs in this, for example, the line height is not right as often multiple text elements seem to touch each other. I also deleted the previous code that was in tailwind.config.js.

I finished changing the colors and font styles according to the given information but there are certain bugs in this for example the line height is not right as often multiple text elements seem to touch each other and also primary-blue-5 and neutral-5 seem to be the same. I don't know if I should delete the previous code or comment it out so I just deleted it.
@vikranthchinnam vikranthchinnam linked an issue Apr 17, 2023 that may be closed by this pull request
@vercel
Copy link

vercel bot commented Apr 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
survival-guide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 17, 2023 4:48pm

@WillieCubed WillieCubed changed the title Feature/implement style guide Implement style guide in Tailwind config Apr 17, 2023
@WillieCubed WillieCubed self-requested a review April 17, 2023 18:44
Copy link
Member

@WillieCubed WillieCubed left a comment

Choose a reason for hiding this comment

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

Good start! Just a few minor changes to make.

Comment on lines +9 to +10
<h1 className="text-headline4 text-[96px] font-bold font-display ">Whoops!</h1>
{/* <h1 className="text-display-extra-large">Whoops!</h1>*/}
Copy link
Member

Choose a reason for hiding this comment

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

Don't forget to remove commented code from changes being merged into develop.

light: '#6470F7',
DEFAULT: '#2F3FF4',
dark: '#0B1CD5',
'primary-blue': {
Copy link
Member

Choose a reason for hiding this comment

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

This works, but let's rename this to just primary.

},
fontFamily: {
sans: ['var(--font-sans)', 'Roboto', 'sans-serif'],
display: ['var(--font-display)', 'Jost', 'Roboto', 'sans-serif'],
display: ['var(--font-display)', 'Jost', 'Roboto', 'sans-serif', 'Montserrat'],
Copy link
Member

Choose a reason for hiding this comment

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

The font Montserrat is never loaded because it's not being imported in the _app.tsx file. Instead of putting this here, update the font corresponding to --font-display in _app.tsx.

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

Successfully merging this pull request may close these issues.

Implement style guide in Tailwind CSS config
2 participants