Table styling
Table styling is wrapper-first, with stable classes for the scroll shell, generated table, header cells, body cells, and state rows.
| Hook | Use |
|---|---|
.tng-table__scroll | Outer border, radius, background, and scroll behavior. |
.tng-table | Typography, table layout, width, and density state. |
.tng-table__header-cell | Header background, sort affordance, focus ring, and sticky presentation. |
.tng-table__cell | Body cell padding, borders, alignment, truncation, and hover state. |
.tng-table__state-cell | Loading, error, and empty states. |
CSS starter
tng-table {
--tng-table-border: var(--tng-semantic-border-subtle);
--tng-table-radius: 0.75rem;
--tng-table-cell-px: 1rem;
--tng-table-cell-py: 0.75rem;
--tng-table-header-bg: var(--tng-semantic-background-muted);
}