Skip to main content

Border Radius

Rounded corners are mostly a stylistic choice to make the Grafana UI appear more modern, feel more friendly, and add extra sense of "polish" to the visual elements.

The measurement of rounded corners is border radius, and it can be defined in pixels or percentages.

Default Border Radius

This is the general border radius or shape.radius.default, has a definition of 2px and is used for most UI elements, e.g. Buttons, Popover Panels, Tooltips, Widgets, Dialogs, etc.

![standard border radius](/img/shape.radius.default.png 'Visual depiction of standard border radius in Grafana's UI')

Pill Border Radius

The pill border radius or shape.radius.pill, has a pixel definition of 9999px. This styling occurs less often in Grafana's UI. Smaller UI elements, such as switches, use the pill radius for a smooth, clean edge around their rounded elements.

Do Smaller elements use the pill styling

Dont Do not use the default styling

Circle Border Radius

The circle border radius or, has a pixel definition of 100%. This styling also occurs less often in Grafana's UI, providing a full circular shape to elements.

![circle border radius](/img/ 'Visual depiction of the circle border radius in Grafana's UI')