# custom-property-no-missing-var-function Disallow missing `var` function for custom properties. ```css :root { --foo: red; } a { color: --foo; } /** ↑ * This custom property */ ``` This rule only reports custom properties that are defined within the same source. The [`message` secondary option](../../../docs/user-guide/configure.md#message) can accept the arguments of this rule. ## Options ### `true` The following patterns are considered problems: ```css :root { --foo: red; } a { color: --foo; } ``` ```css @property --foo {} a { color: --foo; } ``` The following patterns are _not_ considered problems: ```css :root { --foo: red; } a { color: var(--foo); } ``` ```css @property --foo {} a { color: var(--foo); } ```