Skip to content

Soft Bento

Accordion

Native <details> items: works without JavaScript, and closed text stays findable with the browser's find. exclusive keeps one item open (native details name).

Live, interactive React component · light themeResponsive

About the Soft Bento Accordion

Native <details> items: works without JavaScript, and closed text stays findable with the browser's find. exclusive keeps one item open (native details name). Items are separate rounded cards (closed: a ring; open: raised clay) with a round icon well that turns blue and rotates as it opens. The height animates where ::details-content is supported.

It is part of Soft Bento. The style’s 92 pieces share one set of tokens, type and motion, in a light and a dark theme, so whatever you take from it fits together.

To put it in your project, copy the prompt into Claude Code, OpenAI Codex or Cursor, or add the file and its styles by hand. The documentation walks through both.

The same piece, drawn for a different look. Open one to compare it live.

Neo-Brutal Accordion

Native <details> rows between 2 px rules: works without JavaScript, and closed text stays findable with the browser's find.

Noir Aurora Accordion

Native <details> items on hairlines: works without JavaScript, and closed text stays findable with the browser's find. exclusive keeps one item open (native details name).

Swiss Tech Mono Accordion

Native <details> items: works without JavaScript, and closed text stays findable with the browser's find. exclusive keeps one item open (native details name).