Functions In CSS?! | CSS-Tricks
Briefly

The recent introduction of CSS functions in Chrome Canary represents a significant evolution in stylesheet capabilities. Unlike static custom properties, these functions allow users to write parameterized styles. Authors can create dynamic styles by using functions that return values based on the arguments passed. With examples and an accessible spec, developers are encouraged to explore how these functions can enhance their CSS workflows, despite the current limitations of the experimental flag. Overall, CSS functions promise a more robust styling capability, moving beyond mere syntactic sugar.
Custom functions allow authors the same power as custom properties, but parameterized. They can return different values based on the arguments passed, enhancing CSS capabilities.
While basic functions might seem akin to custom properties, the potential lies in their parameterization, allowing dynamic returns that can tailor styles effectively across multiple usages.
Read at CSS-Tricks
[
|
]