Styling and structure conventions for stream-chat-react. Use when adding or editing components, SCSS, or icons in this repo—file layout, styling folder structure, SCSS imports, and icon placement.
Apply when generating or modifying UI code in this repo.
.scss only.src/components/<ComponentName>/styling/.index.scss.src/components/<ComponentName>/styling/index.scss is imported in src/styling/index.scss with an alias..scss file in the src/components/<ComponentName>/styling folderImport order in src/styling/index.scss:
src/styling/&__suffix so selectors are easy to search.src/components/Icons.src/components/Icons; keep existing icon placement unless explicitly refactoring icons.Source: .ai/DEV_PATTERNS.md.
_one, _other, and _few, _many where the locale requires them."{{count}} new messages"). Only add quantified variants: "{{count}} new messages_one", "{{count}} new messages_other", etc.src/i18n/ (e.g. {{count}} unread_one, unreadMessagesSeparatorText_other).en, de, nl, tr, hi, ko, ja use _one + _other; es, fr, it, pt add _many; ru uses _one, _few, _many, _other.When importing from 'stream-chat' library, always import by library name (from 'stream-chat'), not relative path (from '..path/to/from 'stream-chat-js/src').
Try to avoid inline style attribute and prefer adding styles to .scss files.