Tone Shift Accordion

An accordion that signals state changes through background tone shifts instead of arrows or rotation.

HTML

<div class="accordion-tone">
  <button class="accordion-tone__header">Summary</button>
  <div class="accordion-tone__content">
    <p>Expanded content area.</p>
  </div>
</div>

CSS

.accordion-tone {
  width: 200px;
  border-radius: 16px;
  background: #f9fafb;
  overflow: hidden;
  transition: background 150ms ease;
}

.accordion-tone__header {
  width: 100%;
  padding: 0.6rem;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}

.accordion-tone__content {
  max-height: 0;
  overflow: hidden;
  padding: 0 0.6rem;
  font-size: 11px;
  color: #6b7280;
  transition: max-height 200ms ease, padding 200ms ease;
}

.accordion-tone:hover {
  background: #eef2ff;
}

.accordion-tone:hover .accordion-tone__content {
  max-height: 60px;
  padding: 0.4rem 0.6rem;
}

@media (prefers-color-scheme: dark) {
  .accordion-tone {
    background: #020617;
  }

  .accordion-tone:hover {
    background: #1e1b4b;
  }

  .accordion-tone__header {
    color: #e5e7eb;
  }

  .accordion-tone__content {
    color: #9ca3af;
  }
}

Notes

  • State indicated via tone, not icons
  • Minimal motion footprint
  • Ideal for dense dashboards

Preview styles shown. Production customization recommended.

Browse More UI Components

Explore hundreds of reusable HTML & CSS UI components built for modern web projects.
Discover buttons, cards, loaders, animations, layouts, and more all with live previews and clean, copy-paste code.

Leave a Reply

Your email address will not be published. Required fields are marked *