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

styles: apply tailwind styles from Figma #37

Merged
merged 8 commits into from
Apr 22, 2024
Merged

styles: apply tailwind styles from Figma #37

merged 8 commits into from
Apr 22, 2024

Conversation

hetd54
Copy link
Collaborator

@hetd54 hetd54 commented Apr 16, 2024

This PR seeks to update styles to match the Figma design system.

Files Changed

  • global.css: this is where we standardize html elements and classes used throughout the app; we @apply styles defined in tailwind.config.js
  • tailwind.config.js: created by running npx tailwind init --full. Within here we chose to override tailwind's default colors and box-shadow
  • BlogPost.astro: remove style script
  • index.astro: remove classes from elements so that we can view our changes from global.css
  • BaseHead.astro: remove preloaded fonts
  • Header.astro: remove classes from elements so that we can view our changes from global.css

Files Removed

Font files from default astro

Refs

Figma Design System
Tailwind Custom Styles Docs

@hetd54 hetd54 self-assigned this Apr 16, 2024
Copy link

github-actions bot commented Apr 16, 2024

Visit the preview URL for this PR (updated for commit e379520):

https://mmp-site-b1c9b--pr37-figma-styles-jhy9ro9x.web.app

(expires Thu, 25 Apr 2024 13:51:15 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4eb870c89e876f1812e204af417359065d2a23b1

<nav class="flex items-center justify-between">
<h2 class="m-0 text-lg"><a class="text-black hover:text-gray-600 decoration-0" href="/">{SITE_TITLE}</a></h2>
<header>
<h2><a class="hover:text-gray-600 decoration-0" href="/">{SITE_TITLE}</a></h2>
Copy link
Contributor

Choose a reason for hiding this comment

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

What does decoration-0 do? Doesn't that just remove the underline? In that case, you could use no-underline

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, you are correct! Looks like this is leftover from the blog post defaults-- not sure why they didn't use no-underline. Changing now~

<head>
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
</head>
<body class="single-column">
Copy link
Contributor

Choose a reason for hiding this comment

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

I imagine this should be in a layout component?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, let's plan on a refactor in a different PR

padding: 1em;
}
}
@import url("https://use.typekit.net/jng2int.css");
Copy link
Contributor

Choose a reason for hiding this comment

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

Beautiful!

Copy link
Contributor

@galenwinsor galenwinsor left a comment

Choose a reason for hiding this comment

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

Just a few small changes, looks great!

hetd54 and others added 3 commits April 18, 2024 09:40
Co-authored-by: Galen Winsor <57297033+galenwinsor@users.noreply.github.com>
@hetd54 hetd54 requested a review from galenwinsor April 18, 2024 13:48
@hetd54 hetd54 merged commit fb2765b into main Apr 22, 2024
2 checks passed
@hetd54 hetd54 deleted the figma-styles branch April 22, 2024 14:27
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.

2 participants