🍙 Onigiri

The Crunchyroll design system, rendered live from its own tokens and components. It cannot drift from what ships.

Docs draft

CollapsibleText

States

collapsed — Truncated to the collapsed line count.

expanded — Showing the full text.

spoiler — Content hidden behind a spoiler reveal.

Design specifications

bodytype.body-sm in color.text.primary
triggertype.label in color.accent.text, hover color.accent.text-pressed
clamp3 lines default; fade covers the last 40%

Accessibility

Enter / Space — Toggles; aria-expanded reflects state.

The clamp is visual only — the full text stays in the DOM for screen readers. Spoiler content is genuinely absent until revealed.