Accordion Variants
Getting Started
Graffiti is a drop-in CSS library that styles native HTML elements automatically. No classes required for basic styling—just write semantic HTML.
Installation Options
Install via npm with npm install graffiti-css, or include directly
from a CDN. The library works with any framework or vanilla HTML.
View Source Code
The right-aligned variant places the toggle indicator on the opposite side, useful for "show code" toggles or secondary actions.
Frequently Asked Questions
The minimal variant removes extra padding and uses a simple +/− indicator, perfect for compact FAQ sections or nested accordions.
Code
<div class="stack">
<!-- Basic details/summary -->
<details>
<summary>Getting Started</summary>
<p>
Graffiti is a drop-in CSS library that styles native HTML elements automatically.
No classes required for basic styling—just write semantic HTML.
</p>
</details>
<!-- Bordered variant -->
<details class="bordered">
<summary>Installation Options</summary>
<p>
Install via npm with <code>npm install graffiti-css</code>, or include directly
from a CDN. The library works with any framework or vanilla HTML.
</p>
</details>
<!-- Right-aligned trigger variant -->
<details class="right">
<summary>View Source Code</summary>
<p>
The right-aligned variant places the toggle indicator on the opposite side,
useful for "show code" toggles or secondary actions.
</p>
</details>
<!-- Minimal variant with +/− toggle -->
<details class="minimal">
<summary>Frequently Asked Questions</summary>
<p>
The minimal variant removes extra padding and uses a simple +/− indicator,
perfect for compact FAQ sections or nested accordions.
</p>
</details>
</div>