Skip to main content

Levels and Shapes

Use levels and shapes to facilitate understanding of how the interface and components work, as well as expressing and reinforcing the RD Station brand principles.

Rounding

You can apply 3 types of rounding to elements:

Rounding table
TokenValueUsage
--border-radius-rounded2pxStandard rounding, used on components when needed.
--border-radius-circle50%Full rounding, used for elliptical formations, applied in specific cases.
--border-radius-pill999pxFull round, used for circular formations, these elements need to be the same width and height.

Elevation

They are evidenced by the use of shadows. Used to establish a visual hierarchy, create prominence and increase contrast between interface elements and regions.

Elevation table
TokenLevelUsage
1It is the lowest level of the interface. Use cases: texts, buttons, forms and images.
--shadow-xs2Where are the elements that are a little more prominent than the level 1 information. Use cases: navigation bars, raised cards, and state changes of elements that are already on the screen.
--shadow-sm3Elements that appear after an interaction and must be related to level 1 or 2 triggers. Use cases: Dropdown, Popover and DatePickers.
--shadow-md4One of the highest levels of elevation, with elements that need more prominence than lower ones. Ideal for elements that are not present on the screen initially, but need attention and focus. Use cases: Toast.
--shadow-lg5It is the highest level of the interface, reserved for elements that need full prominence or even isolation from the rest of the information. Use cases: Drawer on light background.
--shadow-xl6It should only be applied to elements that need to be highlighted on a dark background (overlay). Use cases: Modal, Dialog and Drawer on dark background.

Z-index

The z-index play an important role in how components overlap and interact with each other.

Z-index table
TokenLevelUsage
--zindex-autoAutoChange z-index value to default position according to ordering in body
--zindex-01Selected elements such as buttons, Select and Card
--zindex-11000Dropdown and Popover
--zindex-21010Tooltips and elements fixed to the top such as Navbar
--zindex-31020Overlays for Drawer, Modal and Dialog
--zindex-41030Drawer, Dialog and Modal
--zindex-51040Overlays that need to stand above all elements
--zindex-61050Toast
--zindex-back-1Send to back after interaction of some element that was above base.

Feedback