Bird
Raised Fist0
Figmabi_tool~10 mins

Corner radius and smoothing in Figma - Interactive Code Practice

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the corner radius of a rectangle in Figma.

Figma
rectangle.cornerRadius = [1]
Drag options to blanks, or click blank then click option'
AsetRadius(10)
B'10px'
Cradius(10)
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string like '10px' instead of a number.
Trying to call a function to set radius.
2fill in blank
medium

Complete the code to set the smoothing of a rectangle's corners in Figma.

Figma
rectangle.cornerSmoothing = [1]
Drag options to blanks, or click blank then click option'
A1.5
B0.5
C'0.5'
Dsmooth(0.5)
Attempts:
3 left
💡 Hint
Common Mistakes
Using a value greater than 1.
Using a string instead of a number.
3fill in blank
hard

Fix the error in setting corner radius and smoothing for a rectangle.

Figma
rectangle.cornerRadius = [1]
rectangle.cornerSmoothing = 0.7
Drag options to blanks, or click blank then click option'
A'15px'
BsetRadius(15)
C15
Dradius(15)
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string like '15px'.
Trying to call a function to set radius.
4fill in blank
hard

Fill both blanks to set corner radius and smoothing correctly.

Figma
rectangle.cornerRadius = [1]
rectangle.cornerSmoothing = [2]
Drag options to blanks, or click blank then click option'
A20
B0.3
C'0.3'
D'20px'
Attempts:
3 left
💡 Hint
Common Mistakes
Using strings instead of numbers.
Setting smoothing outside the 0-1 range.
5fill in blank
hard

Fill all three blanks to create a rectangle with corner radius and smoothing, then log the values.

Figma
const rect = figma.createRectangle()
rect.cornerRadius = [1]
rect.cornerSmoothing = [2]
console.log('Radius:', [3])
Drag options to blanks, or click blank then click option'
A15
B0.6
Crect.cornerRadius
D'15px'
Attempts:
3 left
💡 Hint
Common Mistakes
Logging a string instead of the property.
Using strings for numeric properties.

Practice

(1/5)
1. What does the corner radius setting do in Figma when designing charts?
easy
A. It adds shadows to the chart for depth.
B. It changes the color of the chart elements.
C. It rounds the edges of shapes to make them softer.
D. It adjusts the size of the chart.

Solution

  1. Step 1: Understand the role of corner radius

    Corner radius is used to round the edges of shapes, making them look softer and less sharp.
  2. Step 2: Relate to chart design

    In charts, applying corner radius smooths the edges of bars or shapes, improving visual appeal.
  3. Final Answer:

    It rounds the edges of shapes to make them softer. -> Option C
  4. Quick Check:

    Corner radius = Rounded edges [OK]
Hint: Corner radius always softens edges by rounding them [OK]
Common Mistakes:
  • Confusing corner radius with color or size changes
  • Thinking it adds shadows instead of rounding edges
2. Which of the following is the correct way to set a corner radius of 10 pixels in Figma's properties panel?
easy
A. Enter 10 in the corner radius input box.
B. Type radius: 10px in the code editor.
C. Select the shape and drag the smoothing slider to 10.
D. Right-click the shape and choose 'Add radius 10'.

Solution

  1. Step 1: Identify how corner radius is set in Figma

    Figma uses a corner radius input box where you enter a numeric value (without units) to set the radius in pixels.
  2. Step 2: Match the correct method

    Typing '10' in the corner radius input box correctly sets the radius to 10 pixels.
  3. Final Answer:

    Enter 10 in the corner radius input box. -> Option A
  4. Quick Check:

    Corner radius input = numeric value [OK]
Hint: Enter number only in corner radius box, no units needed [OK]
Common Mistakes:
  • Adding 'px' units which Figma does not require
  • Confusing smoothing slider with corner radius input
  • Using right-click menu which doesn't set radius
3. Given a rectangle with corner radius set to 20 and smoothing set to 50%, what visual effect will you see?
medium
A. Sharp corners with no rounding.
B. Rounded corners with smooth, natural curves.
C. Corners become square and edges sharpen.
D. Corners disappear and shape becomes a circle.

Solution

  1. Step 1: Understand corner radius effect

    Corner radius of 20 means the corners are rounded with a radius of 20 pixels.
  2. Step 2: Understand smoothing effect

    Smoothing at 50% makes the corners appear more natural and curved rather than angular or mechanical.
  3. Final Answer:

    Rounded corners with smooth, natural curves. -> Option B
  4. Quick Check:

    Corner radius + smoothing = smooth rounded corners [OK]
Hint: Smoothing softens the curve shape of rounded corners [OK]
Common Mistakes:
  • Thinking smoothing removes rounding
  • Confusing smoothing with corner radius size
  • Assuming corners become square with smoothing
4. You set a corner radius of 15 but the corners still look sharp. What is the most likely reason?
medium
A. The fill color is transparent, hiding the corners.
B. The shape is not selected, so changes don't apply.
C. The corner radius input was set to 150 by mistake.
D. The smoothing value is set to 0%, making corners angular.

Solution

  1. Step 1: Analyze corner radius and smoothing interaction

    Even with corner radius set, smoothing controls how curved the corners appear. At 0%, corners remain angular despite radius.
  2. Step 2: Check other options

    Selection and input errors would cause no change or wrong radius, but sharp corners with radius 15 usually mean smoothing is zero.
  3. Final Answer:

    The smoothing value is set to 0%, making corners angular. -> Option D
  4. Quick Check:

    Smoothing 0% = sharp corners despite radius [OK]
Hint: Check smoothing slider if corners stay sharp [OK]
Common Mistakes:
  • Ignoring smoothing effect on corner shape
  • Assuming fill color affects corner rounding
  • Not verifying shape selection before editing
5. You want to create a dashboard bar chart with bars that have soft, natural corners. Which combination of corner radius and smoothing should you use?
hard
A. Corner radius 15, smoothing 50%
B. Corner radius 0, smoothing 100%
C. Corner radius 30, smoothing 0%
D. Corner radius 5, smoothing 0%

Solution

  1. Step 1: Define soft, natural corners

    Soft corners require a noticeable corner radius and smoothing to curve the edges naturally.
  2. Step 2: Evaluate options

    Corner radius 15, smoothing 50% has a moderate radius (15) and smoothing (50%) which creates soft, natural curves. Others either have zero radius or zero smoothing, resulting in sharp or no rounding.
  3. Final Answer:

    Corner radius 15, smoothing 50% -> Option A
  4. Quick Check:

    Soft corners = radius + smoothing > 0 [OK]
Hint: Use both radius and smoothing above zero for soft corners [OK]
Common Mistakes:
  • Setting smoothing to 0% which keeps corners sharp
  • Using zero corner radius which means no rounding
  • Confusing high smoothing with no radius effect