yinuozhang commited on
Commit
e4c27a7
·
1 Parent(s): 985c38b

app update

Browse files
Files changed (2) hide show
  1. app.py +1 -5
  2. peptiverse_styles.css +25 -0
app.py CHANGED
@@ -1196,11 +1196,7 @@ def get_title_html():
1196
  </div>
1197
  '''
1198
 
1199
- custom_theme = gr.themes.Soft(primary_hue="indigo").set(
1200
- mode="light" # /"dark"
1201
- )
1202
-
1203
- with gr.Blocks(css=custom_css, theme=custom_theme) as demo:
1204
  ctx = initialize()
1205
 
1206
  # Header with SVG title support
 
1196
  </div>
1197
  '''
1198
 
1199
+ with gr.Blocks(css=custom_css, theme=gr.themes.Soft(primary_hue="indigo")) as demo:
 
 
 
 
1200
  ctx = initialize()
1201
 
1202
  # Header with SVG title support
peptiverse_styles.css CHANGED
@@ -1,5 +1,30 @@
1
  /* PeptiVerse Custom CSS Styles */
 
 
 
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  .gradio-container {
4
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
5
  font-size: 19px !important; /* Increased base font size */
 
1
  /* PeptiVerse Custom CSS Styles */
2
+ /* =========================
3
+ FORCE LIGHT MODE
4
+ ========================= */
5
 
6
+ /* Tell browser + Gradio to use light color scheme */
7
+ :root {
8
+ color-scheme: light !important;
9
+ }
10
+
11
+ /* Force backgrounds explicitly */
12
+ html,
13
+ body,
14
+ .gradio-container {
15
+ background-color: #ffffff !important;
16
+ color: #111827 !important; /* neutral dark text */
17
+ }
18
+
19
+ /* Override dark-theme panels */
20
+ .gr-form,
21
+ .gr-box,
22
+ .gr-panel,
23
+ .gr-group,
24
+ .gr-markdown,
25
+ .gr-dataframe {
26
+ background-color: #ffffff !important;
27
+ }
28
  .gradio-container {
29
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
30
  font-size: 19px !important; /* Increased base font size */