1. What Is Accordion Forge?
Accordion Forge is a visual accordion builder created with Vanilla JavaScript, CSS Grid, and HTML. It allows you to:
- Create accordion items visually
- Edit button text and panel content
- Upload images into panels
- Customize colors, typography, borders, and spacing
- Preview the accordion live
- Export production-ready HTML/CSS/JS code
Live Preview + Export Area
2. Adding Accordion Items
To create a new accordion section:
+ Add New Accordion Item button.
- Button Text
- Panel Content
- Optional Image Upload
Delete Item
Button Text → "FAQ Section"
Panel Content → "This is the answer..."
Image Upload → Choose image file
3. Customizing the Design
The Design Suite allows complete visual control over the accordion.
Available Design Controls
- Accordion Width
- Button Background Color
- Button Text Color
- Panel Background Color
- Panel Text Color
Accordion Width: 600px
Button BG: White
Button Text: Dark Gray
Panel BG: Light Gray
Panel Text: Medium Gray
4. Typography & Spacing
Typography controls affect the appearance of all accordion buttons.
Typography Options
- Font Family
- Font Size
- Font Weight
Spacing Controls
- Padding (Top Right Bottom Left)
- Margin (Top Right Bottom Left)
5. Border Workshop
The Border Workshop controls the accordion border styling.
- Border Width
- Border Style
- Border Color
6. Accordion Behavior Modes
Accordion Forge supports two interaction modes.
Independent Mode
Multiple accordion panels can remain open simultaneously.
Exclusive Mode
Opening one panel automatically closes the others.
Independent:
✔ Item 1 Open
✔ Item 2 Open
Exclusive:
✔ Item 1 Open
✖ Item 2 Closed Automatically
7. Live Preview System
Every change updates instantly in the preview window.
The preview system dynamically:
- Regenerates accordion HTML
- Applies updated CSS styles
- Reconnects accordion behavior logic
- Refreshes the export code
8. Exporting Your Accordion
Accordion Forge automatically generates complete export-ready code.
Export Options
- Copy to Clipboard → Copies HTML/CSS/JS code
- Download Forge Package → Downloads standalone HTML file
9. Technical Architecture
Accordion Forge is built entirely with:
- HTML5
- CSS Grid Layout
- Vanilla JavaScript
Key architectural features:
- State-based item storage
- Dynamic CSS generation
- Live DOM regeneration
- ARIA accessibility attributes
- Instant code exporting