<type>

A generic keyword used in newer CSS specs (like Mixins and Functions) to denote a specific data type requirement for a variable or argument.

This is an experimental technology. The syntax and behavior are still subject to change.

/* Usage Example */
/* (Hypothetical usage in custom functions) */
@function --my-color(--clr <color>) {
  /* Requires an argument that matches the <color> type */
}
Limited availability Since 2020 67% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

139+
139+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC