About this set
Accordions for content that is more than a line of text. Icon and subtitle puts a tinted icon tile and a two-line title in the header, a bold question with a smaller grey subtitle under it, for help centres and feature lists where a short description helps readers pick the right panel. With an image shows a full-width image area above the answer text; the demo uses a gradient placeholder that you replace with an img element. With a table places a compact three-column table inside the panel, with small uppercase column headings and hairline rows, for specifications, prices or file sizes. The header aligns its items to the top, so the chevron stays level with the first line when the title wraps. The plain CSS and Tailwind versions are native details and summary elements; the Bootstrap version uses .accordion with the Collapse plugin and Bootstrap’s .table component inside the panel, recoloured through the –bs-table-* variables.
What’s included
- Three panel types: icon and subtitle, image, table
- Two-line header with a bold title and a muted subtitle
- Subtitle and table headings darkened to meet 4.5:1
- Bootstrap version uses .accordion and a recoloured .table
- No JavaScript in the plain CSS and Tailwind versions
Accessibility
The header text, including the subtitle, forms the accessible name of each summary or Bootstrap button, and the decorative icon glyphs are aria-hidden. The table uses th cells in a thead for its column headings. Tab reaches each header, Enter or Space toggles it, focus shows a 2px blue outline, and the chevron transition is removed under prefers-reduced-motion.
Customise it
Change the --acc-* properties on .acc, the .ico background and colour, and the .shot gradient or swap it for an img. In Bootstrap adjust the --bs-accordion-* and --bs-table-* variables; in Tailwind edit the bg-[#eff6ff] and text-[#2563eb] classes on the icon tile and the colour classes on the table cells.






