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

ZUI Avatar #2535

Open
wants to merge 1 commit into
base: undocumented/new-design-system
Choose a base branch
from
Open

Conversation

Herover
Copy link
Collaborator

@Herover Herover commented Feb 2, 2025

Description

This PR adds a ZUIAvatar component with a background generated based on a ID. It supports 3 sizes and rounded/circular shapes.

Screenshots

image image

Changes

  • Adds ZUIAvatar component

Notes to reviewer

You can see different variations by viewing it in the storybook and increment/decrement the id. The same id should always result in the same background.

The background is currently a linear gradient with 2 random colors and a random rotation, a box in the top-left corner and a line in the bottom-right corner. Keeping the positions static makes the backgrounds somewhat predictable, would it be better to randomize the locations and number of colorful shapes?

The colors loaded from the palette, but the types didn't allow just loading all of them so I there's some messing with types. Would it be better to only use a list of known good colors?
Alternatively, I left some commented out code that generates colors sort of with the same "feeling" to them.

Related issues

Resolves #2505

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.

1 participant