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

feature/issue 23 Styleguide and Design System #36

Merged
merged 61 commits into from
Apr 26, 2024
Merged

Conversation

Auhseh
Copy link
Contributor

@Auhseh Auhseh commented Apr 12, 2024

Related Issue

resolves #23

Summary of Changes

  1. Introduce Geist font family to project theme
  2. Add Storybook docs for Tech Stack, Documentation, and Styleguide

Screenshot 2024-04-13 at 6 08 21 PM
Screenshot 2024-04-13 at 6 15 11 PM

Screenshot 2024-04-17 at 8 45 08 PM
Screenshot 2024-04-17 at 8 49 41 PM

TODO

  1. Apply PR Feedback - feature/issue 23 Styleguide and Design System #36 (review)
  2. Need to pull in support bundling of url properties (like for @font-face + src) during CSS file optimization greenwood#1199 (or track unpatching it) - @thescientist13 - upstream feature / fixes tracking #37

Copy link

netlify bot commented Apr 12, 2024

Deploy Preview for super-tapioca-5987ce ready!

Name Link
🔨 Latest commit d8f9b73
🔍 Latest deploy log https://app.netlify.com/sites/super-tapioca-5987ce/deploys/662bc7183826eb0008cbe87d
😎 Deploy Preview https://deploy-preview-36--super-tapioca-5987ce.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@thescientist13 thescientist13 added docs Greenwood specific documentation enhancement New feature or request labels Apr 13, 2024
@thescientist13 thescientist13 changed the title fonts feature/issue 23 Styleguide and Design System Apr 13, 2024
Copy link
Member

@thescientist13 thescientist13 left a comment

Choose a reason for hiding this comment

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

This is a good start, thanks!

I took the opportunity to source the fonts from npm and can confirm it is working both for development and Storybook preview. Formatted the PR description a bit.

