# Appearance

The [React Gauge component](https://www.telerik.com/kendo-react-ui/components/gauges) enables you to [set its width and height](https://www.telerik.com/kendo-react-ui/components/gauges/styling#dimensions-and-resizing), [customize its color](https://www.telerik.com/kendo-react-ui/components/gauges/styling#color), and [use CSS custom properties in color configurations](https://www.telerik.com/kendo-react-ui/components/gauges/styling#css-custom-properties).

## Dimensions and Resizing

By default, the ArcGauge is rendered in a 200x200 px size while the LinearGauge and RadialGauge expand to the full width of the container element. To set a different size, use the `style` attribute—for example, `style="width: 100%; height: 100%;"` accommodates the component in the container element.

The components automatically resize and redraw their content when the size of their elements changes—for example, as a result of a browser window resizing.

## Color

The colors of the Gauges are derived from the active [KendoReact theme](https://www.telerik.com/design-system/docs/themes/kendo-themes/meridian/customization/). It is possible to customize them through the [theme variables](https://www.telerik.com/design-system/docs/themes/kendo-themes/meridian/theme-variables/) and the configuration.

## CSS Custom Properties

Instead of manually resolving CSS variables with `getComputedStyle()`, you can now pass CSS custom properties directly to gauge color configurations. The Gauges automatically resolve them from the component's DOM context. Existing color specifications using hex codes, RGB values, or named colors continue to work unchanged.

Use any of these formats to reference a custom property:

* `"--success"` — Direct reference
* `"var(--warning)"` — CSS `var()` function
* `"var(--error, #ff0000)"` — CSS `var()` function with fallback value

CSS custom properties work with these gauge color settings:

| Component                | Property                          |
| ------------------------ | --------------------------------- |
| ArcGauge, CircularGauge  | `color` and `colors`              |
| LinearGauge, RadialGauge | `pointer.color` (single or array) |

The following demos show CSS custom properties across all gauge types.

### ArcGauge

[Demo Source](https://demos.telerik.com/kendo-react-ui/gauges/arc-gauge/css-variables/source.txt)

### CircularGauge

[Demo Source](https://demos.telerik.com/kendo-react-ui/gauges/circular-gauge/css-variables/source.txt)

### LinearGauge

[Demo Source](https://demos.telerik.com/kendo-react-ui/gauges/linear-gauge/css-variables/source.txt)

### RadialGauge

[Demo Source](https://demos.telerik.com/kendo-react-ui/gauges/radial-gauge/css-variables/source.txt)

## Suggested Links

* [API Reference of the Gauges](https://www.telerik.com/kendo-react-ui/components/gauges/api)
* [Creating Custom Styles](https://www.telerik.com/kendo-react-ui/components/styling/theme-builder)
