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

  1. Navigate to the Badge page within the main Library page.
  2. Locate the Badge / Text component in the Components section.
  3. Select the primary Badge component.
  4. 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.
  5. With these states still selected, modify the border radius from the rounded-md (8px) variable to the rounded-full variable.
  6. Update the border radius on the Ring by holding Ctrl + Shift (Command + Shift on Mac).
  7. 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.