Spaces:
Running
Running
added dark mode css
Browse files
app.py
CHANGED
@@ -71,6 +71,36 @@ with gr.Blocks(css="""
|
|
71 |
color: black;
|
72 |
border: 1px solid #D0D0D0;
|
73 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
@media (max-width: 600px) {
|
75 |
.gr-row { flex-direction: column !important; }
|
76 |
.gr-column { width: 100% !important; }
|
|
|
71 |
color: black;
|
72 |
border: 1px solid #D0D0D0;
|
73 |
}
|
74 |
+
|
75 |
+
|
76 |
+
/* Dark mode specific styles */
|
77 |
+
@media (prefers-color-scheme: dark) {
|
78 |
+
.gradio-container {
|
79 |
+
background-color: #1e1e1e; /* Dark background */
|
80 |
+
color: white; /* Light text color for contrast */
|
81 |
+
}
|
82 |
+
h1, h2, p {
|
83 |
+
color: white; /* Light text for headings */
|
84 |
+
}
|
85 |
+
.gr-textbox textarea {
|
86 |
+
background-color: #333333; /* Dark background for text area */
|
87 |
+
color: white; /* Light text color */
|
88 |
+
}
|
89 |
+
.gr-button {
|
90 |
+
background-color: #555555; /* Darker button for dark mode */
|
91 |
+
color: white;
|
92 |
+
}
|
93 |
+
.gr-dropdown {
|
94 |
+
background-color: #333333; /* Dark dropdown background */
|
95 |
+
color: white;
|
96 |
+
}
|
97 |
+
.source-box {
|
98 |
+
background-color: #333333; /* Dark background for sources box */
|
99 |
+
color: white;
|
100 |
+
border: 1px solid #555555; /* Lighter border for visibility */
|
101 |
+
}
|
102 |
+
}
|
103 |
+
|
104 |
@media (max-width: 600px) {
|
105 |
.gr-row { flex-direction: column !important; }
|
106 |
.gr-column { width: 100% !important; }
|