06 / COMPONENTS / READING
Data tables
Bordered comparison tables, such as the Big-O tables in the sorting and data structure tutorials.
Reading1 variantcomponent
Live preview
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Notes
Data tables reuse the shared smileysTable look: a 2px --structureBorder frame, 1px ruled cells, a --primaryLighter header row, and --bodyText cells. Give new tables class="smileysTable". Data structures and algorithms pages that include left_dsa.shtml also style the older id="smileysTable" at a slightly smaller size, so match neighboring pages there. Put column headings in a thead of th scope="col" cells and row labels in td cells. Links inside cells use blueEmphasis. Join short expressions such as Big-O terms with so they don't wrap mid-term. Don't redraw borders, header tints, or link colors in page CSS; an interactive lab may only tighten padding and font size. Wrap a wide table in a container with overflow-x: auto so the page never scrolls sideways at 320px.
Usage
Data tables
Example composed with native selectors / Rendered markup<table class="smileysTable">
<thead><tr><th scope="col">Sort</th><th scope="col">Average</th></tr></thead>
<tbody>
<tr><td><a class="blueEmphasis" href="/sorts/timsort.htm">Timsort</a></td><td>O(n log n)</td></tr>
</tbody>
</table>Anatomy
Selectors.smileysTable#smileysTable.smileysTable a.blueEmphasis
Properties--structureBorder--primaryLighter--bodyText--linkForeground--linkBackground
Sources
Agent Instructions / components
You are composing a current-shell KIRUPA page. Read /design/components.json and the relevant entry in /design/sections/components.md for selectors, variants, source files, and usage. Start from an adjacent working page and reuse its SSI structure and named component classes. When a link needs to look like a link inside the tutorial body, add the blueEmphasis class to its anchor, including in component examples. Style class names, IDs, and code identifiers in explanatory prose with inlineCode. Choose semantic HTML before adding JavaScript. Use visible labels, keyboard-operable controls, clear focus, and explicit loading/error/empty states. Keep forms inert in documentation specimens and label demo output. Preserve the article's reading rhythm and code overflow containment. Verify the component in each visual style and both modes. Do not initialize onboarding, tracking, a live chat request, or a subscription in a preview. Keep reference and navigation descriptions short and factual. Follow WCAG 2.2 AA for new or changed content: semantic HTML, keyboard access, visible focus, readable contrast in every theme, text alternatives, labeled controls, and explicit errors. Support zoom/reflow, respect reduced motion, and keep sound optional. Read /design/sections/accessibility.md for acceptance checks. Report unresolved barriers; automated checks alone do not establish conformance.