File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const App = () => {
3939 if ( ! client ) return < div > Setting up client & connection ...</ div > ;
4040
4141 return (
42- < Chat client = { client } theme = 'str-chat__theme- custom' >
42+ < Chat client = { client } theme = 'custom-theme ' >
4343 < ChannelList filters = { filters } sort = { sort } options = { options } />
4444 < Channel >
4545 < Window >
Original file line number Diff line number Diff line change 22@import 'stream-chat-react/dist/css/index.css' layer(stream);
33
44@layer stream-overrides {
5- .str-chat__theme-custom {
6- --brand-50 : # edf7f7 ;
7- --brand-100 : # e0f2f1 ;
8- --brand-150 : # b2dfdb ;
9- --brand-200 : # 80cbc4 ;
10- --brand-300 : # 4db6ac ;
11- --brand-400 : # 26a69a ;
12- --brand-500 : # 009688 ;
13- --brand-600 : # 00897b ;
14- --brand-700 : # 00796b ;
15- --brand-800 : # 00695c ;
16- --brand-900 : # 004d40 ;
17- --accent-primary : var (--brand-500 );
18- --radius-full : 6px ;
5+ .custom-theme {
6+ /* Accent */
7+ --accent-primary : # 0d47a1 ;
8+
9+ /* Message bubble colors */
10+ --chat-bg-outgoing : # 1e3a8a ;
11+ --chat-bg-attachment-outgoing : # 0d47a1 ;
12+ --chat-bg-incoming : # dbeafe ;
13+ --chat-text-outgoing : # ffffff ;
14+ --chat-reply-indicator-outgoing : # 93c5fd ;
15+
16+ /* Links */
17+ --text-link : # 1e40af ;
18+ --chat-text-link : # 93c5fd ;
19+
20+ /* Panel backgrounds */
21+ --background-core-elevation-1 : # dbeafe ; /* channel list, surrounding panels */
22+ --background-core-app : # c7dafc ; /* message list background */
23+
24+ /* Focus ring */
25+ --border-utility-focused : # 1e40af ;
26+
27+ /* Radii */
28+ --radius-max : 8px ;
29+ --button-radius-full : 6px ;
1930 }
2031}
2132
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ const App = () => {
151151 Message : CustomMessage ,
152152 } }
153153 >
154- < Chat client = { client } theme = 'str-chat__theme- custom' >
154+ < Chat client = { client } theme = 'custom-theme ' >
155155 < ChannelList filters = { filters } sort = { sort } options = { options } />
156156 < Channel >
157157 < Window >
Original file line number Diff line number Diff line change 22@import 'stream-chat-react/dist/css/index.css' layer(stream);
33
44@layer stream-overrides {
5- .str-chat__theme-custom {
6- --brand-50 : # edf7f7 ;
7- --brand-100 : # e0f2f1 ;
8- --brand-150 : # b2dfdb ;
9- --brand-200 : # 80cbc4 ;
10- --brand-300 : # 4db6ac ;
11- --brand-400 : # 26a69a ;
12- --brand-500 : # 009688 ;
13- --brand-600 : # 00897b ;
14- --brand-700 : # 00796b ;
15- --brand-800 : # 00695c ;
16- --brand-900 : # 004d40 ;
17- --accent-primary : var (--brand-500 );
18- --radius-full : 6px ;
5+ .custom-theme {
6+ /* Accent */
7+ --accent-primary : # 0d47a1 ;
8+
9+ /* Message bubble colors */
10+ --chat-bg-outgoing : # 1e3a8a ;
11+ --chat-bg-attachment-outgoing : # 0d47a1 ;
12+ --chat-bg-incoming : # dbeafe ;
13+ --chat-text-outgoing : # ffffff ;
14+ --chat-reply-indicator-outgoing : # 93c5fd ;
15+
16+ /* Links */
17+ --text-link : # 1e40af ;
18+ --chat-text-link : # 93c5fd ;
19+
20+ /* Panel backgrounds */
21+ --background-core-elevation-1 : # dbeafe ; /* channel list, surrounding panels */
22+ --background-core-app : # c7dafc ; /* message list background */
23+
24+ /* Focus ring */
25+ --border-utility-focused : # 1e40af ;
26+
27+ /* Radii */
28+ --radius-max : 8px ;
29+ --button-radius-full : 6px ;
1930 }
2031}
2132
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ const App = () => {
118118
119119 return (
120120 < WithComponents overrides = { { Attachment : CustomAttachment } } >
121- < Chat client = { client } theme = 'str-chat__theme- custom' >
121+ < Chat client = { client } theme = 'custom-theme ' >
122122 < Channel channel = { channel } >
123123 < Window >
124124 < ChannelHeader />
Original file line number Diff line number Diff line change 22@import 'stream-chat-react/dist/css/index.css' layer(stream);
33
44@layer stream-overrides {
5- .str-chat__theme-custom {
6- --brand-50 : # edf7f7 ;
7- --brand-100 : # e0f2f1 ;
8- --brand-150 : # b2dfdb ;
9- --brand-200 : # 80cbc4 ;
10- --brand-300 : # 4db6ac ;
11- --brand-400 : # 26a69a ;
12- --brand-500 : # 009688 ;
13- --brand-600 : # 00897b ;
14- --brand-700 : # 00796b ;
15- --brand-800 : # 00695c ;
16- --brand-900 : # 004d40 ;
17- --accent-primary : var (--brand-500 );
18- --radius-full : 6px ;
5+ .custom-theme {
6+ /* Accent */
7+ --accent-primary : # 0d47a1 ;
8+
9+ /* Message bubble colors */
10+ --chat-bg-outgoing : # 1e3a8a ;
11+ --chat-bg-attachment-outgoing : # 0d47a1 ;
12+ --chat-bg-incoming : # dbeafe ;
13+ --chat-text-outgoing : # ffffff ;
14+ --chat-reply-indicator-outgoing : # 93c5fd ;
15+
16+ /* Links */
17+ --text-link : # 1e40af ;
18+ --chat-text-link : # 93c5fd ;
19+
20+ /* Panel backgrounds */
21+ --background-core-elevation-1 : # dbeafe ; /* channel list, surrounding panels */
22+ --background-core-app : # c7dafc ; /* message list background */
23+
24+ /* Focus ring */
25+ --border-utility-focused : # 1e40af ;
26+
27+ /* Radii */
28+ --radius-max : 8px ;
29+ --button-radius-full : 6px ;
1930 }
2031}
2132
Original file line number Diff line number Diff line change 22@import 'stream-chat-react/dist/css/index.css' layer(stream);
33
44@layer stream-overrides {
5- .str-chat__theme-custom {
6- --brand-50 : # edf7f7 ;
7- --brand-100 : # e0f2f1 ;
8- --brand-150 : # b2dfdb ;
9- --brand-200 : # 80cbc4 ;
10- --brand-300 : # 4db6ac ;
11- --brand-400 : # 26a69a ;
12- --brand-500 : # 009688 ;
13- --brand-600 : # 00897b ;
14- --brand-700 : # 00796b ;
15- --brand-800 : # 00695c ;
16- --brand-900 : # 004d40 ;
17- --accent-primary : var (--brand-500 );
18- --radius-full : 6px ;
5+ .custom-theme {
6+ /* Accent */
7+ --accent-primary : # 0d47a1 ;
8+
9+ /* Message bubble colors */
10+ --chat-bg-outgoing : # 1e3a8a ;
11+ --chat-bg-attachment-outgoing : # 0d47a1 ;
12+ --chat-bg-incoming : # dbeafe ;
13+ --chat-text-outgoing : # ffffff ;
14+ --chat-reply-indicator-outgoing : # 93c5fd ;
15+
16+ /* Links */
17+ --text-link : # 1e40af ;
18+ --chat-text-link : # 93c5fd ;
19+
20+ /* Panel backgrounds */
21+ --background-core-elevation-1 : # dbeafe ; /* channel list, surrounding panels */
22+ --background-core-app : # c7dafc ; /* message list background */
23+
24+ /* Focus ring */
25+ --border-utility-focused : # 1e40af ;
26+
27+ /* Radii */
28+ --radius-max : 8px ;
29+ --button-radius-full : 6px ;
1930 }
2031}
2132
Original file line number Diff line number Diff line change 22@import 'stream-chat-react/dist/css/index.css' layer(stream);
33
44@layer stream-overrides {
5- .str-chat__theme-custom {
6- --brand-50 : # edf7f7 ;
7- --brand-100 : # e0f2f1 ;
8- --brand-150 : # b2dfdb ;
9- --brand-200 : # 80cbc4 ;
10- --brand-300 : # 4db6ac ;
11- --brand-400 : # 26a69a ;
12- --brand-500 : # 009688 ;
13- --brand-600 : # 00897b ;
14- --brand-700 : # 00796b ;
15- --brand-800 : # 00695c ;
16- --brand-900 : # 004d40 ;
17- --accent-primary : var (--brand-500 );
18- --radius-full : 6px ;
5+ .custom-theme {
6+ /* Accent */
7+ --accent-primary : # 0d47a1 ;
8+
9+ /* Message bubble colors */
10+ --chat-bg-outgoing : # 1e3a8a ;
11+ --chat-bg-attachment-outgoing : # 0d47a1 ;
12+ --chat-bg-incoming : # dbeafe ;
13+ --chat-text-outgoing : # ffffff ;
14+ --chat-reply-indicator-outgoing : # 93c5fd ;
15+
16+ /* Links */
17+ --text-link : # 1e40af ;
18+ --chat-text-link : # 93c5fd ;
19+
20+ /* Panel backgrounds */
21+ --background-core-elevation-1 : # dbeafe ; /* channel list, surrounding panels */
22+ --background-core-app : # c7dafc ; /* message list background */
23+
24+ /* Focus ring */
25+ --border-utility-focused : # 1e40af ;
26+
27+ /* Radii */
28+ --radius-max : 8px ;
29+ --button-radius-full : 6px ;
1930 }
2031}
2132
You can’t perform that action at this time.
0 commit comments