No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

Radius

Radius can be used to separate different content from each other. Etc.

The variables

Root's has 5 radius variables.

SizeVariableValue
none--ab-border-radius-none0px
100--ab-border-radius-1002px
200--ab-border-radius-1004px
300--ab-border-radius-3008px
400--ab-border-radius-40016px

The border variables can be applied to the border property like this:

.my-card {
  border: var(--ab-border-radius-100) solid black;
}

Applying radius

To make a border-radius around anything you can use the ab-container utility component. It allows you to apply border-radius by using certain modifiers.

Example

Show source
Oh no! The source is not available.

Padding

Class (CSS)Attribute (Web Component)
ab-container--radius-100radius="100"
ab-container--radius-200radius="200"
ab-container--radius-300radius="300"
ab-container--radius-400radius="400"