UX Lift logo

@function | CSS-Tricks

The CSS @function at‑rule lets you define reusable, typed custom functions with arguments, defaults, and cascade‑aware results—while prohibiting side effects and circular calls; support remains experimental.

More from CSS Tricks

© 2026. Made in Manchester by Matt Kevan.

Privacy

Cookies

Contact