In the Figmaster - Lessons Figma file, open the 3.9 Button page.
Plugins in this chapter
Step 1. Page
- Paste the Badge page on the canvas.
- Change the name of the frame and header title to Button.
- Readjust Menu items states.
- Link to 2.3 Button page in the Header's Button.
- Change the Component text in the Content group to Component: Size Normal.
- Duplicate the Component: Size Normal text.
- Change the new copy's text to Primary.
- Change its text style to Heading/S.
Step 2. States - Size Normal
Part 1. Primary
- Delete each Badge component in Wrapper groups.
- Change the text label in each Component Wrapper:
- Primary to Default.
- Danger to Hover.
- Info to Focused.
- Success to Pressed.
- Warning to Disabled.
- In the Assets panel, find the Button and drop it in each Wrapper.
- In the Variants panel, change the State for each Button component to match its Component Wrapper's label.
- Select each Wrapper in Component Wrapper.
- Press CTRL + D two times to duplicate the Wrappers to the bottom.
- Select the second row of Wrappers and press Enter to select all button components inside.
- In the Variants panel, change their Content property to Icon Text.
- Select the third row of Wrappers and press Enter to select all button components inside.
- In the Variants panel, change their Content property to Icon Only.
Part 2. Secondary
- Duplicate the Primary heading.
- Move it below the Component States group with the Down Arrow key.
- Change its text to Secondary.
- Duplicate the Component States group.
- Move it below the Secondary heading with the Down Arrow key.
- Select all Wrappers and press Enter to select all button components inside.
- In the Variants panel, change their Type property to Secondary.
Part 3. Outlined
- Duplicate the Secondary heading.
- Move it below the Component States group with the Down Arrow key.
- Change its text to Outlined.
- Duplicate the Component States group.
- Move it below Outlined heading with the Down Arrow key.
- Select all Wrappers and press Enter to select all button components inside.
- In the Variants panel, change their Type property to Outlined.
Part 4. Danger and Text
Repeat the action for Danger and Text Buttons.
Step 3. States - Size Big
- In the Layers panel, select the Group layer (Header + Content > Content > Group).
- Duplicate it with CTRL + D. The new Group will be created below.
- Having the new Group selected, drag it outside the Button page.
- In the new Group copy, change the heading from Component: Size Normal to Component: Size Big.
- Open the Similayer plugin. The Figmaster plugin will close, but you will find the instructions for this step in Figma too.
- Select the Button / Primary / Default inside the Group outside the page (the first one in the top left corner).
- In the Similayer plugin UI, select the Limit selection within root frame checkbox (bottom right corner).
- In the left panel, find the Other variants property and click on it.
- Press the Select layers button. All button variants within the Group frame will be selected.
- In the Variants panel, change the Size property to Big.
- Select the Group and cut it CTRL + X.
- Paste it inside the Button page in the Content group under Group.
Summary
Awesome work! The methods you just learned in the last three chapters should help you practice creating documentation for the rest of the components. Next, open the Figmaster Design System and try to recreate some of the documentation pages by yourself. Recreating Card, Checkbox, Dropdown, and Input pages will be a great practice.