I left some feedback to consider but let me know if you need any help on it, I can help with some of them if unclear:

  1. Limit the design tokens / CSS variables to just the most common / global ones we'll need for now
  2. Just need a little formatting and links for the Documentation page
  3. For the Styleguide docs, we'll need to curate the design tokens list and then show examples (like you can see in the reference example)
  4. For the tech stack docs, just take what you see from the reference link and just remove the Tailwind / Linting mentions (and the part about EventBrite and Netlify Forms since they don't apply to this project)

Will mark this PR as a draft as we get through the feedback items.

## GreenwoodJS Website Documentation


We use a combination of technologies to build the GreenwoodJS website
Copy link
Member

Choose a reason for hiding this comment

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

Looks like the formatting is a bit off here and there aren't any links, so let's make sure to get those in
Screenshot 2024-04-13 at 6 19 26 PM

You can check the source from the linked reference for an example
https://raw.githubusercontent.com/AnalogStudiosRI/www.blissfestri.com/main/src/stories/Documentation.stories.mdx

Also, I think if we can have these side links uppercased (I think we just need to rename the files to Documentation etc, that would be ideal.



## Colors
The following theme colors available are:
Copy link
Member

Choose a reason for hiding this comment

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

We'll definitely want to flesh this section out with examples like in the reference storybook
https://raw.githubusercontent.com/AnalogStudiosRI/www.blissfestri.com/main/src/stories/Styleguide.stories.mdx

## Typography
The whole website uses Vercel's **Geist** font in the following sizes:

`--hero-big`
Copy link
Member

Choose a reason for hiding this comment

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

For the design system tokens, I don't think the goal is to try and capture every token used throughout all pages like these --hero specific ones, but rather just the ones all other tokens should build / compose off of.

I think just the main colors, fonts, sizes, etc should be good to start out with. We don't need to predict every token right now, and this can totally evolve and grow as we build out the rest of the pages. 🏃‍♂️



## Spacing
The whole website is built on an 8pt Grid, and spacing is always in multiples of 8px
Copy link
Member

Choose a reason for hiding this comment

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

If we have any tokens for this, it would be good to document them here.

--color-white: #FFFFFF;
--font-primary: 'Geist', 'sans-serif';
--font-size-base: 16px;
--container-radius: 6rem;
Copy link
Member

Choose a reason for hiding this comment

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

similar to my comments above, we don't have to capture page / component specific tokens for the design system, we can start with just the ones that apply to broadest parts of the design that should be used everywhere, like colors and fonts. This can always grow as the site grows.

@thescientist13 thescientist13 marked this pull request as draft April 13, 2024 22:34
Copy link
Member

@thescientist13 thescientist13 left a comment

Choose a reason for hiding this comment

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

@Auhseh
It would be good if we get as many of the images we think we'll need in now if we're planning on committing a bunch of them. I think at least for the header we would need

  • Discord
  • X / Twitter
  • "App Launcher" (or whatever we call the icon we show when the header navigation is in mobile view)

This was referenced Apr 18, 2024
@Auhseh
Copy link
Contributor Author

Auhseh commented Apr 19, 2024

@Auhseh It would be good if we get as many of the images we think we'll need in now if we're planning on committing a bunch of them. I think at least for the header we would need

  • Discord
  • X / Twitter
  • "App Launcher" (or whatever we call the icon we show when the header navigation is in mobile view)

Added the other assets and also added a short ReadMe with a guide on how to use the assets in code.

@Auhseh
Copy link
Contributor Author

Auhseh commented Apr 19, 2024

Thanks @Auhseh for all this , looking good pretty good!

I just made some updates to get the colors and fonts showing in Storybook

Screenshot 2024-04-17 at 8 45 08 PM Screenshot 2024-04-17 at 8 49 41 PM

Left some comments in-line for and this one: what is the Grid_wh.svg for?

(also, I renamed the assets to be consistent casing and using - for the space, just a bit easier to have all the files named the same way)

Thanks, it's the Grid background, Renamed it and added context in the ReadMe

@Auhseh
Copy link
Contributor Author

Auhseh commented Apr 19, 2024

I think everything's pretty much ready, last thing would be to adding Description icons in the "Why Greenwood" section, pending when we articulate the copy.

@thescientist13
Copy link
Member

thescientist13 commented Apr 19, 2024

Thanks, let me review.

Let's try and keep the filename consistent as I had updated them to be something like some-name.png on the last change. I will fix the new ones added but just so we can keep the convention the same for everyone contributing to the project. 👍

Renamed it and added context in the ReadMe

Thanks, but I'm going to remove / clean this up since I was just asking as part of this conversation here in GitHub, I don't want to start documenting every single asset, ideally when we start using them their purpose will be clear, or even better we can use a more descriptive name.

Same goes for color variables, let me just move any relevant info into the storybook instead and / or apply a name change.

I also deleted the Menu.svg since I don't think that actually needs to be an image, just some text and CSS should do fine for that, and I assumed it might be flexible as a general "badge" like component.

@thescientist13
Copy link
Member

Thanks, it's the Grid background, Renamed it and added context in the ReadMe

Ok, I was hoping maybe we could handle all those with CSS, but maybe we will need these as SVGs?

Copy link
Member

@thescientist13 thescientist13 left a comment

Choose a reason for hiding this comment

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

This looks good! Going to leave it open a couple more days for a final review, then will merge. 🚀

Copy link
Member

@thescientist13 thescientist13 left a comment

Choose a reason for hiding this comment

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

As a side note, if anyone feels comfortable setting up build tools it might be a good time to start contributing on #24 as we start ramping up contributions. Feel free to reach out in that issue if you have any questions about getting started with that task. 🙏


## Spacing

The whole website is built on an 8pt Grid, and spacing is always in multiples of 8px
Copy link
Member

Choose a reason for hiding this comment

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

Or maybe we can just delegate to Open Props
https://open-props.style/#sizes

Copy link
Member

Choose a reason for hiding this comment

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

Will delegate to this higher level conversation, this is a good start for getting things up and running for contributions - #7 (comment)


* {
font-family: var(--font-primary);
font-size: var(--font-size-base);
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps we should also add box-sizing too?
https://css-tricks.com/almanac/properties/b/box-sizing/

Copy link
Member

Choose a reason for hiding this comment

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

Added!

Copy link
Member

@thescientist13 thescientist13 left a comment

Choose a reason for hiding this comment

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

This is great! I'll plan on following up with Linting / Formatting / Contribution Guidelines next and then at least that should allow to make an initial start on our Development Roadmap.

I'll also make sure to get a basic strategy documented around a more formal CSS Strategy as well.

@thescientist13 thescientist13 merged commit 2cf45b3 into main Apr 26, 2024
5 checks passed
@thescientist13 thescientist13 deleted the Auhseh-patch-1 branch April 26, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Greenwood specific documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Styleguide and Design System
2 participants