Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

Commit 6497f86

Browse files
committed
clolours not set with variables
1 parent e831c2d commit 6497f86

File tree

11 files changed

+42
-31
lines changed

11 files changed

+42
-31
lines changed

app/frontend/src/components/AnalysisPanel/AnalysisPanel.module.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
margin: auto;
1616
margin-left: 1.25em;
1717
min-height: 3.125em;
18-
border-left: 0.0625em solid #2997b1;
18+
border-left: 0.0625em solid var(--primary-dark);
1919
padding: 0 0 1.875em 1.875em;
2020
position: relative;
2121
}
@@ -31,25 +31,25 @@
3131
content: " ";
3232
border: 8px solid #d1dbfa;
3333
border-radius: 500%;
34-
background: #2997b1;
34+
background: var(--primary-dark);
3535
height: 20px;
3636
width: 20px;
3737
}
3838

3939
.tStep {
40-
color: #2997b1;
40+
color: var(--primary-dark);
4141
position: relative;
4242
font-size: 0.875em;
4343
margin-bottom: 0.5em;
4444
}
4545

4646
.tCodeBlock {
4747
max-height: 18.75em;
48-
background: white !important;
48+
background: var(--background) !important;
4949
}
5050

5151
.tProp {
52-
background-color: rgb(245, 245, 245);
52+
background-color: var(--background);
5353
color: #333232;
5454
font-size: 0.75em;
5555
padding: 0.1875em 0.625em;
@@ -62,3 +62,7 @@
6262
max-width: 100%;
6363
object-fit: contain;
6464
}
65+
66+
.root-131 {
67+
color: var(--primary-dark) !important;
68+
}

app/frontend/src/components/Answer/Answer.module.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ h2 {
5454
text-align: center;
5555
border-radius: 0.25em;
5656
padding: 0em 0.5em;
57-
background: #eaf5f7;
58-
color: #123bb6;
57+
background: var(--user-chat-bubble);
58+
color: var(--link);
5959
text-decoration: none;
6060
cursor: pointer;
6161
}
@@ -80,7 +80,7 @@ h2 {
8080
text-align: center;
8181
border-radius: 0.25em;
8282
padding: 0em 0.5em;
83-
background: #eaf5f7;
83+
background: var(--user-chat-bubble);
8484
color: black;
8585
font-style: italic;
8686
text-decoration: none;
@@ -109,8 +109,8 @@ sup {
109109
min-width: 0.875em;
110110
height: 0.875em;
111111
border-radius: 0.1875em;
112-
background: #eaf5f7;
113-
color: #123bb6;
112+
background: var(--user-chat-bubble);
113+
color: var(--link);
114114
text-decoration-color: transparent;
115115
outline: transparent solid 0.0625em;
116116
cursor: pointer;
@@ -125,7 +125,7 @@ sup {
125125
}
126126

127127
.disclaimer {
128-
background-color: #f5dfe3;
128+
background-color: var(--disclaimer);
129129
padding: 1rem 1rem;
130130
border-radius: 0.4rem;
131131
}

app/frontend/src/components/DislaimerModal/Modal.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222

2323
.dialog-title,
2424
.dialog-content {
25-
color: black;
25+
color: var(--feedback-button);
2626
}
2727

2828
.dialog-surface .tcmodal-button {
2929
align-self: flex-end;
30-
background-color: #33bfc7;
30+
background-color: var(--primary-colour);
3131
border: none;
3232
outline: none;
3333
border-radius: 0.3rem;
@@ -43,7 +43,7 @@
4343
}
4444

4545
.dialog-surface .tcmodal-button:hover {
46-
background-color: #2a9c9f;
46+
background-color: var(--primary-dark);
4747
transform: translateY(-0.03125rem);
4848
}
4949

@@ -62,7 +62,7 @@
6262

6363
#my-dialog-surface {
6464
border-radius: 0.5rem;
65-
background-color: white;
65+
background-color: var(--background);
6666
box-shadow:
6767
0px 0.5rem 1rem rgba(0, 0, 0, 0.24),
6868
0px 0px 0.125rem rgba(0, 0, 0, 0.2);

app/frontend/src/components/Example/Example.module.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111

1212
.exampleQuestion {
13-
background: white;
13+
background: var(--background);
1414
border-radius: 0.5rem;
1515
display: flex;
1616
flex-direction: column;
@@ -22,7 +22,7 @@
2222
}
2323

2424
.exampleOther {
25-
background: white;
25+
background: var(--background);
2626
border-radius: 0.5rem;
2727
display: flex;
2828
flex-direction: column;
@@ -34,7 +34,7 @@
3434
}
3535

3636
.exampleContainer {
37-
background-color: #f7f7f7;
37+
background-color: var(--example-container);
3838
border-radius: 0.5rem;
3939
padding: 0.5rem;
4040
box-shadow:
@@ -46,7 +46,7 @@
4646
box-shadow:
4747
0rem 0.5rem 1rem rgba(0, 0, 0, 0.14),
4848
0rem 0rem 0.125rem rgba(0, 0, 0, 0.12);
49-
outline: 0.125rem solid rgb(41, 151, 177);
49+
outline: 0.125rem solid var(--primary-colour);
5050
}
5151

5252
.exampleText {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#FeedbackButton {
2-
background-color: black;
2+
background-color: var(--feedback-button);
33
border-radius: 0.5rem;
4-
border-color: black;
4+
border-color: var(--feedback-button);
55
}

app/frontend/src/components/MarkdownViewer/MarkdownViewer.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
box-shadow:
99
#0000000d 0 0 0 0.0625em,
1010
#0000001a 0 0.125em 0.1875em;
11-
background-color: white;
11+
background-color: var(--background);
1212
margin: 1.25em 0;
1313
}
1414

1515
.loading {
1616
padding: 6.25em;
1717
height: 100vh;
18-
background-color: white;
18+
background-color: var(--background);
1919
}
2020

2121
.error {
2222
height: 100vh;
23-
background-color: white;
23+
background-color: var(--background);
2424
}
2525

2626
.markdown {

app/frontend/src/components/QuestionInput/QuestionInput.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
0px 0px 0.125rem rgba(0, 0, 0, 0.12);
66
width: 100%;
77
padding: 0.8rem;
8-
background: white;
8+
background: var(--background);
99
}
1010

1111
.questionInputTextArea {

app/frontend/src/components/UserChatMessage/UserChatMessage.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
.message {
1010
padding: 1.25em;
11-
background: #eaf5f7;
11+
background: var(--user-chat-bubble);
1212
border-radius: 0.5em;
1313
box-shadow:
1414
0px 0.125em 0.25em rgba(0, 0, 0, 0.14),

app/frontend/src/index.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,16 @@ body {
2626
padding: 0;
2727
}
2828

29-
#root {
29+
:root {
3030
height: 100%;
31+
--primary-colour: #3ce2db;
32+
--feedback-button: black;
33+
--disclaimer: #f5dfe3;
34+
--user-chat-bubble: #eaf5f7;
35+
--background: white;
36+
--example-conatianer: #f7f7f7;
37+
--primary-dark: #2997b1;
38+
--link: #123bbb;
3139
}
3240

3341
@media (min-width: 480px) {

app/frontend/src/pages/chat/Chat.module.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
padding: 1rem;
8888
width: 100%;
8989
max-width: 64.25rem;
90-
/* background: #f2f2f2; */
9190
}
9291

9392
.chatAnalysisPanel {

0 commit comments

Comments
 (0)