You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,13 +102,19 @@ The React components are created using the [stream-chat-js](https://github.com/g
102
102
103
103
### Customizing styles
104
104
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:
106
112
107
113
- Clone this repository
108
114
- Make the changes you want in the SCSS files
109
115
- Run `yarn build-styles` or `yarn watch-styles`
110
116
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:
0 commit comments