Skip to content

Commit faba4e3

Browse files
authored
Merge pull request #1168 from GetStream/remove-scss
Remove sass files and draw styles from stream-chat-css
2 parents bd11b53 + 0b754ce commit faba4e3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+109
-11046
lines changed

.stylelintignore

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ For components that implement significant logic, it's helpful to split the compo
9393
The preferred method for overriding the pre-defined styles in the library is to two step process. First, import our bundled CSS into the file where you instantiate your chat application. Second, locate any Stream styles you want to override using either the browser inspector or by viewing the library code. You can then add selectors to your local CSS file to override our defaults. For example:
9494

9595
```js
96-
import 'stream-chat-react/dist/css/index.css';
96+
import 'stream-chat-css/dist/css/index.css';
9797
import './App.css';
9898
```
9999

docusaurus/docs/React/basics/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ import {
188188
Thread,
189189
Window,
190190
} from 'stream-chat-react';
191-
import 'stream-chat-react/dist/css/index.css';
191+
import 'stream-chat-css/dist/css/index.css';
192192

193193
const filters = { type: 'messaging' };
194194
const options = { state: true, presence: true, limit: 10 };

docusaurus/docs/React/custom-code-examples/channel-list-preview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const CustomPreview = (props: ChannelPreviewUIComponentProps) => {
135135
Let's take advantage of the SDK's [CSS classes](../customization/css-and-theming.mdx) for styling. We'll import the bundled CSS into the file where the application is instantiated then apply a class to the button element.
136136

137137
```tsx
138-
import 'stream-chat-react/dist/css/index.css';
138+
import 'stream-chat-css/dist/css/index.css';
139139

140140
<div
141141
className={'str-chat__channel-preview-messenger'}

docusaurus/docs/React/customization/css-and-theming.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ default container CSS.
2020

2121
To override pre-defined library styles, follow this simple process:
2222

23-
- Import our bundled CSS into the file where you instantiate your chat application
23+
- Import our bundled CSS into the file where you instantiate your chat application. We maintain a separate repository, `stream-chat-css`,
24+
which houses all of the SCSS files for the components.
2425

2526
- Use the browser inspector or view the library code and locate default styles you wish to override
2627

@@ -31,7 +32,7 @@ To override pre-defined library styles, follow this simple process:
3132
For example:
3233

3334
```jsx
34-
import 'stream-chat-react/dist/css/index.css';
35+
import 'stream-chat-css/dist/css/index.css';
3536
import './App.css';
3637
```
3738

examples/capacitor/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
Thread,
1111
Window,
1212
} from 'stream-chat-react';
13-
import 'stream-chat-react/dist/css/index.css';
13+
import 'stream-chat-css/dist/css/index.css';
1414
import './App.css';
1515

1616
const apiKey = process.env.REACT_APP_STREAM_KEY as string;

examples/capacitor/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11421,6 +11421,11 @@ stream-browserify@^2.0.1:
1142111421
inherits "~2.0.1"
1142211422
readable-stream "^2.0.2"
1142311423

11424+
11425+
version "1.0.0"
11426+
resolved "https://registry.yarnpkg.com/stream-chat-css/-/stream-chat-css-1.0.0.tgz#4bb204825edb8931784fb414253e284b2a2cb273"
11427+
integrity sha512-PqV7ikbV9WsWDjc48RolSHdCtdKC6U/zmmz2V8ZhTPz6DV1dpmkQnd0mKoSSi7jlmtwHzGEEQyCtzg/396tbwg==
11428+
1142411429
"stream-chat-react@link:../..":
1142511430
version "0.0.0"
1142611431
uid ""

examples/nextjs/pages/_app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// pages/_app.js
2-
import 'stream-chat-react/dist/css/index.css';
2+
import 'stream-chat-css/dist/css/index.css';
33
import './App.css';
44

55
export default function MyApp({ Component, pageProps }) {

examples/nextjs/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10749,6 +10749,11 @@ stream-browserify@^2.0.1:
1074910749
inherits "~2.0.1"
1075010750
readable-stream "^2.0.2"
1075110751

10752+
10753+
version "1.0.0"
10754+
resolved "https://registry.yarnpkg.com/stream-chat-css/-/stream-chat-css-1.0.0.tgz#4bb204825edb8931784fb414253e284b2a2cb273"
10755+
integrity sha512-PqV7ikbV9WsWDjc48RolSHdCtdKC6U/zmmz2V8ZhTPz6DV1dpmkQnd0mKoSSi7jlmtwHzGEEQyCtzg/396tbwg==
10756+
1075210757
"stream-chat-react@link:../..":
1075310758
version "0.0.0"
1075410759
uid ""

examples/typescript/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
Thread,
1111
Window,
1212
} from 'stream-chat-react';
13-
import 'stream-chat-react/dist/css/index.css';
13+
import 'stream-chat-css/dist/css/index.css';
1414
import './App.css';
1515

1616
const apiKey = process.env.REACT_APP_STREAM_KEY as string;

0 commit comments

Comments
 (0)