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

Feat: Theming Brandless #156

Merged
merged 7 commits into from
Jul 22, 2022
Merged

Feat: Theming Brandless #156

merged 7 commits into from
Jul 22, 2022

Conversation

renatamottam
Copy link
Collaborator

@renatamottam renatamottam commented Jul 22, 2022

What's the purpose of this pull request?

Ported from next.store repos: Feat: Theming brandless #119 & Feat: Theming Adjustments #175

This PR tests and improves the Theming proposal. We extracted all BaseStore visual to a new theme called soft-blue and left global tokens more clean. We also added a new theme for testing purposes, it's called midnight.

Additionally, we updated Storybook doc with more sections and descriptions.

How does it work?

Now you can create themes!
Just create a new .scss file on src/styles/themes and overwrite the tokens you want.
We created two themes to use as examples: soft-blue and midnight.

How to test it?

Checkout our new Storybook, with a special attention to: Getting Started, Customizing and Typography.

Screen Shot 2022-07-14 at 15 16 33

Checklist

Changelog

  • Added an entry in the CHANGELOG.md at the beginning of its due section. The latest version should comes first.
  • Added the PR number with the PR link at the entry in the CHANGELOG.md. E.g., New items in the pull_request_template.md (#4)

PR Description

  • Added a label according to the PR goal - Breaking change, Enhancement, Bug or Chore.
  • Added the component, hook, or pathname in-between backticks (``) - If applicable. E.g., ComponentName component.

Documentation

  • PR description
  • Added to/Updated the Storybook - if applicable.
  • For documentation changes, ping @ carolinamenezes, @ PedroAntunesCosta or @ Mariana-Caetano to review and update.

renatamottam and others added 2 commits July 22, 2022 17:23
* Fixes Incentives text color
* Improves text display on Hero and BannerText
* Fixes ProductShelf padding top
* Fixes tokens typo of button-buy
* Improves ProductCard tokens
* Creates Brandless theme
* Fixes color actions tokens
* Fixes ProductCard border
* Updates global Tokens to match Brandless style
* Removes Lato from Typography doc
* Fixes Toggle tokens with Brandless
* Creates two new themes
* Fixes Border Color hover token
* Fixes `SectionListProps`

* Fixes `Tiles` border-radius

* Adds missing TokenColor on Interactive Controls page

* Removes commented tokens from `CustomTheme`

* Fixes theme class on body

* Fixes `CartToggle` background color

* Adds links between `SlideOver` Use Cases components

* Fixes product-listing-pagination section

* Removes Themes dependencies

* Creates Themes pages

* Fixes `Alert` bkg

* Updates Changelog

* Adds `TokenTable` to `Typography` page

* Fixes Theme Section Storybook classes

* Improves `Typography` doc page

* Improves `Theme` doc pages titles

Co-Authored-By: Fanny Chien <[email protected]>

* Updates `Customizing` copy

Co-authored-by: Fanny Chien <[email protected]>

* Updates Changelog

Co-authored-by: Fanny Chien <[email protected]>

Co-authored-by: Fanny Chien <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
@renatamottam renatamottam added Documentation Improvements or additions to documentation Features New feature or request breaking change The changes contain a breaking change and require a major version bump. labels Jul 22, 2022
@renatamottam renatamottam self-assigned this Jul 22, 2022
@vercel
Copy link

vercel bot commented Jul 22, 2022

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

Name Status Preview Updated
gatsby-store-storybook ✅ Ready (Inspect) Visit Preview Jul 22, 2022 at 9:06PM (UTC)

@vtex-sites
Copy link

vtex-sites bot commented Jul 22, 2022

Preview is ready

This pull request generated a Preview

👀   Preview: https://preview-156--gatsby.preview.vtex.app
🔬   Go deeper by inspecting the Build Logs
📝   based on commit 751a2f0

@renatamottam renatamottam marked this pull request as ready for review July 22, 2022 21:03
@vtex-sites
Copy link

vtex-sites bot commented Jul 22, 2022

Lighthouse Reports

Here are the Lighthouse reports of this Pull Request

📝 Based on commit 751a2f0

Lighthouse Report by page
📎   /
📎   /apple-magic-mouse/p
📎   /office

Copy link
Contributor

@filipewl filipewl 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! Besides comparing most of the file changes with the other merged PRs, I also did some visual comparisons in the store and Storybook; they all looked identical!
👏

Copy link
Member

@eduardoformiga eduardoformiga left a comment

Choose a reason for hiding this comment

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

Amazing!

Looks the merge of the related PRs on Next + Gatsby framework adaptations. 🎉

@renatamottam renatamottam merged commit 89802ce into main Jul 22, 2022
@renatamottam renatamottam deleted the feat/theming-brandless branch July 22, 2022 23:03
Copy link
Contributor

@hellofanny hellofanny left a comment

Choose a reason for hiding this comment

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

Niceee! 🚀 @renatamottam
Just a question: Is there any place that we mention the meaning of the alert icon⚠️ next to the component's name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change The changes contain a breaking change and require a major version bump. Documentation Improvements or additions to documentation Features New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants