Theme
Sound
Jump to a component
AniCanonKit · Productions
DialogueLine
DialogueLine is a planned line: speaker, delivery, where it falls in the beat, the line in the spoken language and its translation. The line may carry markup as children instead of line: a Revision inside the words.
Live, from @anicanon/sakuga 2.0.0
Sakuga for iOS and Android is coming
iOS
Web only
DialogueLine is made for the web, and isn’t part of Sakuga for iOS yet.
Android
Web only
DialogueLine is made for the web, and isn’t part of Sakuga for Android yet.
- Use it for
- A planned line: the speaker, the delivery, where it falls in the beat, the line in its spoken language and its translation.
- Not for
- Dialogue as written in the screenplayScreenplayLine
- A subtitle over videoCaption
- Hearing the lineAudioPlayer
import { DialogueLine } from '@anicanon/sakuga/anicanonkit';
export default function DialogueLineExample() {
return (
<DialogueLine
speaker="Kiko"
delivery="quiet, certain"
at="at 1.2 s"
line="来なさい、ケン。"
translation="Come here, Ken."
/>
);
}PropsDialogueLineProps
speakerrequiredstringlinestringOr the line as children, when it carries markup.
imagestringdeliverystringatstringtranslationstringchildrenReactNodeThe line with markup (a Revision inside the words).
classNamestringEach token reads a role, and the role lands on a value in each theme. Change the role and every component that reads it follows.
Colour
dline-speakerDialogueLine: speaker.text-primaryneutral-925#0b0a10text-primaryneutral-0#ffffffdline-textDialogueLine: the line.text-primaryneutral-925#0b0a10text-primaryneutral-0#ffffffdline-metaDialogueLine: delivery, offset and translation.text-mutedneutral-600#5c5b67text-mutedneutral-400#a3a3a7Space and shape
dline-gapgap-md8px
dline-img-sizeits own value
24px
dline-div-gapgap-2xs2px
Type
dline-b-fonttext-micro700 12px/16px "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif
dline-b-small-font-weightweight-medium500
dline-q-fonttext-body400 14px/20px "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif
dline-div-span-fonttext-small500 12px/16px "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif
Checked automatically with axe-core 4.11.4 against WCAG 2.2 A and AA, on the live preview above, in light and dark, on 26 October 2026.
- Result
- No issues found, in light or in dark.
- By design
- Not focusable; read as text in order: the speaker, the delivery and where it falls, the line as a quotation, then the translation. The speaker's picture is hidden.
- Not tested
- The automated check doesn't test keyboard use, focus order or what a screen reader says. The lines above are the design system's own account of them.