Skip to content

Commit 44ebba4

Browse files
author
Anna Baldwin
committed
update preferred method for customizing styles
1 parent cf4b3e7 commit 44ebba4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,19 @@ The React components are created using the [stream-chat-js](https://github.com/g
102102

103103
### Customizing styles
104104

105-
`stream-chat-react` uses SCSS for styling. There may be times when you want to make simple changes to our stylesheets and don't want to override classes and styles manually. To make these customizations, you can do the following:
105+
The preferred method for overriding styles from `stream-chat-react` is to import the CSS file into your project in App.js from the dist directory. For example:
106+
107+
```js
108+
import 'stream-chat-react/dist/css/index.css';
109+
```
110+
111+
Alternatively, there may be times when you want to make simple changes to our stylesheets and don't want to override classes and styles manually. To make these customizations, you can do the following:
106112

107113
- Clone this repository
108114
- Make the changes you want in the SCSS files
109115
- Run `yarn build-styles` or `yarn watch-styles`
110116

111-
Alternatively, if you're also using SCSS for styling, you can import component styles directly in your .scss files. For example:
117+
As another alternative option if you're also using SCSS for styling, you can import component styles directly in your .scss files. For example:
112118

113119
```scss
114120
// customChatDownComponent.scss

0 commit comments

Comments
 (0)