🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference › At-rules › @function
function - CSS - MDN Web Docs - Mozilla
January 6, 2026 - The @function CSS at-rule enables defining CSS custom functions. Once defined, a custom function can be called using the syntax (for example, --my-function(30px, 3)) within any property value.
🌐
W3Schools
w3schools.com › cssref › css_functions.php
CSS Functions Reference
accent-color align-content align-items align-self all animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function aspect-ratio backdrop-filter backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-position-x background-position-y background-repeat background-size block-size border border-block border-block-color border-block-end border-block-end-color border-block-
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference › Values › Functions
CSS value functions - MDN Web Docs
January 20, 2026 - CSS value functions are statements that invoke special data processing or calculations to return a CSS value for a CSS property. CSS value functions represent more complex data types and they may take some input arguments to calculate the return value.
🌐
CSS-Tricks
css-tricks.com › functions-in-css
Functions in CSS?! | CSS-Tricks
March 3, 2025 - I was drinking coffee when I read the news on Chrome prototyping functions in CSS and… I didn’t spit it or anything. I was excited, but thought “functions” in CSS would be just like mixins in Sass — you know, patterns for establishing reusable patterns.
🌐
web.dev
web.dev › learn › css › functions
Functions - CSS
June 6, 2025 - A function is named so you can call it within your code and you can pass data into the function. This is known as passing arguments. A lot CSS functions are pure functions, which means that if you pass the same arguments into them, they will always give you the same result back, regardless of what is happening in the rest of your code.
🌐
Una
una.im › 5-css-functions
una.im | 5 Useful CSS functions using the new @function rule
August 13, 2025 - This capability is an absolute game-changer for writing more organized and dynamic CSS. While custom properties let you store a dynamic value that you access with var(), a custom function can run logic. It accepts arguments you pass to it, and spits out a new value.
🌐
The Odin Project
theodinproject.com › lessons › node-path-intermediate-html-and-css-css-functions
CSS Functions | The Odin Project
Similar to programming languages, functions in CSS are reusable pieces of code which perform specific tasks. Functions are passed “arguments” between parentheses, each of which is used by the function in a specific way.
🌐
CSS-Tricks
css-tricks.com › complete-guide-to-css-functions
CSS Functions Guide | CSS-Tricks
August 21, 2025 - This function takes two arguments and calculates a result from the operator (+, -, *, /) you supply it, provided those arguments are numbers with or without an accompanying unit. Unlike CSS preprocessors such as Sass, calc() can mix units, meaning you can do things like subtract 6rem from 100%. calc() is also updated on the fly, so if that 100% represents a width, it’ll still work if that width changes.
🌐
W3C
w3.org › TR › css-mixins-1
CSS Functions and Mixins Module
May 15, 2025 - This module defines the ability for authors to define custom functions, acting similar to parametrized custom properties. They can use the full power of CSS’s values and conditional rules. It also defines an early form of a similar idea for CSS rule mixins, allowing parametrized substitution ...
Find elsewhere
🌐
Quackit
quackit.com › css › functions
CSS Functions
Alphabetical list of CSS functions included in CSS3.
🌐
Sass
sass-lang.com › documentation › at-rules › function
Sass: @function
Functions are defined using the @function at-rule, which is written @function <name>(<arguments...>) { ... }. A function’s name can be any Sass identifier that doesn’t begin with --. It can only contain universal statements, as well as the @return at-rule which indicates the value to use as the result of the function call. Functions are called using the normal CSS function syntax.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Guides › Custom_functions_and_mixins › Using_custom_functions
Using CSS custom functions - CSS | MDN
CSS custom functions enable you to create reusable blocks of CSS code that can accept arguments, contain complex logic (defined using features such as CSS if() functions and @media at-rules), and return values based on that logic. They work similarly to CSS custom properties, but provide more ...
🌐
DEV Community
dev.to › web_dev-usman › every-css-function-you-need-with-practical-examples-23h
Every CSS Function You Need – With Practical Examples - DEV Community
April 5, 2025 - Here’s a complete cheat sheet of CSS functions, neatly organized by category for quick reference....
🌐
GeeksforGeeks
geeksforgeeks.org › css › css-functions-complete-reference
CSS Functions Complete Reference - GeeksforGeeks
July 12, 2025 - CSS functions are used to dynamically define or manipulate property values in stylesheets, making designs more flexible and responsive.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › CSS_Values_and_Units › CSS_Value_Functions
CSS value functions - MDN - Mozilla
October 8, 2025 - CSS value functions are statements that invoke special data processing or calculations to return a CSS value for a CSS property. CSS value functions represent more complex data types and they may take some input arguments to calculate the return value.
🌐
The Knowledge Academy
theknowledgeacademy.com › blog › css-functions
CSS Functions: Enhance Your Styling Capabilities
September 9, 2025 - With these functions, developers can precisely control colours and create gradients, shadows, and other effects. CSS offers functions like ‘linear-gradient()’ and ‘radial-gradient()’ to create smooth transitions between two or more colours. Gradients add depth and richness to backgrounds and elements.
🌐
YouTube
youtube.com › watch
First look at FUNCTIONS in CSS!!! (it's a game changer) - YouTube
Get updates about new videos → https://tinyurl.com/yuu8x8myFollow me on Twitter: https://x.com/dmtrmrvFollow me on Bluesky: https://bsky.app/profile/dmtrmrv....
Published   March 6, 2025
🌐
Chrome Developers
developer.chrome.com › blog › css conditionals with the new if() function
CSS conditionals with the new if() function | Blog | Chrome for Developers
Learn about the new CSS if function, which enables a cleaner developer interface for dynamic styles like style queries and media queries.