Jane Ori walks through CSS custom functions: encapsulate reusable styling behaviors with the @function, accept typed arguments with defaults, keep internal variables private, and validate return types with the returns descriptor. Also covers limitations like no recursion, catalogs DX gotchas around silent failures and unreachable fallbacks, and shares hopes for future spread syntax.
frontendmasters.com/blog/the-fundamentals-and-dev-experience-of-css-function
