--- title: CSS Custom Properties description: "Yamada UI provides features to easily create and reference CSS custom properties." --- ## Usage To create a [CSS custom property (variable)](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties), set a property with the `--` prefix in either props or `css`. ```tsx ``` To reference custom properties, use CSS [var](https://developer.mozilla.org/en-US/docs/Web/CSS/var) or `{}` ([interpolation](https://yamada-ui.com/docs/styling/interpolation.md)). ```tsx Box ``` :::warning Custom properties you set will only apply to child elements of the element where they are defined. ::: Additionally, custom properties can reference [theme](https://yamada-ui.com/docs/theming.md) tokens. ```tsx Box ```