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

Devx1435 Design tokens + improve card styles #160

Merged
merged 14 commits into from
Jul 30, 2024

Conversation

oomIRL
Copy link
Contributor

@oomIRL oomIRL commented Jul 12, 2024

Design tokens + Improved card styling

I added the design tokens package and integrated the tokens into the theme.
In most cases the switch to tokens is rather subtle. However, the tokens have a high contrast focus, promoting accessibility. This is most noticeable with icon coloring; icons are significantly darker. Additionally, focused user input fields such as search bars and drop downs also have a brighter border color.

I styled the homepage cards to resemble what we see on the BC gov Homepage
In an effort to appear more "brand" consistent with other bc gov sites, I also added some of the button and header styles.
Although the card styles are mostly a flat white style, the /create cards still have some light decoration. This is because the /create page has a white background, and the cards didn't offer much visual separation.

codewise
I pulled the HomePage cards out into their own component. I think logically separating these simplifies the organization of the codebase, since the rest of the HomePage will likely remain static, and the new HomePageCards component is in a better place to potentially transition into more dynamic content.

Preview branch here

@oomIRL oomIRL added the preview Tag with this label to build and deploy a pull-request label Jul 12, 2024
Copy link
Contributor

@jenreiher-bcgov jenreiher-bcgov 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 amazing! So happy to see so many fewer manual hex codes and hard-coded things here :)

Copy link
Contributor

@MonicaG MonicaG left a comment

Choose a reason for hiding this comment

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

Nice work on pulling the HomePageCards and HomeHeaderText out of HomePage!

main: '#FF5630',
light: '#FF8F73',
main: tokens.iconsColorDanger,
light: tokens.supportSurfaceColorDanger,
dark: '#DE350B',
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there dark tokens that can be used here and the following code blocks vs the hex codes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@MonicaG Thanks!
Unfortunately, there aren't dark tokens for success/info/error, at least based on the figma document. There is a dark red "dangerButton.hover" token that could be used for "error.dark", but I opted to leave the those colors as is.
I can bring this up with Tyler Krys. Less hex codes sounds good to me!

@oomIRL oomIRL removed the preview Tag with this label to build and deploy a pull-request label Jul 30, 2024
@oomIRL oomIRL merged commit c91257e into main Jul 30, 2024
10 checks passed
@oomIRL oomIRL deleted the DEVX1435-ImproveWizardCardStyle branch July 30, 2024 18:43
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.

3 participants