Spaces:
Sleeping
Sleeping
File size: 3,605 Bytes
ffd8374 | 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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | # css_input.py
# Contains the CSS for the Streamlit app as a string
STREAMLIT_CSS = '''
<style>
/* Force light theme - completely override dark mode */
html, body, .stApp, [data-testid="stAppViewContainer"] {
background-color: #ffffff !important;
color: #262730 !important;
color-scheme: light !important;
}
@media (prefers-color-scheme: dark) {
html, body, .stApp, [data-testid="stAppViewContainer"] {
background-color: #ffffff !important;
color: #262730 !important;
}
}
* {
color-scheme: light !important;
}
:root {
--primary-color: #1976d2 !important;
--background-color: #ffffff !important;
--secondary-background-color: #f0f2f6 !important;
--text-color: #262730 !important;
color-scheme: light !important;
}
.stApp *, .stApp {
color: #262730 !important;
}
section[data-testid="stSidebar"], .css-1d391kg {
background-color: #f0f2f6 !important;
color: #262730 !important;
}
.main .block-container {
background-color: #ffffff !important;
color: #262730 !important;
}
/* Blue theme for Streamlit with dark mode compatibility */
.stApp {
background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 100%) !important;
color: #262730 !important;
}
.main-header {
text-align: center;
padding: 0.5rem 0.5rem 0.5rem 0.5rem;
border-bottom: 2px solid #1976d2;
margin-bottom: 1rem;
background: linear-gradient(135deg, #2196f3, #1976d2) !important;
color: white !important;
border-radius: 8px;
margin: -0.5rem -0.5rem 1rem -0.5rem;
}
.main-header h1, .main-header p {
color: white !important;
}
.chat-container {
max-height: 500px;
overflow-y: auto;
padding: 1rem;
border-radius: 10px;
background-color: #f9f9f9 !important;
border: 1px solid #e3f2fd;
}
.stChatMessage {
border-radius: 10px;
margin-bottom: 1rem;
color: #262730 !important;
}
.stChatMessage[data-testid="chat-message-user"] {
background-color: #e3f2fd !important;
border: 1px solid #2196f3;
color: #262730 !important;
}
.stChatMessage[data-testid="chat-message-assistant"] {
background-color: #ffffff !important;
border: 1px solid #1976d2;
color: #262730 !important;
}
.stChatMessage * {
color: #262730 !important;
}
.stButton > button {
background-color: #1976d2 !important;
color: white !important;
border: none;
border-radius: 5px;
transition: all 0.3s;
}
.stButton > button:hover {
background-color: #1565c0 !important;
color: white !important;
}
.css-1d391kg, [data-testid="stSidebar"] {
background-color: #e3f2fd !important;
}
.css-1d391kg *, [data-testid="stSidebar"] * {
color: #262730 !important;
}
.stSuccess {
background-color: #e8f5e8 !important;
border: 1px solid #4caf50;
border-radius: 5px;
color: #2e7d32 !important;
}
.stTextInput input, .stChatInput input {
background-color: white !important;
color: #262730 !important;
border: 1px solid #1976d2;
}
@media (prefers-color-scheme: dark) {
.stApp, .stApp * {
color: #262730 !important;
}
.stChatMessage * {
color: #262730 !important;
}
}
</style>
'''
|