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

Commit f5f28d9

Browse files
authored
Merge pull request #49 from cinzlab/ui/enable-colour-schemes
UI/enable colour schemes
2 parents 00e57d5 + 699d10f commit f5f28d9

File tree

23 files changed

+124
-351
lines changed

23 files changed

+124
-351
lines changed

app/backend/app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,19 @@ async def favicon():
121121
return await bp.send_static_file("favicon.ico")
122122

123123

124-
@bp.route("/chat.png")
124+
@bp.route("/logo.png")
125125
async def chatlogo():
126-
return await bp.send_static_file("chat.png")
126+
return await bp.send_static_file("logo.png")
127127

128128

129129
@bp.route("/CI_Logo_Powered_green.png")
130130
async def CI_logo():
131131
return await bp.send_static_file("CI_Logo_Powered_green.png")
132132

133133

134-
@bp.route("/chatico.png")
134+
@bp.route("/icon.png")
135135
async def chaticon():
136-
return await bp.send_static_file("chatico.png")
136+
return await bp.send_static_file("icon.png")
137137

138138

139139
@bp.route("/assets/<path:path>")
File renamed without changes.
File renamed without changes.

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
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const AnswerIcon = () => {
2-
return <img src="/chatico.png" aria-hidden="true" aria-label="Answer logo" style={{ width: "32px", height: "32px", padding: "3px" }} />;
2+
return <img src="/icon.png" aria-hidden="true" aria-label="Answer logo" style={{ width: "32px", height: "32px", padding: "3px" }} />;
33
};

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 {

app/frontend/src/components/Example/Example.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const Example = ({ exampleType, onClick }: Props) => {
4444
return (
4545
<div className={styles.exampleContainer}>
4646
<div className={styles.header}>
47-
<img src="/chatico.png" className={styles.headerImage} />
47+
<img src="/icon.png" className={styles.headerImage} />
4848
<h3>{exampleType}</h3>
4949
</div>
5050
{textList.map((text, index) => {
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
}

0 commit comments

Comments
 (0)