Skip to main content

Harshal V. LADHE

CSS Custom Functions with @function

Defining reusable, typed CSS functions with `@function` that return values, read custom properties and re-evaluate live in the browser.

Content tagged at-function

  • Tutorial:CSS Custom Functions with @function: Reusable Logic Without Sass

    Native, reusable CSS functions with parameters — no Sass needed.
    Define native CSS custom functions with @function: typed parameters, defaults, fallbacks for older browsers, how they differ from Sass, and when to use them.
    Published at:
    Categories:CSS
    Estimated reading time:9 min read