--- title: CSS Variables description: Using token-aware CSS variables in Chakra UI --- ## Overview CSS variables have become the defacto way to create shared values on the web. It's very useful to avoid prop interpolations, classname regeneration, and reduce runtime evaluation of token values. ## Examples ### Basic Use the `css` prop to create css variables ```jsx

Hello

Hello

``` ### Access tokens Use the full token path to access tokens ```jsx

Hello

``` Here's an example of how to access size tokens ```jsx

Hello

``` ### Responsive Styles Use the responsive syntax to make css variables responsive ```jsx

Hello

Hello

``` ### Color Opacity Modifier When accessing color tokens, you can use the opacity modifier to access the color with an opacity. The requirement is to use the `{}` syntax. ```jsx

Hello

``` ### Virtual Color Variables can point to a virtual color via the `colors.colorPalette.*` value. This is useful for creating theme components. ```jsx

Hello

```