-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.py
37 lines (30 loc) · 814 Bytes
/
style.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# style.py
import reflex as rx
# Common styles for questions and answers.
shadow = "rgba(0, 0, 0, 0.15) 0px 2px 8px"
chat_margin = "20%"
message_style = dict(
padding="1em",
border_radius="5px",
margin_y="0.5em",
box_shadow=shadow,
)
# Set specific styles for questions and answers.
question_style = message_style | dict(
bg=rx.color("mauve", 4), margin_left=chat_margin
)
answer_style = message_style | dict(
bg=rx.color("accent", 4), margin_right=chat_margin
)
# Styles for the action bar.
input_style = dict(
border_width="1px", padding="1em", box_shadow=shadow,
align_items="stretch",
width="250px"
)
button_style = dict(bg="#CEFFEE", box_shadow=shadow)
# openai_input_style = {
# "color": "white",
# "margin-top": "2rem",
# "margin-bottom": "1rem",
# }