Skip to content

Adding "thin" icon variants for <Icon /> component #583

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

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

thelevicole
Copy link
Collaborator

This PR introduces a new weight property to the <Icon /> component, allowing you to choose between different icon weights. The available values are:

  • default (Figma token path: click.image.borderWidth.default)
  • thin (Figma token path: click.image.borderWidth.thin)

Internally, the weight property is applied with CSS by targeting SVG elements with a stroke width of 1.5. This approach is similar to how the color and stroke properties are implemented, but it specifically targets a stroke width which is safe to change.

Example usage:

<Icon name="activity" weight="thin" />

@thelevicole thelevicole requested a review from gjones April 8, 2025 16:43
Copy link

vercel bot commented Apr 8, 2025

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

Name Status Preview Comments Updated (UTC)
click-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2025 4:44pm

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