About this set
Three accordion treatments for dark interfaces such as dashboards, developer tools and dark-mode sites, with a cyan accent. Bordered cards sit on a slightly raised surface with a subtle border and a lighter fill on hover. The flat list removes the cards and separates the rows with dark hairlines; hovering a title turns it cyan. Accent when open gives the open panel a cyan border and a cyan title, so the expanded answer is easy to find in a long list. The muted grey used for captions and the chevron was lightened to reach the required contrast on the near-black background, and the answer text stays at a soft grey that is comfortable for longer reading. In plain CSS all colours live in a handful of custom properties on the .acc container, so switching this set to your own dark palette is a matter of changing seven values. The plain CSS and Tailwind versions use native details and summary; the Bootstrap version uses .accordion with the Collapse plugin and the same colours set through the –bs-accordion-* variables.
What’s included
- Three dark treatments: bordered cards, flat list, accent when open
- Cyan focus outline and accent on a near-black background
- Captions and chevrons lightened to meet contrast on dark
- All colours in --acc-* custom properties in the plain CSS version
- Transitions switch off under reduced motion
Accessibility
Headers are summary elements, or buttons with aria-expanded and aria-controls in the Bootstrap version, so the open state is announced. Tab reaches each header and Enter or Space toggles it. Focus draws a 2px cyan outline that stands out against the dark cards, and transitions are removed when prefers-reduced-motion is set.
Customise it
In plain CSS change the seven --acc-* properties on .acc and the #22d3ee accent in the .acc-flat and .acc-accent rules. In Bootstrap set the --bs-accordion-* variables on .acc; in Tailwind edit the bg-[#161b23], border-[#232a36] and #22d3ee classes.






