Agriculture Design System
Beta
Design System for the Export Service

Elevation tokens

A set of predefined tokens which are used to establish a sense of depth and perspective.

Shadow

A set of predefined tokens which enable the use of drop shadows consistently and systematically. AgDS provides three drop shadow tokens:

  • sm: Used to slightly elevate interactive elements like cards
  • md: Used to further elevate interactive elements on hover
  • lg: Used for elements that float above the page like dropdowns and modals.
sm0px 2px 4px rgba(0, 0, 0, 0.15)
md0px 4px 16px rgba(0, 0, 0, 0.15)
lg0px 16px 32px rgba(0, 0, 0, 0.20)

Z-index

A set of predefined tokens for handling the relative distance between two surfaces along the z-axis.

All z-Index tokens
TokenValueDescription
base0The base z-index.
elevated1Used to elevate elements above adjacent elements that sit on the base z-index.
overlay100Used for overlays in modals and other components that sit on top of the page - e.g. Modal, Drawer, Main nav (mobile).
dialog110Used for the main dialog element in modals and other components that sit on top of the - e.g. Modal, Drawer, Main nav (mobile).
popover200Used for popover elements - e.g. the calendar popover in the Date picker.
skipLink999Used for focused Skip links.