Skip to content

Commit 182268e

Browse files
authored
Merge pull request #756 from GetStream/readme/update-customizing-styles
update preferred method for customizing styles
2 parents 6a726d7 + 1bd48a2 commit 182268e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,20 @@ 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. Then, locate any Stream selectors you want to override using either the browser or by viewing the library code, and then add these to your local CSS file with your styles. For example:
106+
107+
```js
108+
import 'stream-chat-react/dist/css/index.css';
109+
import './App.css';
110+
```
111+
112+
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:
106113

107114
- Clone this repository
108115
- Make the changes you want in the SCSS files
109116
- Run `yarn build-styles` or `yarn watch-styles`
110117

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

113120
```scss
114121
// customChatDownComponent.scss

0 commit comments

Comments
 (0)