CSS Functions

Beginner
119 Tutorials
Updated: Nov 2026

What You’ll Learn

CSS value functions compute colors, sizes, transforms, and more. Start with calc(), clamp(), and var(), then explore color, gradient, filter, and grid helpers.

Function Index

Math Functions

Calculate sizes, clamp values, and use numeric helpers.

Color Functions

Build and mix colors in modern color spaces.

Image & Gradient Functions

Paint backgrounds with gradients and image sets.

Filter Functions

Adjust blur, brightness, contrast, and shadows.

Transform Functions

Move, rotate, scale, and skew elements.

Reference Functions

Read variables, URLs, attributes, and environment values.

Grid Functions

Size and repeat CSS Grid tracks.

Shape Functions

Create clip paths and geometric shapes.

Easing, Counters & Timelines

Timing curves, counters, scroll timelines, and tree counting.

More Functions

Additional CSS value functions.

Frequently Asked Questions

A CSS value function computes a value for a property, such as calc() for sizes or rgb() for colors.
No. :hover is a pseudo-class. calc() is a value function used inside property values.
Start with calc(), min(), max(), clamp(), var(), rgb()/hsl(), and linear-gradient().
Core functions are widely supported. Newer color and math functions need progressive enhancement.
Open calc(), then clamp() and var(). Pair functions with the Values & Types section.

Next: CSS calc() Function

Start with the first tutorial in this section.

Continue →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

6 people found this page helpful