CSS Code Completion Medium +20 XP
CSS Variable
Complete the CSS custom property usage.
CSSFill in the blank
:root { --primary: #229c6b; }
.btn { background: ___(--primary); }Type the missing code
Show answer and explanation
Answer: var
CSS custom properties (variables) are accessed with the var() function.
Hint: Custom properties use a special function.
What this challenge tests
Code Completion in CSS: css-variables, custom-properties.