Table

Data table is a component with a high rate of usage within the applications. It allows to show the user a big amount of information in a simple and simplified way. All the information contained in the table has a grid structure, defining columns and rows to place the data and allow the users to scan, analyze, compare and filter that information.

Specifications

Table design specifications
Table design specifications

States

Some other components defined in the Design System are used in the table component as the checkbox, button or select. For concrete specifications about states, please, consider to see the documentation of each component.

Anatomy

Table anatomy
  1. 1.
    Header
  2. 2.
    Header title
  3. 3.
    Sorting action
  4. 4.
    Body
  5. 5.
    Cell
  6. 6.
    Cell value
  7. 7.
    Paginator

Design tokens

Color

Component tokenElementCore tokenValue
dataBackgroundColorCellcolor-white#ffffff
dataFontColorCell valuecolor-black#000000
headerBackgroundColorHeadercolor-purple-700#5f249f
headerFontColorHeader titlecolor-white#ffffff
scrollBarThumbColorScroll barcolor-grey-700#666666
scrollBarTrackColorScroll barcolor-grey-300#cccccc
sortIconColorSortcolor-white#ffffff
rowSeparatorColorDividercolor-grey-300#cccccc

Typography

Component tokenElementCore tokenValue
dataFontFamilyCell valuefont-family-sans'Open Sans', sans-serif
dataFontSizeCell valuefont-scale-020.875rem / 14px
dataFontStyleCell valuefont-style-normalnormal
dataFontWeightCell valuefont-weight-regular400
dataFontTextTransformCell value-none
dataTextLineHeightCell value-normal
dataTextAlignCell value-left
headerFontFamilyHeader titlefont-family-sans'Open Sans', sans-serif
headerFontSizeHeader titlefont-scale-020.875rem / 14px
headerFontStyleHeader titlefont-style-normalnormal
headerFontWeightHeader titlefont-weight-regular400
headerFontTextTransformHeader title-none
headerTextLineHeightHeader title-normal
headerTextAlignHeader title-left

Border

Component tokenElementCore tokenValue
rowSeparatorThicknessDividerborder-width-11px
rowSeparatorStyleDividerborder-style-solidsolid
headerBorderRadiusHeaderborder-radius-medium0.25rem / 4px

Spacing

Component tokenElementCore tokenValue
dataPaddingTopCell valuespacing-161rem / 16px
dataPaddingBottomCell valuespacing-161rem / 16px
dataPaddingRightCell value-20px
dataPaddingLeftCell value-20px
dataPaddingTopReducedCell valuespacing-80.5rem / 8px
dataPaddingBottomReducedCell valuespacing-80.5rem / 8px
dataPaddingRightReducedCell valuespacing-161rem / 16px
dataPaddingLeftReducedCell valuespacing-161rem / 16px
firstChildPaddingLeftCell valuespacing-241.5rem / 24px
lastChildPaddingRightCell valuespacing-241.5rem / 24px
firstChildPaddingLeftReducedCell value-20px
lastChildPaddingRightReducedCell value-20px
dataPaddingBottomReducedCell valuespacing-80.5rem / 8px
dataPaddingRightReducedCell valuespacing-161rem / 16px
headerPaddingTopHeader titlespacing-161rem / 16px
headerPaddingBottomHeader titlespacing-161rem / 16px
headerPaddingRightHeader title-20px
headerPaddingLeftHeader titlespacing-402.5rem / 40px
headerPaddingTopReducedHeader titlespacing-80.5rem / 8px
headerPaddingBottomReducedHeader titlespacing-80.5rem / 8px
headerPaddingRightReducedHeader titlespacing-161rem / 16px
headerPaddingLeftReducedHeader titlespacing-161rem / 16px

Iconography

PropertyElementCore tokenValue
widthSorting action-14px
heightSorting action-14px

Accessibility

WAI-ARIA