A collapsible content component for grouping related information into expandable sections. Supports open/close state via the vel-open modifier and a flush borderless variant.
borderless transparent variant; removes outer border and radius
Examples
Accordion with one item expanded
VeloraCSS is a fully original utility-first CSS framework with rich component classes. Every class, variable, and token is branded with the vel- prefix.
example.html
<divstyle="padding:24px;background:#060b17;font-family:system-ui,sans-serif;border-radius:12px;"><divclass="vel-accordion"style="max-width:520px;"><divclass="vel-accordion-item"><buttonclass="vel-accordion-trigger"><span>What is VeloraCSS?</span><spanclass="vel-accordion-trigger-iconvel-open"><svgxmlns="http://www.w3.org/2000/svg"viewBox="0 0 20 20"fill="currentColor"width="18"height="18"><pathfill-rule="evenodd"d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z"clip-rule="evenodd"/></svg></span></button><divclass="vel-accordion-content">
VeloraCSS is a fully original utility-first CSS framework with rich component classes. Every class, variable, and token is branded with the <codestyle="background:rgba(124,92,252,0.15);color:#a87fff;padding:1px 5px;border-radius:4px;">vel-</code> prefix.
</div></div><divclass="vel-accordion-item"><buttonclass="vel-accordion-trigger"><span>How do I install it?</span><spanclass="vel-accordion-trigger-icon"><svgxmlns="http://www.w3.org/2000/svg"viewBox="0 0 20 20"fill="currentColor"width="18"height="18"><pathfill-rule="evenodd"d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z"clip-rule="evenodd"/></svg></span></button></div><divclass="vel-accordion-item"><buttonclass="vel-accordion-trigger"><span>Does it support dark mode?</span><spanclass="vel-accordion-trigger-icon"><svgxmlns="http://www.w3.org/2000/svg"viewBox="0 0 20 20"fill="currentColor"width="18"height="18"><pathfill-rule="evenodd"d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z"clip-rule="evenodd"/></svg></span></button></div></div></div>
Flush variant (borderless)
The flush variant removes the outer border and border-radius, making it blend seamlessly into any section background.
example.html
<divstyle="padding:24px;background:#060b17;font-family:system-ui,sans-serif;border-radius:12px;"><divclass="vel-accordionvel-accordion-flush"style="max-width:520px;"><divclass="vel-accordion-item"><buttonclass="vel-accordion-trigger"><span>Flush accordion — no outer border</span><spanclass="vel-accordion-trigger-iconvel-open"><svgxmlns="http://www.w3.org/2000/svg"viewBox="0 0 20 20"fill="currentColor"width="18"height="18"><pathfill-rule="evenodd"d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z"clip-rule="evenodd"/></svg></span></button><divclass="vel-accordion-content">
The flush variant removes the outer border and border-radius, making it blend seamlessly into any section background.
</div></div><divclass="vel-accordion-item"><buttonclass="vel-accordion-trigger"><span>Another flush item</span><spanclass="vel-accordion-trigger-icon"><svgxmlns="http://www.w3.org/2000/svg"viewBox="0 0 20 20"fill="currentColor"width="18"height="18"><pathfill-rule="evenodd"d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z"clip-rule="evenodd"/></svg></span></button></div></div></div>