Editing components
Discover how to modify a Figma component using the Badge component as an example, where we demonstrate how to adjust the border radius and padding.
Instructions
- Navigate to the Badge page within the main Library page.
- Locate the Badge / Text component in the Components section.
- Select the primary Badge component.
- While holding Shift + Ctrl (Shift + Command on Mac), select the Default, Hover, and Focus states, then adjust the horizontal padding from the spacing/2 (8px) variable to the spacing/3 (12px) variable.
- With these states still selected, modify the border radius from the rounded-md (8px) variable to the rounded-full variable.
- Update the border radius on the Ring by holding Ctrl + Shift (Command + Shift on Mac).
- Leave a comment for the developer detailing your changes.
Up next
Creating new component variants
Creating new variants allows you to extend the shadcn/ui system while maintaining consistency with the existing design language. This guide demonstrates how to add a new "Warning" variant to the Button component in Figma.