FRONTEND·중요도 6·2026. 06. 03.·CSS-Tricks

@function

── KO ──────────────────

@function 규칙은 CSS 커스텀 함수를 정의합니다.

@function은 CSS의 사용자 정의 기능을 정의하는 at-rule입니다. 이러한 커스텀 함수는 인수를 받고 복잡한 논리를 포함하며, 해당 논리에 기반한 값을 반환할 수 있는 재사용 가능한 CSS 블록입니다. 이 기능을 통해 CSS의 유연성과 기능성을 높일 수 있습니다.


── EN ──────────────────

@function defines CSS custom functions and enhances CSS flexibility.

@function is an at-rule that defines CSS custom functions. These custom functions are reusable blocks of CSS that can accept arguments, incorporate complex logic, and return values based on that logic. This functionality enhances the flexibility and capabilities of CSS.

원문 보기 →목록으로