Brand Design System

Table

TwoColTableDynamic element with cell-level styling for presenting structured information in rows and columns.

Live Preview

ProductPriceQtyTotal
Manjish Glow Elixir Face Oil$49.002$98.00
Manjish Glow Elixir$65.001$65.00
Balaayah Black Gram Oil$55.001$55.00
Subtotal$218.00

Code

1<table class="table">
2 <thead>
3 <tr>
4 <th>Product</th>
5 <th>Price</th>
6 <th>Quantity</th>
7 </tr>
8 </thead>
9 <tbody>
10 <tr>
11 <td>Manjish Glow Elixir Face Oil</td>
12 <td>$49.00</td>
13 <td>2</td>
14 </tr>
15 <tr>
16 <td>Manjish Glow Elixir</td>
17 <td>$65.00</td>
18 <td>1</td>
19 </tr>
20 </tbody>
21 <tfoot>
22 <tr>
23 <td colspan="2">Total</td>
24 <td>$163.00</td>
25 </tr>
26 </tfoot>
27</table>
28
29<!-- Striped variant -->
30<table class="table table--striped">
31 ...
32</table>
33
34<!-- Bordered variant -->
35<table class="table table--bordered">
36 ...
37</table>

Brand Properties

Table Properties

PropertyTypeBrand DefaultHoB ValueTAE Value
ColumnsManagement section2 columns2 columns2 columns
RowsManagement section3 rows3 rows3 rows
Text Alignment4 optionsleftleftleft
Line HeightSliderAutoAutoAuto
Letter SpacingSlider0 px0 px0 px
Text Case2 optionsnonenonenone
MarginsInput (px)000
Corner RadiusInput (px)000
BackgroundDropdownColorColorColor
OpacitySlider100%100%100%
ShadowToggleOffOffOff
Table border StyleDropdownsolidsolidsolid
Table border ColorColor picker (hex)#000000#038012#1A5129
Table border WidthInput (px)111

Cell Properties (Row X, Col Y)

PropertyTypeBrand DefaultHoB ValueTAE Value
FontDropdownOpen SansOpen SansOpen Sans
WeightDropdownnormalnormalnormal
SizeDropdown14px14px14px
Text Alignment4 optionsleftleftleft
Line HeightSliderAutoAutoAuto
Letter SpacingSlider0 px0 px0 px
Text Case2 optionsnonenonenone
PaddingInput (px)888
BackgroundDropdownColorColorColor

Variants

Default Table

FeatureBasicPro
Storage5 GB100 GB
Users1Unlimited

Striped Table

ItemAmount
Item One$10.00
Item Two$20.00
Item Three$30.00
Item Four$40.00

Bordered Table

NameEmailRole
John Doejohn@example.comAdmin
Jane Smithjane@example.comUser

Comparison Table

FeatureHouse of BrandsOthers
100% NaturalYesNo
Ayurvedic FormulationYesNo
Cruelty FreeYes-

Responsive Tables

For tables that don't fit on mobile screens, wrap them in a scrollable container or use a responsive pattern that transforms the layout on smaller screens.

Horizontal Scroll

Column 1Column 2Column 3Column 4Column 5
Data A1Data B1Data C1Data D1Data E1

Scroll horizontally on mobile

Accessibility

  • Use <th> elements for header cells with scope attribute
  • Include a <caption> for table descriptions
  • Use <thead>, <tbody>, and <tfoot> for structure
  • Ensure sufficient color contrast for text and borders
  • Consider mobile users - provide horizontal scroll or responsive layout
  • Avoid using tables for layout purposes

Do's and Don'ts

Do

  • Use tables for actual tabular data
  • Include clear column headers
  • Align numbers to the right for easy comparison
  • Use zebra striping for long tables
  • Provide horizontal scroll on mobile

Don't

  • Use tables for page layout
  • Create tables with too many columns
  • Omit header cells for data tables
  • Use inconsistent alignment within columns
  • Merge cells excessively

Unmapped Brand Values

The following brand-specific values are not directly mapped to CRAFT Table properties but may influence table styling decisions:

Brand TokenHoBTAEUsage Notes
Primary Color#038012#1A5129Can be used for table border color, header accents
Body FontOpen SansOpen SansMatches CRAFT default font for cells
Text Color#038012#101010Can be applied to cell text for brand consistency

Related Elements