Skip to main content

Chassis v5.4.0

Shape utilities

Shape utilities are used to change an element's border-radius.

Rounded corners

ch-rounded classes add a border-radius in increments of 4px.

<img class="ch-rounded--none" />
<!-- border-radius: 0; -->

<img class="ch-rounded--sm" />
<!-- border-radius: 4px; -->

<img class="ch-rounded--md" />
<!-- border-radius: 8px; -->

<img class="ch-rounded--lg" />
<!-- border-radius: 12px; -->

Circle

ch-circle adds a border-radius of 50%, turning an element into a circle if the height and width match.

<img
  src="https://source.unsplash.com/GYozuXsPmCU/120x120"
  class="ch-circle"
  alt=""
/>