Complete the code to define a reusable button component in Figma's design system.
component Button {
width: 100px;
height: 40px;
background-color: [1];
border-radius: 4px;
}The background color of the button should be a hex color code like #007AFF to style it properly.
Complete the code to apply consistent padding inside a card component.
component Card {
padding: [1];
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}Padding of 16px is a common spacing value in design systems to maintain consistency.
Fix the error in the code to correctly define a text style in the design system.
textStyle Heading {
font-family: 'Roboto', sans-serif;
font-weight: [1];
font-size: 24px;
line-height: 32px;
}Font-weight in design systems is often defined using numeric values like 700 for bold.
Fill both blanks to create a scalable grid layout in the design system.
layout Grid {
columns: [1];
gap: [2];
width: 100%;
}A 12-column grid with 16px gap is a common standard for responsive design systems.
Fill all three blanks to define a responsive button with hover effect in the design system.
component Button {
background-color: [1];
padding: [2];
&:hover {
background-color: [3];
}
}The button uses a base blue color #005BBB, padding of 12px 24px for comfortable size, and a darker blue #003F7F on hover for clear feedback.