Skip to content

Commit 48d4647

Browse files
authored
fix: add temporarily CSS v2 palette-variables (#3040)
1 parent b3d7e69 commit 48d4647

5 files changed

Lines changed: 57 additions & 96 deletions

File tree

examples/vite/src/index.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
@layer stream, stream-new, stream-overrides, stream-app-overrides;
2-
3-
@import url('./stream-imports-theme.scss') layer(stream);
4-
@import url('./stream-imports-layout.scss') layer(stream);
1+
@layer stream-new, stream-overrides, stream-app-overrides;
52

63
// v3 CSS import
74
@import url('stream-chat-react/dist/css/index.css') layer(stream-new);

examples/vite/src/stream-imports-layout.scss

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

examples/vite/src/stream-imports-theme.scss

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
.str-chat {
2+
--str-chat__blue950: #001333;
3+
--str-chat__blue900: #00163d;
4+
--str-chat__blue800: #002666;
5+
--str-chat__blue700: #003999;
6+
--str-chat__blue600: #004ccc;
7+
--str-chat__blue500: #005fff;
8+
--str-chat__blue400: #337eff;
9+
--str-chat__blue300: #669fff;
10+
--str-chat__blue200: #ccdfff;
11+
--str-chat__blue100: #e0f0ff;
12+
--str-chat__blue50: #ebf5ff;
13+
14+
--str-chat__grey950: #080707;
15+
--str-chat__grey900: #17191c;
16+
--str-chat__grey800: #1c1e22;
17+
--str-chat__grey700: #272a30;
18+
--str-chat__grey600: #4c525c;
19+
--str-chat__grey500: #72767e;
20+
--str-chat__grey400: #b4b7bb;
21+
--str-chat__grey300: #dbdde1;
22+
--str-chat__grey200: #e9eaed;
23+
--str-chat__grey100: #f4f4f5;
24+
--str-chat__grey50: #ffffff;
25+
26+
--str-chat__red900: #330003;
27+
--str-chat__red800: #660006;
28+
--str-chat__red700: #990008;
29+
--str-chat__red600: #cc000b;
30+
--str-chat__red500: #ff000e;
31+
--str-chat__red400: #ff3742;
32+
--str-chat__red300: #ff666e;
33+
--str-chat__red200: #ff999f;
34+
--str-chat__red100: #ffe5e7;
35+
36+
--str-chat__green900: #062d16;
37+
--str-chat__green800: #0d592c;
38+
--str-chat__green700: #138643;
39+
--str-chat__green600: #19b359;
40+
--str-chat__green500: #20e070;
41+
--str-chat__green400: #4ce68c;
42+
--str-chat__green300: #79eca9;
43+
--str-chat__green200: #a6f2c6;
44+
--str-chat__green100: #e9f1ff;
45+
46+
--str-chat__yellow900: #332500;
47+
--str-chat__yellow800: #664900;
48+
--str-chat__yellow700: #996e00;
49+
--str-chat__yellow600: #cc9200;
50+
--str-chat__yellow500: #ffb700;
51+
--str-chat__yellow400: #ffd466;
52+
--str-chat__yellow300: #ffe299;
53+
--str-chat__yellow200: #fff1cc;
54+
--str-chat__yellow100: #fff8e5;
55+
}

src/styling/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@use 'animations';
44
@use 'global-layout-variables';
55
@use 'global-theme-variables';
6+
@use 'palette-variables';
67
@use './variables.css';
78
@use 'base';
89
@use 'icons';

0 commit comments

Comments
 (0)