Theme
Sound
Jump to a component
AniCanonKit · Maki
ChatMessage
ChatMessage is the person's own message in a chat with Maki, set to the right.
Live, from @anicanon/sakuga 2.0.0
Sakuga for iOS and Android is coming
iOS
Coming soon
ChatMessage for iOS is in the roughs. The tokens it will read are the ones on this page, the same on every platform.
Android
Coming soon
ChatMessage for Android is in the roughs. The tokens it will read are the ones on this page, the same on every platform.
- Use it for
- The person's own message in a chat with Maki, set to the right.
- Not for
- What Maki saysMakiTurn
- Where the person writes the next messageMakiComposer
Guidelines
nameis who sent it, said before the message for screen readers ("You" by default).
import { ChatMessage } from '@anicanon/sakuga/anicanonkit';
export default function ChatMessageExample() {
return <ChatMessage>Fix the last train</ChatMessage>;
}PropsChatMessageProps
childrenrequiredReactNodenamestringDefault 'You'Who sent it, said before the message.
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
chat-mine-bgChatMessage: the person's own message.accent-subtlecamellia-600-a10rgba(194,51,95,0.1)accent-subtlecamellia-400-a14rgba(244,119,159,0.14)Space and shape
chat-padding-yinset-sm8px
chat-padding-xinset-md12px
chat-radius-top-leftradius-md12px
chat-radius-top-rightradius-md12px
chat-radius-bottom-rightradius-xs4px
chat-radius-bottom-leftradius-md12px
Type
chat-fonttext-caption500 13px/18px "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif
Motion
chat-mine-rise-in-animationmotion-risesk-rise-in 240ms cubic-bezier(0, 0, 0, 1)
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; the message reads as plain text after who sent it, "You" (or
name), which is said but not shown. - 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.