Data Grid

warning
There are known styling issues with sortable columns when used in a NextJS app.

A data grid is a component designed to display large volumes in a structured and organized manner. It structures data into rows and columns, making it easy for users to visualize, analyze, and interact with the information. The data grid also improves user experience by providing features like sorting, filtering, and editing.

Design tokens

Color

Component tokenElementCore tokenValue
rowSeparatorColorSeparatorcolor-grey-300#cccccc
dataBackgroundColorData gridcolor-white#ffffff
dataFontColorData gridcolor-black#000000
headerBackgroundColorHeadercolor-black#000000
headerBackgroundColorHeadercolor-purple-700#5f249f
headerFontColorHeadercolor-white#ffffff
headerCheckboxBackgroundColorCheckedHeader checkboxcolor-white#ffffff
headerCheckboxHoverBackgroundColorCheckedHeader checkbox:hovercolor-grey-200#e6e6e6
headerCheckboxBorderColorHeader checkboxcolor-white#ffffff
headerCheckboxHoverBorderColorHeader checkbox:hovercolor-white#ffffff
headerCheckboxCheckColorHeader checkboxcolor-purple-700#5f249f
focusColorData gridcolor-blue-600#0095ff
scrollBarThumbColorScroll barcolor-grey-700#666666
scrollBarTrackColorScroll barcolor-grey-300#cccccc
actionIconColorActions cellcolor-purple-700#5f249f
disabledActionIconColorActions cellcolor-grey-500#999999
hoverActionIconColorActions cellcolor-purple-700#5f249f
focusActionIconColorActions cellcolor-purple-700#5f249f
activeActionIconColorActions cellcolor-purple-700#5f249f
actionBackgroundColorActions cellcolor-transparenttransparent
disabledActionBackgroundColorActions cellcolor-transparenttransparent
hoverActionBackgroundColorActions cellcolor-grey-100#f2f2f2
focusActionBorderColorActions cellcolor-blue-600#0095ff
activeActionBackgroundColorActions cellcolor-grey-300#cccccc

Typography

Component tokenElementCore tokenValue
dataFontFamilyData gridfont-family-sans'Open Sans', sans-serif
dataFontSizeData gridfont-scale-020.875rem / 14px
dataFontStyleData gridfont-style-normalnormal
dataFontWeightData gridfont-weight-regular400
dataFontTextTransformData grid-none
dataTextLineHeightData grid-normal
headerFontFamilyHeaderfont-family-sans'Open Sans', sans-serif
headerFontSizeHeaderfont-scale-020.875rem / 14px
headerFontSizeHeaderfont-style-normalnormal
headerFontWeightHeaderfont-weight-boldbold
headerFontTextTransformHeader-none
headerTextLineHeightHeader-normal

Separator

Component tokenElementCore tokenValue
rowSeparatorThicknessSeparator-1px
rowSeparatorStyleSeparatorborder-style-solidsolid

Spacing

Component tokenElementCore tokenValue
dataPaddingRightData gridspacing-80.5rem / 8px
dataPaddingLeftData gridspacing-80.5rem / 8px
headerPaddingRightHeaderspacing-80.5rem / 8px
headerPaddingLeftHeaderspacing-80.5rem / 8px

Size

Component tokenElementCore tokenValue
dataRowHeightData grid-36
headerRowHeightHeader-36
summaryRowHeightSummary row-36
headerBorderRadiusHeader-4px

Accessibility

WAI-ARIA