- ☀️Light
- 🌙Dark
- 💻System
💠 Example
(Multiple)Multiple
Some content
Multiple
Some content
Multiple
Some content
💻 HTML Code
(Multiple)Multiple
Some content
Multiple
Some content
Multiple
Some content
📏 Sizes
.accordion-btn
.accordion-btn-sm
.accordion-btn-md
.accordion-btn-lg
🎨 Colors
btn-{color}
Apply on the button
(with hover)
bg-{color}
Apply on the button
(no hover)
accordion-{color}
Apply on the
.accordion-native container (borders only)
📌 State
To keep a panel open on page load, add the
open attribute on the details element.
⚙️ Variables CSS
| Class | Description |
|---|---|
--accordion-bg-color |
Background color of the accordion. |
--accordion-border-color |
Color of the borders. |
--accordion-border-radius |
Corner radius. |
--accordion-border-style |
Border style (solid, dashed, etc.). |
--accordion-border-width |
Border thickness. |
--accordion-button-padding |
Default button padding. |
--accordion-button-padding-lg |
Padding for large buttons. |
--accordion-button-padding-md |
Padding for medium buttons. |
--accordion-button-padding-sm |
Padding for small buttons. |